3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ConstructorTest { public function __construct() { echo "ConstructorTest\n"; } } class ConstructorTest1 extends ConstructorTest { public function ConstructorTest1() { parent::__construct(); } } class ConstructorTest2 extends ConstructorTest1 { public function ConstructorTest2() { $this->ConstructorTest1(); } } class ConstructorTest3 extends ConstructorTest2 { public function ConstructorTest2() { parent::__construct(); } } $test1 = new ConstructorTest(); $test2 = new ConstructorTest1(); $test3 = new ConstructorTest2(); $test4 = new ConstructorTest3();
Output for git.master, git.master_jit, rfc.property-hooks
ConstructorTest ConstructorTest ConstructorTest ConstructorTest

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