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.30, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
ok

preferences:
63.22 ms | 406 KiB | 5 Q