3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('foo'=>12, 'bar' => 23); list($b, $c) = $a; var_dump($b, $c);
Output for 7.0.0 - 7.2.0
Notice: Undefined offset: 0 in /in/cjELp on line 5 Notice: Undefined offset: 1 in /in/cjELp on line 5 NULL NULL
Output for 5.3.19 - 5.6.28
Notice: Undefined offset: 1 in /in/cjELp on line 5 Notice: Undefined offset: 0 in /in/cjELp on line 5 NULL NULL