3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); class test { function __get($name) { return $undef_name; } function __set($name, $value) { return $undef_value; } } $test = new test; $test->abc = 123; echo $test->bcd; @$test->qwe = 123; echo @$test->wer; var_dump(error_reporting()); echo "Done\n";
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: undef_value in /in/QGInU on line 9 Notice: Undefined variable: undef_name in /in/QGInU on line 6 int(32767) Done
Output for 5.3.0 - 5.3.29
Notice: Undefined variable: undef_value in /in/QGInU on line 9 Notice: Undefined variable: undef_name in /in/QGInU on line 6 int(30719) Done
Output for 5.2.0 - 5.2.17
Notice: Undefined variable: undef_value in /in/QGInU on line 9 Notice: Undefined variable: undef_name in /in/QGInU on line 6 int(6143) Done
Output for 5.0.4 - 5.1.6
Notice: Undefined variable: undef_value in /in/QGInU on line 9 Notice: Undefined variable: undef_name in /in/QGInU on line 6 int(2047) Done
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: undef_value in /in/QGInU on line 9 Notice: Undefined variable: undef_name in /in/QGInU on line 6 int(2047) Done
Output for 4.3.0 - 4.4.9
Notice: Undefined property: bcd in /in/QGInU on line 16 int(2047) Done