3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['a' => 1, 'a' => 2]; print_r(count($a));
based on 38hjp
Output for 5.4.12 - 7.3.0rc4
1
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/ul9sg on line 3
Process exited with code 255.