3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __construct(GUASS\WHAT\I\DONT\EXIST $class = null) { echo 'yay'; } } new Test; $r = new \ReflectionClass('Test'); foreach ($r->getMethod('__construct')->getParameters() as $param) { var_dump($param->getName(), $param->getClass()); }
Output for git.master, git.master_jit, rfc.property-hooks
yay Deprecated: Method ReflectionParameter::getClass() is deprecated in /in/aH5b6 on line 17 Fatal error: Uncaught ReflectionException: Class "GUASS\WHAT\I\DONT\EXIST" does not exist in /in/aH5b6:17 Stack trace: #0 /in/aH5b6(17): ReflectionParameter->getClass() #1 {main} thrown in /in/aH5b6 on line 17
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:
48.48 ms | 401 KiB | 8 Q