3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function () { var_dump($this); }; $f = Closure::bind($f, $f); $f(); $g = function () { var_dump($this, $this()); }; $g = Closure::bind($g, $g); $g();
Output for rfc.property-hooks, git.master, git.master_jit
object(Closure)#1 (0) { } Fatal error: Uncaught Error: Using $this when not in object context in /in/JZdSI:10 Stack trace: #0 /in/JZdSI(10): {closure}() #1 /in/JZdSI(13): Closure->{closure}() #2 {main} thrown in /in/JZdSI on line 10
Process exited with code 255.

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:
99.53 ms | 2098 KiB | 4 Q