3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b['ss'] = 'sds'; $a['ss'] = $b; foreach($a as $key => $value){ $new_array[$key] = $value; } var_dump($new_array);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(1) { ["ss"]=> array(1) { ["ss"]=> string(3) "sds" } }
Output for hhvm-3.10.0

Process exited with code 153.