3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(count(new stdClass)); var_dump(count((array)new stdClass));
based on DpDn3
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/W3Bi6 on line 3 int(1) int(0)
Output for 4.3.0 - 7.1.10
int(1) int(0)