3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $class - new \StdClass(); echo count($class);
based on kuLmD
Output for 7.2.0
Notice: Undefined variable: class in /in/uqmA9 on line 3 Notice: Object of class stdClass could not be converted to int in /in/uqmA9 on line 3 Notice: Undefined variable: class in /in/uqmA9 on line 4 Warning: count(): Parameter must be an array or an object that implements Countable in /in/uqmA9 on line 4 0
Output for 5.3.21 - 7.1.10
Notice: Undefined variable: class in /in/uqmA9 on line 3 Notice: Object of class stdClass could not be converted to int in /in/uqmA9 on line 3 Notice: Undefined variable: class in /in/uqmA9 on line 4 0