3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = null; $var->blurp = 'lol'; //Warning: Creating default object from empty value var_dump($var); //object(stdClass)#1 (1) { ["blurp"] => string(3) "lol"}
based on Hlv10
Output for 5.4.0 - 7.2.0
Warning: Creating default object from empty value in /in/aMuJj on line 3 object(stdClass)#1 (1) { ["blurp"]=> string(3) "lol" }
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.3.29
Strict Standards: Creating default object from empty value in /in/aMuJj on line 3 object(stdClass)#1 (1) { ["blurp"]=> string(3) "lol" }
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/aMuJj on line 4
Process exited with code 255.
Output for 4.3.0 - 4.4.9
object(stdClass)(1) { ["blurp"]=> string(3) "lol" }