3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Itesti { public function hello(); } class testi { public function test(Itesti $temp) { $temp->hello(); } } $temp = new testi(); $temp->test(new class implements Itesti{ public function hello() { throw new Exception("NOOOOU"); } });
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Exception: NOOOOU in /in/k9MHZ:19 Stack trace: #0 /in/k9MHZ(10): Itesti@anonymous->hello() #1 /in/k9MHZ(17): testi->test(Object(Itesti@anonymous)) #2 {main} thrown in /in/k9MHZ on line 19
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:
51.82 ms | 401 KiB | 8 Q