3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __toString() { return $this->s(); } private function s() { throw new \RuntimeException("BOO!"); } } try { (function ($a) { return function ($b) { return function ($c) { echo new A, "\n"; }; }; })(10)(20)(30); } catch (\Throwable $e) { echo "E! {$e->getMessage()}\n"; throw $e; }
Output for git.master, git.master_jit, rfc.property-hooks
E! BOO! Fatal error: Uncaught RuntimeException: BOO! in /in/OSGYa:8 Stack trace: #0 /in/OSGYa(4): A->s() #1 /in/OSGYa(16): A->__toString() #2 /in/OSGYa(19): {closure}(30) #3 {main} thrown in /in/OSGYa 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:
47.05 ms | 401 KiB | 8 Q