3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { var_dump($this); } f(); $f = (new ReflectionFunction('f'))->getClosure()->bindTo(new stdClass()); $f();
Output for rfc.property-hooks, git.master, git.master_jit
Fatal error: Uncaught Error: Using $this when not in object context in /in/A9Vk9:5 Stack trace: #0 /in/A9Vk9(8): f() #1 {main} thrown in /in/A9Vk9 on line 5
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:
43.75 ms | 2201 KiB | 4 Q