3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( "yolo", "sup", PHP_INT_MAX, null, 5648 ); list($b, $c, $d, $e, $f, $g, $h) = $a; var_dump($a, $b, $c, $d, $e, $f, $g, $h);
based on L5qLU
Output for 7.0.0 - 7.2.0
Notice: Undefined offset: 5 in /in/dgag4 on line 11 Notice: Undefined offset: 6 in /in/dgag4 on line 11 array(5) { [0]=> string(4) "yolo" [1]=> string(3) "sup" [2]=> int(9223372036854775807) [3]=> NULL [4]=> int(5648) } string(4) "yolo" string(3) "sup" int(9223372036854775807) NULL int(5648) NULL NULL
Output for 5.3.0 - 5.6.28
Notice: Undefined offset: 6 in /in/dgag4 on line 11 Notice: Undefined offset: 5 in /in/dgag4 on line 11 array(5) { [0]=> string(4) "yolo" [1]=> string(3) "sup" [2]=> int(9223372036854775807) [3]=> NULL [4]=> int(5648) } string(4) "yolo" string(3) "sup" int(9223372036854775807) NULL int(5648) NULL NULL
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.2.17
Notice: Undefined offset: 6 in /in/dgag4 on line 11 Notice: Undefined offset: 5 in /in/dgag4 on line 11 array(5) { [0]=> string(4) "yolo" [1]=> string(3) "sup" [2]=> int(9223372036854775807) [3]=> NULL [4]=> int(5648) } string(4) "yolo" string(3) "sup" int(9223372036854775807) NULL int(5648) NULL NULL
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/dgag4 on line 6 Notice: Undefined offset: 6 in /in/dgag4 on line 11 Notice: Undefined offset: 5 in /in/dgag4 on line 11 array(5) { [0]=> string(4) "yolo" [1]=> string(3) "sup" [2]=> string(11) "PHP_INT_MAX" [3]=> NULL [4]=> int(5648) } string(4) "yolo" string(3) "sup" string(11) "PHP_INT_MAX" NULL int(5648) NULL NULL