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(array('file' => 'data.php', 'line' => 20, 'function' => 'super', 'args' => array())); } } function test() { throw new UberException(); } try { test(); } catch (Exception $e) { var_dump($e->getTrace()); throw $e; }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ';' in /in/sW04B on line 9
Process exited with code 255.

preferences:
190.61 ms | 1395 KiB | 53 Q