3v4l.org

run code in 300+ 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.29, 8.3.0 - 8.3.24, 8.4.1 - 8.4.11
Parse error: syntax error, unexpected token ">" in /in/po5A6 on line 11
Process exited with code 255.

preferences:
168.33 ms | 1008 KiB | 7 Q