3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj = new \stdclass(); $obj->attr1 = 1; $obj->attr2 = 2; var_dump(count($obj));
based on g8084
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/hOJPT on line 7 int(1)
Output for 5.3.17 - 7.1.10
int(1)