3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($n, $s, $o) { if ($n === 0) { throw new Exception("LEAK STUFF."); } foo($n-1, $s, $o); } class Key { private $key; function __construct($key) { $this->key = $key; } } $key_s = "HELLO WORLD"; $key_o = new Key("GOODBYE WORLD"); foo(3, $key_s, $key_o);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Exception: LEAK STUFF. in /in/Abue1:6 Stack trace: #0 /in/Abue1(9): foo(0, 'HELLO WORLD', Object(Key)) #1 /in/Abue1(9): foo(1, 'HELLO WORLD', Object(Key)) #2 /in/Abue1(9): foo(2, 'HELLO WORLD', Object(Key)) #3 /in/Abue1(24): foo(3, 'HELLO WORLD', Object(Key)) #4 {main} thrown in /in/Abue1 on line 6
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:
48.99 ms | 401 KiB | 8 Q