3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($a,$a,,) = array("Alice", "Mary", "George", "Dave"); var_dump($a,$b); /* Alice*/
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: b in /in/lT5f5 on line 4 string(4) "Mary" NULL
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: b in /in/lT5f5 on line 4 string(5) "Alice" NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: b in /in/lT5f5 on line 4 string(5) "Alice" NULL