3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = (object) array('' => '1'); foreach ($foo as $k=>$v) { }
Output for 4.3.0 - 5.1.6, 5.6.21 - 5.6.28, hhvm-3.12.0, 7.0.6 - 7.1.0
Output for 5.2.0 - 5.6.20, 7.0.0 - 7.0.5
Notice: Illegal member variable name in /in/VNXDE on line 4
Output for hhvm-3.10.0

Process exited with code 153.