3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function call($a, $b){ echo 'A : ', $a, ' B : ', $b; } $vars = array('b' => 'b','a' => 'a'); call(...$vars);
based on 1PM7m
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Cannot unpack array with string keys in /in/4Zk1r:8 Stack trace: #0 {main} thrown in /in/4Zk1r on line 8
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Catchable fatal error: Cannot unpack array with string keys in /in/4Zk1r on line 8
Process exited with code 255.
Output for 5.5.0 - 5.5.38
Parse error: syntax error, unexpected '.' in /in/4Zk1r on line 8
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected '.', expecting ')' in /in/4Zk1r on line 8
Process exited with code 255.