3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo count((object)['a']);
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/IWsQ0 on line 3 1
Output for 5.4.11 - 7.1.10
1
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/IWsQ0 on line 3
Process exited with code 255.