3v4l.org

run code in 300+ PHP versions simultaneously
<?php class parentt { public $property1; public function __construct() { $this->property1 = 1; } } class child extends parentt { public $property2; public function __construct() { $this->property2 = $this->property1; } public function showProperty(){ return $this->property2; } } $obj = new child(); echo $obj->showProperty();
Output for git.master_jit, git.master, rfc.property-hooks

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