3v4l.org

run code in 200+ PHP versions simultaneously
<?php list($a, $b) = NULL; var_dump($a, $b); list($c, $d) = array(); var_dump($c, $d); list($e, $f) = array('a'); var_dump($e, $f);

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
NULL NULL Notice: Undefined offset: 0 in /in/fF4Nc on line 6 Notice: Undefined offset: 1 in /in/fF4Nc on line 6 NULL NULL Notice: Undefined offset: 1 in /in/fF4Nc on line 10 string(1) "a" NULL
Output for Array change keys
NULL NULL Notice: Undefined offset: 0 in /in/fF4Nc on line 6 Notice: Undefined offset: 1 in /in/fF4Nc on line 6 NULL NULL Notice: Undefined offset: 1 in /in/fF4Nc on line 10 string(1) "a" NULL
Output for Lexical anon
NULL NULL Notice: Undefined offset: 0 in /in/fF4Nc on line 6 Notice: Undefined offset: 1 in /in/fF4Nc on line 6 NULL NULL Notice: Undefined offset: 1 in /in/fF4Nc on line 10 string(1) "a" NULL

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page