3v4l.org

run code in 500+ PHP versions simultaneously
<?php function &get_ref($_): string { static $a = "f"; return $a; } function &get_ref2(): string { return "foo" |> get_ref(...); } echo get_ref2();
Output for 8.2.0 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.11
Parse error: syntax error, unexpected token ">" in /in/po5A6 on line 11
Process exited with code 255.

preferences:
16.93 ms | 1164 KiB | 5 Q