3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { function execute($bound_input_params = NULL); } class bar extends PDOStatement implements foo { function execute($bound_input_params = NULL) { print'execute'; parent::execute($bound_input_params); } } $bar = new bar(); $bar->execute(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of bar::execute($bound_input_params = null) should either be compatible with PDOStatement::execute(?array $params = null): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/6Eu72 on line 6 execute Fatal error: Uncaught Error: PDO object is uninitialized in /in/6Eu72:8 Stack trace: #0 /in/6Eu72(8): PDOStatement->execute(NULL) #1 /in/6Eu72(12): bar->execute() #2 {main} thrown in /in/6Eu72 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:
45.83 ms | 402 KiB | 8 Q