3v4l.org

run code in 500+ PHP versions simultaneously
<?php class BaseBulder { public function updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, ?bool $escape = null) {} } class MyBaseBulder extends BaseBulder { public function updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100) {} }
Output for 8.0.1 - 8.0.20, 8.1.0 - 8.1.7, 8.3.5
Fatal error: Declaration of MyBaseBulder::updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100) must be compatible with BaseBulder::updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, ?bool $escape = null) in /in/3Dn3D on line 9
Process exited with code 255.
Output for 7.4.0 - 7.4.30
Warning: Declaration of MyBaseBulder::updateBatch(?array $set = NULL, ?string $index = NULL, int $batchSize = 100) should be compatible with BaseBulder::updateBatch(?array $set = NULL, ?string $index = NULL, int $batchSize = 100, ?bool $escape = NULL) in /in/3Dn3D on line 9

preferences:
44.4 ms | 737 KiB | 3 Q