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.3.0 - 8.3.17, 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.
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.

preferences:
62.1 ms | 693 KiB | 3 Q