3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array('a' => 100, "b" => "red"); list($a, $b) = $array; var_dump($a, $b); ?>
based on GDJDM
Output for 7.0.0 - 7.2.0
Notice: Undefined offset: 0 in /in/s09DY on line 4 Notice: Undefined offset: 1 in /in/s09DY on line 4 NULL NULL
Output for 5.3.19 - 5.6.21
Notice: Undefined offset: 1 in /in/s09DY on line 4 Notice: Undefined offset: 0 in /in/s09DY on line 4 NULL NULL