Display the drop-down list

Test of intval()

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 failed
Example #10 : test success
Example #11 : test success
Example #12 : test success
Example #13 : test success
Example #14 : test success
Example #15 : test success
Example #16 : test success
Example #17 : test success
Example #1
$input = 42
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 42,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = 4.2
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 4,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = '42'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 42,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = '+42'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 42,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #5
$input = '-42'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => -42,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #6
$input = '_NO_QUOTE_042'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 34,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #7
$input = '042'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 42,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #8
$input = '_NO_QUOTE_1e10'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 1410065408,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #9
$input = '1e10'
$expected_output = [
  
'result' => [
    
'int' => 1,
  ],
  
'php_version' => '5.6.8 WINNT i586',
]
$test_output = [
  
'result' => [
    
'int' => 2147483647,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #10
$input = '_NO_QUOTE_0x1A'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 26,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #11
$input = 42000000
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 42000000,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #12
$input = '_NO_QUOTE_420000000000000000000'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => -1609564160,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #13
$input = '420000000000000000000'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 2147483647,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #14
$input = [
  
=> 42,
  
=> 8,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 42,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #15
$input = [
  
=> '42',
  
=> 8,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 34,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #16
$input = [
  
=> [
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #17
$input = [
  
=> [
    
=> 'foo',
    
=> 'bar',
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 1,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]