3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Criteria { public static function create(bool $accessRawFieldValues = false) { return new self(); } } class MyCriteria extends Criteria { public static function create() { return new self(); } }
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
Fatal error: Declaration of MyCriteria::create() must be compatible with Criteria::create(bool $accessRawFieldValues = false) in /in/Z4ZnM on line 13
Process exited with code 255.

preferences:
161.84 ms | 1003 KiB | 7 Q