3v4l.org

run code in 300+ PHP versions simultaneously
<?php const string = '...'; (function(string $string) { var_dump($string); })(string);
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected '(string)' (string) (T_STRING_CAST) in /in/nbnu3 on line 5
Process exited with code 255.

preferences:
167.45 ms | 1395 KiB | 22 Q