3v4l.org

run code in 300+ PHP versions simultaneously
<?php class P implements \SessionUpdateTimestampHandlerInterface { #[\ReturnTypeWillChange] public function validateId(string $id) { return TRUE; } #[\ReturnTypeWillChange] public function updateTimestamp(string $id, string $data) { return TRUE; } } class C extends P implements \SessionUpdateTimestampHandlerInterface { public function validateId($id) {} } $c = new C(); print("ok");
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
ok

preferences:
63.03 ms | 406 KiB | 5 Q