3v4l.org

run code in 300+ PHP versions simultaneously
<?php function call($a, $b){ echo 'A : ', $a, ' B : ', $b; } $vars = array('a' => 'a', 'b' => 'b'); call(...$vars);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
A : a B : b
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Cannot unpack array with string keys in /in/1PM7m:8 Stack trace: #0 {main} thrown in /in/1PM7m 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/1PM7m on line 8
Process exited with code 255.
Output for 5.5.0 - 5.5.38
Parse error: syntax error, unexpected '.' in /in/1PM7m on line 8
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected '.', expecting ')' in /in/1PM7m on line 8
Process exited with code 255.

preferences:
188.97 ms | 401 KiB | 289 Q