3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = function(){echo 'hi';}; $refl = new \ReflectionClass($a); echo $refl; //echo var_export($a, true);
Output for git.master, git.master_jit, rfc.property-hooks
Class [ <internal:Core> final class Closure ] { - Constants [0] { } - Static properties [0] { } - Static methods [2] { Method [ <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 ] } Method [ <internal:Core> static public method fromCallable ] { - Parameters [1] { Parameter #0 [ <required> callable $callback ] } - Return [ Closure ] } } - Properties [0] { } - Methods [3] { Method [ <internal:Core, ctor> private method __construct ] { - Parameters [0] { } } Method [ <internal:Core> public method bindTo ] { - Parameters [2] { Parameter #0 [ <required> ?object $newThis ] Parameter #1 [ <optional> object|string|null $newScope = "static" ] } - Return [ ?Closure ] } Method [ <internal:Core> public method call ] { - Parameters [2] { Parameter #0 [ <required> object $newThis ] Parameter #1 [ <optional> mixed ...$args ] } - Return [ mixed ] } } }

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