3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = new stdClass(); $data->hello = 'world'; $hello = $data->hello; $foo = $data->foo; echo $hello; echo $foo;
Output for 5.3.25, 5.3.27 - 5.3.29, 5.4.18 - 7.3.0rc4
Notice: Undefined property: stdClass::$foo in /in/iSUer on line 8 world
Output for 5.2.6 - 5.3.24, 5.3.26, 5.4.0 - 5.4.17
Notice: Undefined property: stdClass::$foo in /in/CSV6p on line 8 world
Output for 5.0.0 - 5.2.5
Notice: Undefined property: stdClass::$foo in /in/CSV6p on line 8 world
Output for 4.3.1 - 4.4.9
Notice: Undefined property: foo in /in/CSV6p on line 8 world
Output for 4.3.0
Notice: Undefined property: foo in /in/iSUer on line 8 world