3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array( "28000000000000003" => 'ABC', "28000000000000001" => 'PQR' ); echo "1.".in_array("28000000000000003",array_keys($data),true) , PHP_EOL; echo "2.".in_array("28000000000000003",array_keys($data)) , PHP_EOL; echo "3.".in_array("28000000000000003",array("28000000000000003","28000000000000001"),true) , PHP_EOL; echo "4.".in_array("28000000000000003",array("28000000000000003","28000000000000001")) , PHP_EOL; ?>
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1. 2.1 3.1 4.1
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
1. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/UnRZJ on line 9 PHP_EOL2.1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/UnRZJ on line 11 PHP_EOL3.1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/UnRZJ on line 13 PHP_EOL4.1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/UnRZJ on line 15 PHP_EOL