3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php list($a,$b) = "aa"; var_dump($a,$b); $a[]="a"; $a[] ="b"; list($a,$b) = $a; var_dump($a,$b);
based on 6mccq
Output for 4.3.0 - 5.0.5, 5.2.2 - 7.1.7
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/kDMT7 on line 2
Process exited with code 255.