3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array_test = array(1 => 'asd', 2 => 'dbc', 3 => 'true', 12 => 'end.'); echo sizeof(array_test).'<br>'; // будет 12 echo count(array_test); // будет 4
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
Notice: Use of undefined constant array_test - assumed 'array_test' in /in/W1jlB on line 3 1<br> Notice: Use of undefined constant array_test - assumed 'array_test' in /in/W1jlB on line 4 1
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/W1jlB on line 4
Process exited with code 255.