3v4l.org

run code in 300+ PHP versions simultaneously
<?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 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ']', expecting ')' in /in/0fivM on line 2
Process exited with code 255.

preferences:
211.94 ms | 940 KiB | 54 Q