3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dec = 0.0002/0.05; $decimals = 3; echo floor($dec*pow(100,$decimals))/pow(100,$decimals)

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.6.80.0100.06320.35
5.5.240.0000.03320.18
5.4.400.0570.06718.72
5.4.390.0330.06018.63
5.4.380.0470.06318.62
5.4.370.0400.04718.72
5.4.360.0270.07318.65
5.4.350.0370.05718.55
5.4.340.0330.05018.69
5.4.320.0270.06018.52
5.4.310.0370.06318.70
5.4.300.0270.05718.61
5.4.290.0270.05718.63
5.4.280.0470.05018.52
5.4.270.0370.07718.48
5.4.260.0300.05318.72
5.4.250.0300.05318.56
5.4.240.0470.04018.70
5.4.230.0230.06018.58
5.4.220.0530.04718.68
5.4.210.0330.05318.70
5.4.200.0330.07016.70
5.4.190.0470.07318.48
5.4.180.0230.06718.70
5.4.170.0300.05718.45
5.4.160.0370.05018.66
5.4.150.0370.06318.54
5.4.140.0470.07016.16
5.4.130.0470.06716.30
5.4.120.0400.07316.13
5.4.110.0370.05316.34
5.4.100.0300.06016.31
5.4.90.0200.06016.30
5.4.80.0370.04716.20
5.4.70.0330.05016.17
5.4.60.0470.06016.33
5.4.50.0300.07316.17
5.4.40.0400.04716.29
5.4.30.0470.04716.09
5.4.20.0430.06716.27
5.4.10.0330.05016.13
5.4.00.0530.04715.64
5.3.290.0270.06014.66
5.3.280.0370.04314.52
5.3.270.0400.04714.59
5.3.260.0370.06714.53
5.3.250.0530.04714.69
5.3.240.0270.05714.55
5.3.230.0330.07014.57
5.3.220.0470.07014.57
5.3.210.0470.06314.57
5.3.200.0400.06314.46
5.3.190.0300.05714.48
5.3.180.0400.05714.68
5.3.170.0370.06714.54
5.3.160.0470.05314.63
5.3.150.0400.05714.51
5.3.140.0300.05714.45
5.3.130.0470.07014.46
5.3.120.0330.06314.48
5.3.110.0300.06314.62
5.3.100.0370.05014.05
5.3.90.0430.05014.10
5.3.80.0330.05714.05
5.3.70.0400.04313.98
5.3.60.0270.05713.95
5.3.50.0330.05714.05
5.3.40.0470.06013.94
5.3.30.0370.05714.01
5.3.20.0400.04013.62
5.3.10.0200.06013.64
5.3.00.0300.05013.71
5.2.170.0330.03711.15
5.2.160.0270.04711.11
5.2.150.0200.04711.08
5.2.140.0300.05011.28
5.2.130.0370.05011.09
5.2.120.0130.05011.09
5.2.110.0230.04711.13
5.2.100.0270.04711.14
5.2.90.0300.03311.16
5.2.80.0370.04011.06
5.2.70.0170.06311.05
5.2.60.0330.04311.09
5.2.50.0170.04711.15
5.2.40.0300.03010.98
5.2.30.0330.04311.01
5.2.20.0130.04711.02
5.2.10.0200.04310.88
5.2.00.0170.04710.71
5.1.60.0300.03010.07
5.1.50.0270.03310.02
5.1.40.0100.0439.96
5.1.30.0330.03010.36
5.1.20.0130.04310.33
5.1.10.0230.03710.05
5.1.00.0200.03710.09
5.0.50.0070.0378.52
5.0.40.0070.0338.47
5.0.30.0170.0408.26
5.0.20.0130.0238.30
5.0.10.0130.0308.25
5.0.00.0170.0438.16
4.4.90.0100.0235.93
4.4.80.0170.0235.91
4.4.70.0100.0335.91
4.4.60.0130.0205.92
4.4.50.0200.0175.90
4.4.40.0130.0335.88
4.4.30.0130.0275.89
4.4.20.0100.0235.90
4.4.10.0100.0235.98
4.4.00.0130.0435.85
4.3.110.0170.0275.80
4.3.100.0170.0305.79
4.3.90.0170.0305.82
4.3.80.0130.0335.79
4.3.70.0070.0305.77
4.3.60.0130.0175.81
4.3.50.0100.0305.91
4.3.40.0170.0275.77
4.3.30.0070.0234.79
4.3.20.0070.0234.79
4.3.10.0070.0204.79
4.3.00.0070.0177.11

preferences:
141.9 ms | 1394 KiB | 7 Q