3v4l.org

run code in 500+ PHP versions simultaneously
<?php class X { function __construct( //Cannot use the final modifier on a parameter private final $property ) {} }
Output for 8.2.0 - 8.2.27
Parse error: syntax error, unexpected token "final", expecting variable in /in/HKsFL on line 6
Process exited with code 255.
Output for 8.3.0 - 8.3.35, 8.4.1 - 8.4.4
Fatal error: Cannot use the final modifier on a parameter in /in/HKsFL on line 6
Process exited with code 255.

preferences:
27.37 ms | 1155 KiB | 8 Q