3v4l.org

run code in 300+ PHP versions simultaneously
<?php class JeromeException extends Exception { protected $boobies = []; function __construct($message = null, $code = 0, Exception $previous = null, $arrayOfBoobies = []) { $this->boobies = $arrayOfBoobies; } function getTraceEx() { return $this->getTrace() + ['boobies' => $this->boobies]; } } function jeromeIsExceptional() { try { throw new JeromeException('herro', 0, null, ['34B', '32C', '36D']); } catch (JeromeException $e) { var_dump($e->getTraceEx()); } } jeromeIsExceptional();

preferences:
58.45 ms | 404 KiB | 5 Q