3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( "yolo", "sup", PHP_MAX_INT, null, 5648 ); list($b, $c, $d, $e, $f, $g, $h) = $a; var_dump($a, $b, $c, $d, $e, $f, $g, $h);
Output for 7.2.0
Warning: Use of undefined constant PHP_MAX_INT - assumed 'PHP_MAX_INT' (this will throw an Error in a future version of PHP) in /in/L5qLU on line 6 Notice: Undefined offset: 5 in /in/L5qLU on line 11 Notice: Undefined offset: 6 in /in/L5qLU on line 11 array(5) { [0]=> string(4) "yolo" [1]=> string(3) "sup" [2]=> string(11) "PHP_MAX_INT" [3]=> NULL [4]=> int(5648) } string(4) "yolo" string(3) "sup" string(11) "PHP_MAX_INT" NULL int(5648) NULL NULL
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant PHP_MAX_INT - assumed 'PHP_MAX_INT' in /in/L5qLU on line 6 Notice: Undefined offset: 5 in /in/L5qLU on line 11 Notice: Undefined offset: 6 in /in/L5qLU on line 11 array(5) { [0]=> string(4) "yolo" [1]=> string(3) "sup" [2]=> string(11) "PHP_MAX_INT" [3]=> NULL [4]=> int(5648) } string(4) "yolo" string(3) "sup" string(11) "PHP_MAX_INT" NULL int(5648) NULL NULL
Output for 5.3.18 - 5.6.28
Notice: Use of undefined constant PHP_MAX_INT - assumed 'PHP_MAX_INT' in /in/L5qLU on line 6 Notice: Undefined offset: 6 in /in/L5qLU on line 11 Notice: Undefined offset: 5 in /in/L5qLU on line 11 array(5) { [0]=> string(4) "yolo" [1]=> string(3) "sup" [2]=> string(11) "PHP_MAX_INT" [3]=> NULL [4]=> int(5648) } string(4) "yolo" string(3) "sup" string(11) "PHP_MAX_INT" NULL int(5648) NULL NULL