3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct () { $this->call = 1; } public function __destruct() { echo 'Destruct: ' . get_class($this) . PHP_EOL; } } class B { public function __destruct() { echo 'Destruct: ' . get_class($this) . PHP_EOL; } } function test() { new A; new B; } test(); echo "Exit\n";
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property A::$call is deprecated in /in/HUMA1 on line 7 Destruct: A Destruct: B Exit

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:
55.94 ms | 401 KiB | 8 Q