3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test(string ...$texts) { var_dump($texts); } test(...[]);
Output for 5.6.30, 7.0.30 - 7.3.0beta1
array(0) { }
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Parameter $texts is variadic and has a type constraint (HH\string); variadic params with type constraints are not supported in non-Hack files in /in/i0sIM:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Parameter $texts is variadic and has a type constraint (HH\string); variadic params with type constraints are not supported in non-Hack files in /in/i0sIM:3 Stack trace: #0 {main}
Process exited with code 255.