3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $user = (object) ['uid' => 123]; return count($user);
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/vhMZH on line 5
Output for 5.4.12 - 7.1.10
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/vhMZH on line 3
Process exited with code 255.