3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = new stdClass(); $i->a1234 = "test"; $i = (array) $i; foreach ($i as $key => $value) { var_dump($key, $value, $i[$key]); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(5) "a1234" string(4) "test" string(4) "test"