3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(Exception $e, $bar) {} $r = new ReflectionFunction('foo'); $p = $r->getParameters(); var_dump($p[0]->getClass()); var_dump($p[1]->getClass());
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Method ReflectionParameter::getClass() is deprecated in /in/tK7Xb on line 7 object(ReflectionClass)#4 (1) { ["name"]=> string(9) "Exception" } Deprecated: Method ReflectionParameter::getClass() is deprecated in /in/tK7Xb on line 8 NULL

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:
47.6 ms | 402 KiB | 8 Q