3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj = (object) "dff"; $obj->gg = 'fff'; print_r($obj); // outputs 'ciao'
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.4.29, 5.4.31 - 7.1.0
stdClass Object ( [scalar] => dff [gg] => fff )
Output for 5.4.30

Process exited with code 143.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/6pIB3 on line 4
Process exited with code 255.