3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1; $b ->$a = 'foo'; var_export(array($b->$a));
based on HWgUM
Output for 5.4.0 - 7.1.0
Warning: Creating default object from empty value in /in/WYeSE on line 3 array ( 0 => 'foo', )
Output for 5.0.0 - 5.3.29
Strict Standards: Creating default object from empty value in /in/WYeSE on line 3 array ( 0 => 'foo', )
Output for 4.3.0 - 4.4.9
array ( 0 => 'foo', )