3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { private $first_name; private $last_name; private $gender; private $age; public function __construct($a, $b, $c, $d = null) { $this->first_name = $a; $this->last_name = $b; $this->gender = $c; $this->age = $d. PHP_EOL; //print 'Parent: ' . $a . $b . $c . $d . PHP_EOL; } public function getFirstName(){ return $this->first_name; } } class ChildClass extends ParentClass { public function __construct() { parent::__construct(1, 9, 3, 7); } } $child = new ChildClass(); echo "<br />"; $child->getFirstName();
Output for git.master_jit, git.master, rfc.property-hooks
<br />

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