3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UberException extends Exception { public function __construct() { $refTrace = new ReflectionProperty('Exception', 'trace'); $refTrace->setAccessible(true); $refTrace->setValue($this, array('data')); } } try { throw new UberException(); } catch (Exception $e) { var_dump($e->getTrace()); }

preferences:
52.22 ms | 402 KiB | 5 Q