3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function __construct(final string $id) { } } $a = new A('test'); echo $a->id;
Output for 8.3.5
Fatal error: Cannot use the final modifier on a parameter in /in/noq7hD on line 5
Process exited with code 255.

preferences:
38.05 ms | 489 KiB | 3 Q