3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // list() doesn't work with strings list($bar) = "abcde"; var_dump($bar); $string = "abcde"; list($foo) = $string; var_dump($foo);
Output for 7.0.0 - 7.1.0
NULL NULL
Output for 4.3.0 - 5.0.5, 5.2.2 - 5.6.28, hhvm-3.12.0
NULL string(1) "a"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.0 - 5.2.1
Fatal error: Invalid opcode 98/1/1. in /in/IoHlF on line 3
Process exited with code 255.