3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((string) new ReflectionMethod('ReflectionClass', '__clone')); var_dump((string) new ReflectionMethod('ReflectionFunction', '__clone')); var_dump((string) new ReflectionMethod('ReflectionMethod', '__clone')); var_dump((string) new ReflectionMethod('ReflectionParameter', '__clone')); var_dump((string) new ReflectionMethod('ReflectionExtension', '__clone'));
Output for git.master, git.master_jit
string(106) "Method [ <internal:Reflection> private method __clone ] { - Parameters [0] { } - Return [ void ] } " string(143) "Method [ <internal:Reflection, inherits ReflectionFunctionAbstract> private method __clone ] { - Parameters [0] { } - Return [ void ] } " string(143) "Method [ <internal:Reflection, inherits ReflectionFunctionAbstract> private method __clone ] { - Parameters [0] { } - Return [ void ] } " string(106) "Method [ <internal:Reflection> private method __clone ] { - Parameters [0] { } - Return [ void ] } " string(106) "Method [ <internal:Reflection> private method __clone ] { - Parameters [0] { } - Return [ void ] } "
Output for rfc.property-hooks
string(106) "Method [ <internal:Reflection> private method __clone ] { - Parameters [0] { } - Return [ void ] } " Fatal error: Uncaught ReflectionException: Method ReflectionFunction::__clone() does not exist in /in/ah7om:4 Stack trace: #0 /in/ah7om(4): ReflectionMethod->__construct('ReflectionFunct...', '__clone') #1 {main} thrown in /in/ah7om on line 4
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:
30.56 ms | 401 KiB | 8 Q