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(obj));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant obj - assumed 'obj' in /in/l8nF3 on line 7 int(1) Notice: Use of undefined constant obj - assumed 'obj' in /in/l8nF3 on line 8 int(1)