3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = 1009.1; for($a = .5; $a < 20; $a = $a + 0.5){ echo $amount . " = " . number_format(round($amount,-1)) . " " ; $amount = $amount + $a; }
Output for git.master, git.master_jit, rfc.property-hooks
1009.1 = 1,010 1009.6 = 1,010 1010.6 = 1,010 1012.1 = 1,010 1014.1 = 1,010 1016.6 = 1,020 1019.6 = 1,020 1023.1 = 1,020 1027.1 = 1,030 1031.6 = 1,030 1036.6 = 1,040 1042.1 = 1,040 1048.1 = 1,050 1054.6 = 1,050 1061.6 = 1,060 1069.1 = 1,070 1077.1 = 1,080 1085.6 = 1,090 1094.6 = 1,090 1104.1 = 1,100 1114.1 = 1,110 1124.6 = 1,120 1135.6 = 1,140 1147.1 = 1,150 1159.1 = 1,160 1171.6 = 1,170 1184.6 = 1,180 1198.1 = 1,200 1212.1 = 1,210 1226.6 = 1,230 1241.6 = 1,240 1257.1 = 1,260 1273.1 = 1,270 1289.6 = 1,290 1306.6 = 1,310 1324.1 = 1,320 1342.1 = 1,340 1360.6 = 1,360 1379.6 = 1,380

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:
38.61 ms | 402 KiB | 8 Q