3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \stdClass(); $a->rec = $a; print_r($a); var_dump($a); $a = new class() { public function __toString(): string { static $c = 0; if ($c++ > 1) { throw new \Exception('ex'); } return '1'; } }; echo $a, $a, $a;
Output for git.master_jit, git.master, rfc.property-hooks
stdClass Object ( [rec] => stdClass Object *RECURSION* ) object(stdClass)#1 (1) { ["rec"]=> *RECURSION* } 11 Fatal error: Uncaught Exception: ex in /in/DWqcW:13 Stack trace: #0 /in/DWqcW(20): class@anonymous->__toString() #1 {main} thrown in /in/DWqcW on line 13
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:
102.37 ms | 405 KiB | 5 Q