3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new ReflectionMethod('Closure', 'bind'); $reflection = new ReflectionFunction($x->getClosure()); var_dump(preg_match('/^\\s*?Method\\s*\\[\\s*static/i', $reflection->__toString())); var_dump($reflection->__toString());
Output for git.master, git.master_jit, rfc.property-hooks
int(0) string(278) "Closure [ <internal:Core> static public method bind ] { - Parameters [3] { Parameter #0 [ <required> Closure $closure ] Parameter #1 [ <required> ?object $newThis ] Parameter #2 [ <optional> object|string|null $newScope = "static" ] } - Return [ ?Closure ] } "

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.27 ms | 402 KiB | 8 Q