3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public static function z(){ var_dump(isset($this), get_called_class(), __CLASS__, __METHOD__, debug_backtrace(false)); echo 'x->z();'; } } $x = new x; $x->z(); x::z();
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) string(1) "x" string(1) "x" string(4) "x::z" array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/omXtQ" ["line"]=> int(12) ["function"]=> string(1) "z" ["class"]=> string(1) "x" ["type"]=> string(2) "::" ["args"]=> array(0) { } } } x->z();bool(false) string(1) "x" string(1) "x" string(4) "x::z" array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/omXtQ" ["line"]=> int(13) ["function"]=> string(1) "z" ["class"]=> string(1) "x" ["type"]=> string(2) "::" ["args"]=> array(0) { } } } x->z();

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:
39.87 ms | 402 KiB | 8 Q