3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass(); #$a->t = 2; #$a->u = 3; #$a->v = 4; var_dump($a->t); var_dump($a->u); var_dump(count($a));
based on hlPfG
Output for 7.2.0 - 7.3.0beta1
Notice: Undefined property: stdClass::$t in /in/Chk06 on line 9 NULL Notice: Undefined property: stdClass::$u in /in/Chk06 on line 10 NULL Warning: count(): Parameter must be an array or an object that implements Countable in /in/Chk06 on line 11 int(1)
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.1.20
Notice: Undefined property: stdClass::$t in /in/Chk06 on line 9 NULL Notice: Undefined property: stdClass::$u in /in/Chk06 on line 10 NULL int(1)