3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ABC { public function abc(); }; abstract class CED implements ABC{ } trait XXX { public function abc(){ print 'abc'; } public function __construct(){ echo $this->abc(); } } final class EFG extends CED{ use XXX; public function abc(){ parent::abc(); echo ' EFG '; } } new EFG;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Cannot call abstract method ABC::abc() in /in/i5hdo:21 Stack trace: #0 /in/i5hdo(15): EFG->abc() #1 /in/i5hdo(26): EFG->__construct() #2 {main} thrown in /in/i5hdo on line 21
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:
36.55 ms | 401 KiB | 8 Q