3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); function say(string ...$something): string{ return implode(', ', $something); } say('hello', 'world');
based on 19SX5
Output for 7.0.0 - 7.2.0
Output for 5.6.8 - 5.6.28
Warning: Unsupported declare 'strict_types' in /in/tKHFH on line 2 Parse error: syntax error, unexpected ':', expecting '{' in /in/tKHFH on line 4
Process exited with code 255.
Output for 5.4.2 - 5.5.35
Warning: Unsupported declare 'strict_types' in /in/tKHFH on line 2 Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/tKHFH on line 4
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Warning: Unsupported declare 'strict_types' in /in/tKHFH on line 2 Parse error: syntax error, unexpected '.', expecting '&' or T_VARIABLE in /in/tKHFH on line 4
Process exited with code 255.