3v4l.org

run code in 300+ PHP versions simultaneously
<?php function one () { two(); } function two () { three(); } function three () { four(); } function four () { five(); } function five () { throw new Exception; } try {one();}catch (Exception $e){var_dump($e->getTrace());}
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(4) { ["file"]=> string(9) "/in/YLQnV" ["line"]=> int(16) ["function"]=> string(4) "five" ["args"]=> array(0) { } } [1]=> array(4) { ["file"]=> string(9) "/in/YLQnV" ["line"]=> int(12) ["function"]=> string(4) "four" ["args"]=> array(0) { } } [2]=> array(4) { ["file"]=> string(9) "/in/YLQnV" ["line"]=> int(8) ["function"]=> string(5) "three" ["args"]=> array(0) { } } [3]=> array(4) { ["file"]=> string(9) "/in/YLQnV" ["line"]=> int(4) ["function"]=> string(3) "two" ["args"]=> array(0) { } } [4]=> array(4) { ["file"]=> string(9) "/in/YLQnV" ["line"]=> int(24) ["function"]=> string(3) "one" ["args"]=> array(0) { } } }

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:
46.67 ms | 407 KiB | 5 Q