run code in 300+ PHP versions simultaneously
<?php foreach((new ReflectionMethod('DOMNamedNodeMap::getNamedItemNS'))->getParameters() as $parameter) { echo "Parameter name: "; var_dump($parameter->getName()); echo "Has type: "; var_dump($parameter[0]->getType()); var_dump($parameter[1]->getType()); var_dump($parameter[3]->getType()); }
Output for git.master, git.master_jit, rfc.literals
Parameter name: string(9) "namespace" Has type: Fatal error: Uncaught Error: Cannot use object of type ReflectionParameter as array in /in/j96U1:8 Stack trace: #0 {main} thrown in /in/j96U1 on line 8
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

13.63 ms | 459 KiB | 5 Q