3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = array('first' => '1', 0 => 0, 2 => 2); var_export($f); list($data['foo']) = $f; var_export($data);
Output for 4.3.0 - 7.1.0
array ( 'first' => '1', 0 => 0, 2 => 2, )array ( 'foo' => 0, )