3v4l.org

run code in 500+ PHP versions simultaneously
<?php class SomeClass { function methodInjection() {} public function get() { return new ReflectionMethod(...$this->methodInjection(...)); } } $obj = new SomeClass(); var_dump($obj->get());
Output for git.master_jit, git.master
Fatal error: Uncaught TypeError: Only arrays and Traversables can be unpacked, Closure given in /in/gO5mO:10 Stack trace: #0 /in/gO5mO(15): SomeClass->get() #1 {main} thrown in /in/gO5mO on line 10
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:
53.75 ms | 549 KiB | 4 Q