3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$obj = (object) 'ciao'; $obj->gg = 'fff'; print_r($obj); // outputs 'ciao'
Output for 5.4.0 - 7.1.0
Warning: Creating default object from empty value in /in/JrNmv on line 3 stdClass Object ( [gg] => fff )
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.3.29
Strict Standards: Creating default object from empty value in /in/JrNmv on line 3 stdClass Object ( [gg] => fff )
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/JrNmv on line 4
Process exited with code 255.
Output for 4.3.0 - 4.4.9
stdClass Object ( [gg] => fff )