3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Base { protected static string $message; public static function f() : void { echo static::$message; } } final class Test extends Base { protected static string $message = "Okey :)"; } Test::f(); ?>
Output for 8.2.0 - 8.2.28, 8.3.0 - 8.3.22, 8.4.1 - 8.4.8
Okey :)

preferences:
34.51 ms | 406 KiB | 5 Q