3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass; $obj->a = 1; $obj->b = 2; echo count($obj);
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/q5rgS on line 5 1
Output for 4.3.0 - 7.1.10
1