3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo->bar++; var_dump($foo);
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: foo in /in/WUUhn on line 2 Warning: Creating default object from empty value in /in/WUUhn on line 2 Notice: Undefined property: stdClass::$bar in /in/WUUhn on line 2 object(stdClass)#1 (1) { ["bar"]=> int(1) }
Output for hhvm-3.10.0 - 3.12.0
Warning: Creating default object from empty value in /in/WUUhn on line 2 object(stdClass)#1 (1) { ["bar"]=> NULL }
Output for 5.4.0 - 5.4.45
Notice: Undefined variable: foo in /in/WUUhn on line 2 Warning: Creating default object from empty value in /in/WUUhn on line 2 object(stdClass)#1 (1) { ["bar"]=> int(1) }
Output for 5.1.0 - 5.3.29
Strict Standards: Creating default object from empty value in /in/WUUhn on line 2 object(stdClass)#1 (1) { ["bar"]=> int(1) }
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: foo in /in/WUUhn on line 2 Strict Standards: Creating default object from empty value in /in/WUUhn on line 2 object(stdClass)#1 (1) { ["bar"]=> int(1) }
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: foo in /in/WUUhn on line 2 Strict Standards: Creating default object from empty value in /in/WUUhn on line 2 object(stdClass)#1 (1) { ["bar"]=> int(1) }
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: foo in /in/WUUhn on line 2 Notice: Undefined property: bar in /in/WUUhn on line 2 object(stdClass)(1) { ["bar"]=> int(1) }