3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ function __construct($arg){ $this->test($arg); } function test($args) { throw new Exception; } } try { new Test('Yar'); } catch(Exception $e) { print_r(debug_backtrace()); var_dump($e->getTrace()); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( ) array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/7nil6" ["line"]=> int(4) ["function"]=> string(4) "test" ["class"]=> string(4) "Test" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(3) "Yar" } } [1]=> array(6) { ["file"]=> string(9) "/in/7nil6" ["line"]=> int(12) ["function"]=> string(11) "__construct" ["class"]=> string(4) "Test" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(3) "Yar" } } }

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:
44.76 ms | 402 KiB | 8 Q