3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace aaa; abstract class Foo { abstract private int $i { get; } }
Output for 8.4.1 - 8.4.5
Fatal error: Property hook cannot be both abstract and private in /in/es9gD on line 8
Process exited with code 255.
Output for 8.3.0 - 8.3.19
Fatal error: Cannot use the abstract modifier on a property in /in/es9gD on line 8
Process exited with code 255.
Output for 8.1.32, 8.2.0 - 8.2.28
Parse error: syntax error, unexpected token "{", expecting "," or ";" in /in/es9gD on line 8
Process exited with code 255.

preferences:
159.06 ms | 998 KiB | 7 Q