3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { function fetch($how = NULL, $orientation = NULL, $offset = NULL); } class bar extends PDOStatement implements foo { function fetch($how = NULL, $orientation = NULL, $offset = NULL) { print'fetch'; parent::fetch($how, $orientation, $offset); } } $bar = new bar(); $bar->fetch(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of bar::fetch($how = null, $orientation = null, $offset = null) should either be compatible with PDOStatement::fetch(int $mode = PDO::FETCH_DEFAULT, int $cursorOrientation = PDO::FETCH_ORI_NEXT, int $cursorOffset = 0): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/YVHqv on line 6 fetch Deprecated: PDOStatement::fetch(): Passing null to parameter #1 ($mode) of type int is deprecated in /in/YVHqv on line 8 Deprecated: PDOStatement::fetch(): Passing null to parameter #2 ($cursorOrientation) of type int is deprecated in /in/YVHqv on line 8 Deprecated: PDOStatement::fetch(): Passing null to parameter #3 ($cursorOffset) of type int is deprecated in /in/YVHqv on line 8 Fatal error: Uncaught Error: PDO object is uninitialized in /in/YVHqv:8 Stack trace: #0 /in/YVHqv(8): PDOStatement->fetch(NULL, NULL, NULL) #1 /in/YVHqv(12): bar->fetch() #2 {main} thrown in /in/YVHqv on line 8
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.67 ms | 402 KiB | 8 Q