3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=2000; $xx=$x; $a=20; $qq=0.02; $s=0; for ($i=$qq;; $i=$i+$i*$a*0.01) { $x-=$i; echo ($s+1).">>>". ($xx-$x)."\n##>>>(". $i.")\n"; if ($x <0) break; $y=$x; $s++; $c=$i; } echo "\n#######\n"; echo ($c)."///".$s."\\\\\\ \n".($xx-$x).">>>n>>".(-$x)."\nend>>>". ($y); ?>
Output for git.master, git.master_jit, rfc.property-hooks
1>>>0.019999999999982 ##>>>(0.02) 2>>>0.043999999999869 ##>>>(0.024) 3>>>0.072799999999916 ##>>>(0.0288) 4>>>0.10735999999997 ##>>>(0.03456) 5>>>0.14883200000008 ##>>>(0.041472) 6>>>0.19859840000004 ##>>>(0.0497664) 7>>>0.25831807999998 ##>>>(0.05971968) 8>>>0.329981696 ##>>>(0.071663616) 9>>>0.41597803519994 ##>>>(0.0859963392) 10>>>0.51917364224005 ##>>>(0.10319560704) 11>>>0.64300837068799 ##>>>(0.123834728448) 12>>>0.79161004482557 ##>>>(0.1486016741376) 13>>>0.96993205379067 ##>>>(0.17832200896512) 14>>>1.1839184645489 ##>>>(0.21398641075814) 15>>>1.4407021574586 ##>>>(0.25678369290977) 16>>>1.7488425889503 ##>>>(0.30814043149173) 17>>>2.1186111067404 ##>>>(0.36976851779007) 18>>>2.5623333280885 ##>>>(0.44372222134809) 19>>>3.0947999937061 ##>>>(0.5324666656177) 20>>>3.7337599924474 ##>>>(0.63895999874125) 21>>>4.500511990937 ##>>>(0.7667519984895) 22>>>5.4206143891242 ##>>>(0.92010239818739) 23>>>6.5247372669492 ##>>>(1.1041228778249) 24>>>7.8496847203389 ##>>>(1.3249474533898) 25>>>9.4396216644068 ##>>>(1.5899369440678) 26>>>11.347545997288 ##>>>(1.9079243328814) 27>>>13.637055196746 ##>>>(2.2895091994577) 28>>>16.384466236095 ##>>>(2.7474110393492) 29>>>19.681359483314 ##>>>(3.296893247219) 30>>>23.637631379977 ##>>>(3.9562718966628) 31>>>28.385157655972 ##>>>(4.7475262759954) 32>>>34.082189187166 ##>>>(5.6970315311945) 33>>>40.9186270246 ##>>>(6.8364378374334) 34>>>49.12235242952 ##>>>(8.20372540492) 35>>>58.966822915424 ##>>>(9.8444704859041) 36>>>70.780187498509 ##>>>(11.813364583085) 37>>>84.956224998211 ##>>>(14.176037499702) 38>>>101.96746999785 ##>>>(17.011244999642) 39>>>122.38096399742 ##>>>(20.413493999571) 40>>>146.87715679691 ##>>>(24.496192799485) 41>>>176.27258815629 ##>>>(29.395431359382) 42>>>211.54710578755 ##>>>(35.274517631258) 43>>>253.87652694506 ##>>>(42.32942115751) 44>>>304.67183233407 ##>>>(50.795305389012) 45>>>365.62619880088 ##>>>(60.954366466814) 46>>>438.77143856106 ##>>>(73.145239760177) 47>>>526.54572627327 ##>>>(87.774287712212) 48>>>631.87487152793 ##>>>(105.32914525465) 49>>>758.26984583351 ##>>>(126.39497430559) 50>>>909.94381500021 ##>>>(151.6739691667) 51>>>1091.9525780003 ##>>>(182.00876300004) 52>>>1310.3630936003 ##>>>(218.41051560005) 53>>>1572.4557123204 ##>>>(262.09261872006) 54>>>1886.9668547844 ##>>>(314.51114246407) 55>>>2264.3802257413 ##>>>(377.41337095689) ####### 314.51114246407///54\\\ 2264.3802257413>>>n>>264.38022574134 end>>>113.03314521555

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:
64.34 ms | 409 KiB | 8 Q