3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); $obj = new stdclass(); echo $obj->{"foo\0bar"}; $obj->{"foo\0bar"} = 1; echo $obj->{"foo\0bar"};
based on jd9Nd
Output for 5.2.6 - 7.2.0
Notice: Undefined property: stdClass::$foo in /in/OA5HO on line 6 1
Output for 5.0.0 - 5.2.5
Notice: Undefined property: stdClass::$foo in /in/OA5HO on line 6 1
Output for 4.3.0 - 4.4.9
Notice: Undefined property: foo in /in/OA5HO on line 6 1