3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo {} function f(Foo $x) {} f( (Foo) '' );
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
Parse error: syntax error, unexpected '''' (T_CONSTANT_ENCAPSED_STRING) in /in/gcej0 on line 7
Process exited with code 255.

preferences:
197.45 ms | 1395 KiB | 64 Q