3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(range(0,9) as $n){ echo "$n -> ",(10**$n-1)," ",(10**$n-1)/9," ",(10**$n-1)/9*$n,"\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
0 -> 0 0 0 1 -> 9 1 1 2 -> 99 11 22 3 -> 999 111 333 4 -> 9999 1111 4444 5 -> 99999 11111 55555 6 -> 999999 111111 666666 7 -> 9999999 1111111 7777777 8 -> 99999999 11111111 88888888 9 -> 999999999 111111111 999999999

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:
35.01 ms | 406 KiB | 5 Q