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(DEBUG_BACKTRACE_PROVIDE_OBJECT)); var_dump($e->getTrace()); } ?>

preferences:
31.46 ms | 402 KiB | 5 Q