3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $_b; function __construc($b) { $this->b = $b; } function __get($name) { echo "get $name \n"; return $this->{'_' . $name}; } function __isset($name) { echo "isset $name\n"; return true; } } class B { private $_c; function __construc($c) { $this->c = $c; } function __get($name) { echo "get $name \n"; return $this->{'_' . $name}; } function __isset($name) { echo "isset $name\n"; return true; } } $c = new B('plop'); $b = new B($c); $a = new A($b); var_dump(isset($a->b->c));
Output for git.master_jit, git.master, rfc.property-hooks
isset b get b bool(false)

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