3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=array('abc','def','ghi'); list($x,$y,$z) = $a; var_dump($x,y,z);
based on JROpD
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant y - assumed 'y' in /in/X6Ceg on line 6 Notice: Use of undefined constant z - assumed 'z' in /in/X6Ceg on line 6 string(3) "abc" string(1) "y" string(1) "z"