3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($n){ return $n<2 ? 2 : f($n-1)+f($n-2); } echo f(5),"\n"; echo f(4),"\n"; echo f(3),"\n"; echo f(2),"\n"; echo f(1),"\n"; echo f(0),"\n";
Output for git.master, git.master_jit, rfc.property-hooks
16 10 6 4 2 2

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:
27.37 ms | 405 KiB | 5 Q