3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php const string = '...'; (function(string $string) { var_dump($string); })(string);
based on Utt5f
Output for 5.4.9 - 5.6.15
Parse error: syntax error, unexpected '(string)' (string) (T_STRING_CAST) in /in/nbnu3 on line 5
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_STRING_CAST in /in/nbnu3 on line 5
Process exited with code 255.