3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($a,$b) = (array) "aa"; var_dump($a,$b); $a = array(); $a[]=22; $a[] =66; list($x,$y) = $a; var_dump($x,$y);
based on eJLNi
Output for 5.3.0 - 7.1.0
Notice: Undefined offset: 1 in /in/BNkJA on line 2 string(2) "aa" NULL int(22) int(66)
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 1 in /in/BNkJA on line 2 string(2) "aa" NULL int(22) int(66)