Display the drop-down list

Test of abs()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #5 : test success
Example #6 : test success
Example #7 : test success
Example #8 : test success
Example #9 : test success
Example #10 : test success
Example #1
$input = -4.2
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'number' => 4.2,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = 5
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'number' => 5,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = -5
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'number' => 5,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #4
$input = '_SINGLE_QUOTE_abc'
$expected_output = $test_output
$test_output = [
  
'errors' => [
    
=> [
      
'code' => 256,
      
'message' => 'invalid value ($number: \'abc)',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #5
$input = '_NO_CHANGE_["abc" => 123'
$expected_output = $test_output
$test_output = [
  
'errors' => [
    
=> [
      
'code' => 256,
      
'message' => 'invalid array ($number: 123)',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #6
$input = '_NO_CHANGE_xyz'
$expected_output = $test_output
$test_output = [
  
'errors' => [
    
=> [
      
'code' => 256,
      
'message' => 'undefined constant ($number: xyz)',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #7
$input = '_NO_CHANGE_E_ERROR|123'
$expected_output = $test_output
$test_output = [
  
'errors' => [
    
=> [
      
'code' => 256,
      
'message' => 'invalid constant ($number: 123)',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #8
$input = '_NO_CHANGE_-\'sdf\''
$expected_output = $test_output
$test_output = [
  
'errors' => [
    
=> [
      
'code' => 256,
      
'message' => 'invalid negative number ($number: \'sdf\')',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #9
$input = '_NO_CHANGE_123 456'
$expected_output = $test_output
$test_output = [
  
'errors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