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();
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(4) { ["file"]=> string(9) "/in/TkNpc" ["line"]=> int(28) ["function"]=> string(19) "jeromeIsExceptional" ["args"]=> array(0) { } } ["boobies"]=> array(3) { [0]=> string(3) "34B" [1]=> string(3) "32C" [2]=> string(3) "36D" } }

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:
61.55 ms | 406 KiB | 5 Q