3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass(); $obj->{""} = "but"; var_dump($obj);
based on Tg6GB
Output for 7.1.0 - 7.2.0
object(stdClass)#1 (1) { [""]=> string(3) "but" }
Output for 7.0.0 - 7.0.20
Fatal error: Uncaught Error: Cannot access empty property in /in/UfbAU:4 Stack trace: #0 {main} thrown in /in/UfbAU on line 4
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Fatal error: Cannot access empty property in /in/UfbAU on line 4
Process exited with code 255.