3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php list($a, $b) = array_values(['foo' => 'bar', 'biz' => 'baz']); var_dump($a, $b);
based on WA9ST
Output for 5.4.1 - 7.2.0
string(3) "bar" string(3) "baz"
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/RQg3H on line 3
Process exited with code 255.