3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); list($k , $v) = $a; var_dump($k,$v);
based on 1k6SG
Output for 7.0.0 - 7.2.6
Notice: Undefined offset: 0 in /in/n4IIY on line 4 Notice: Undefined offset: 1 in /in/n4IIY on line 4 NULL NULL
Output for 5.3.20 - 5.6.28
Notice: Undefined offset: 1 in /in/n4IIY on line 4 Notice: Undefined offset: 0 in /in/n4IIY on line 4 NULL NULL