3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f1() { return 123; } function f2() { return 123; } $f1_body = (new ReflectionFunction('f1'))->__toString(); $f2_body = (new ReflectionFunction('f2'))->__toString(); echo $f1_body . "\n"; echo $f2_body . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
Function [ <user> function f1 ] { @@ /in/NqQEF 2 - 4 } Function [ <user> function f2 ] { @@ /in/NqQEF 5 - 7 }

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:
37.57 ms | 401 KiB | 8 Q