3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($a,$b) = "aa"; var_dump($a,$b); $a[0]="ab"; list($a,$b) = $a[0]; var_dump($a,$b);
based on gAZBd
Output for 7.0.0 - 7.1.0
NULL NULL NULL NULL
Output for 4.3.0 - 5.0.5, 5.2.2 - 5.6.28
NULL NULL string(1) "a" string(1) "b"
Output for 5.1.0 - 5.2.1
Fatal error: Invalid opcode 98/1/1. in /in/6mccq on line 2
Process exited with code 255.