3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(count([1, 2, null, 3]));
Output for 5.4.0 - 7.1.0
int(4)
Output for 5.2.13 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/UBHck on line 3
Process exited with code 255.