3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassThatKeepsExceptionReference { protected $exception_reference; public function __construct() { $this->exeption_reference = new Exception(); } public function throw_ref() { throw $this->exception_reference; } } (new ClassThatKeepsExceptionReference)->throw_ref();
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property ClassThatKeepsExceptionReference::$exeption_reference is deprecated in /in/a6d5s on line 9 Fatal error: Uncaught Error: Can only throw objects in /in/a6d5s:14 Stack trace: #0 /in/a6d5s(18): ClassThatKeepsExceptionReference->throw_ref() #1 {main} thrown in /in/a6d5s on line 14
Process exited with code 255.

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.4 ms | 401 KiB | 8 Q