3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Header { public function __construct() { var_dump(debug_backtrace()); } } class Modules { public function __construct() { $this->header = new Header(); } } class Project { public $config = "config"; public function __construct() { $this->modules = new Modules(); } } $p = new Project();
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(7) { ["file"]=> string(9) "/in/Klpc6" ["line"]=> int(15) ["function"]=> string(11) "__construct" ["class"]=> string(6) "Header" ["object"]=> object(Header)#3 (0) { } ["type"]=> string(2) "->" ["args"]=> array(0) { } } [1]=> array(7) { ["file"]=> string(9) "/in/Klpc6" ["line"]=> int(25) ["function"]=> string(11) "__construct" ["class"]=> string(7) "Modules" ["object"]=> object(Modules)#2 (0) { } ["type"]=> string(2) "->" ["args"]=> array(0) { } } [2]=> array(7) { ["file"]=> string(9) "/in/Klpc6" ["line"]=> int(29) ["function"]=> string(11) "__construct" ["class"]=> string(7) "Project" ["object"]=> object(Project)#1 (1) { ["config"]=> string(6) "config" } ["type"]=> string(2) "->" ["args"]=> array(0) { } } } Deprecated: Creation of dynamic property Modules::$header is deprecated in /in/Klpc6 on line 15 Deprecated: Creation of dynamic property Project::$modules is deprecated in /in/Klpc6 on line 25

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:
74.26 ms | 403 KiB | 8 Q