3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $prop = 0; public function callBar() { $this->prop = 100; var_dump($this); $b = new Bar(); $b->trace(); } } class Bar { public function trace() { $bt = debug_backtrace(); var_dump($bt[1]["object"]); } } $f = new Foo(); $f->callBar();
Output for git.master, git.master_jit, rfc.property-hooks
object(Foo)#1 (1) { ["prop"]=> int(100) } object(Foo)#1 (1) { ["prop"]=> int(100) }

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