3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array( "28000000000000003" => 'ABC', "28000000000000001" => 'PQR' ); echo "<pre>" ; 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
<pre>1. 2.1 3.1 4.1
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
<pre>1. Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OOcU3 on line 10 PHP_EOL2.1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OOcU3 on line 12 PHP_EOL3.1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OOcU3 on line 14 PHP_EOL4.1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/OOcU3 on line 16 PHP_EOL