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()); print_r($e->getTrace()); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [file] => /in/rnqhL [line] => 4 [function] => test [class] => Test [type] => -> [args] => Array ( [0] => Yar ) ) [1] => Array ( [file] => /in/rnqhL [line] => 12 [function] => __construct [class] => Test [type] => -> [args] => Array ( [0] => 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:
51 ms | 402 KiB | 8 Q