3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function splat(...$a){ var_dupm($a); }; $data = [ "data1" => "Hello", "data2" => "World" ]; splat(...$data);
based on nKG4g
Output for 7.0.30 - 7.3.0beta1
Fatal error: Uncaught Error: Cannot unpack array with string keys in /in/jNehV:12 Stack trace: #0 {main} thrown in /in/jNehV on line 12
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Call to undefined function var_dupm() in /in/jNehV:-1 Stack trace: #0 /in/jNehV(-1): splat() #1 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Call to undefined function var_dupm() in /in/jNehV:4 Stack trace: #0 /in/jNehV(12): splat() #1 {main}
Process exited with code 255.
Output for 5.6.30
Catchable fatal error: Cannot unpack array with string keys in /in/jNehV on line 12
Process exited with code 255.