3v4l.org

run code in 200+ 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 7.2.0 - 7.2.6
Warning: Use of undefined constant y - assumed 'y' (this will throw an Error in a future version of PHP) in /in/X6Ceg on line 6 Warning: Use of undefined constant z - assumed 'z' (this will throw an Error in a future version of PHP) in /in/X6Ceg on line 6 string(3) "abc" string(1) "y" string(1) "z"
Output for 4.3.0 - 7.1.20
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"