3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('test'=>1, 'name'=>'leo'); list($t,$n) = $a; var_dump($t,$n);
based on HJMjX
Output for 7.0.0 - 7.3.0beta1
Notice: Undefined offset: 0 in /in/WH48t on line 4 Notice: Undefined offset: 1 in /in/WH48t on line 4 NULL NULL
Output for hhvm-3.22.0
Notice: Undefined index: 0 in /in/WH48t on line -1 Notice: Undefined index: 1 in /in/WH48t on line -1 NULL NULL
Output for hhvm-3.18.5 - 3.21.3
Notice: Undefined index: 0 in /in/WH48t on line 4 Notice: Undefined index: 1 in /in/WH48t on line 4 NULL NULL
Output for 5.6.0 - 5.6.30
Notice: Undefined offset: 1 in /in/WH48t on line 4 Notice: Undefined offset: 0 in /in/WH48t on line 4 NULL NULL