3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b['ss'] = 'sds'; $c['s' = 'sd'; $a['ss'] = $b; foreach($a as $key => $value){ $new_array[$key] = $value[0]; } var_dump($new_array);
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '=', expecting ']' in /in/YtUTD on line 3
Process exited with code 255.