Display the drop-down list

Test of constant()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #5 : test success
Example #1
$input = 'MAXSIZE'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 100,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = 'bar::test'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'foobar!',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = 'foo::test'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'foobar!',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = 'E_ALL'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 32767,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #5
$input = 'TEST'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => NULL,
  ],
  
'errors' => [
    
=> [
      
'code' => 2,
      
'message' => 'constant(): Couldn\'t find constant TEST',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]