3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass(); $obj->foo = 'foo'; $obj->bar = 'bar'; $arr = array('foo' => 'foo', 'bar' => 'bar'); var_dump(count($obj)); var_dump(count($arr));
based on l8nF3
Output for 4.3.0 - 7.1.0
int(1) int(2)