3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $wat = (object) array('one', 'two'); //var_dump($wat); foreach ($wat as $foo) { echo "$foo \n"; }
based on VnkW6
Output for 4.3.0 - 4.4.9, 5.2.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
one two
Output for 5.2.0

Process exited with code 139.
Output for 5.0.0 - 5.1.6