3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Obj { public $a; protected $b; private $c; function __construct($a, $b, $c) { $this->a = $a; $this->b = $b; $this->c = $c; } } $o = new Obj(1, 2, 3); var_dump($o);
Output for git.master, git.master_jit, rfc.property-hooks
object(Obj)#1 (3) { ["a"]=> int(1) ["b":protected]=> int(2) ["c":"Obj":private]=> int(3) }

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:
30.39 ms | 404 KiB | 8 Q