3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = 0; $pmt = 200; $r = 0.06; $t = 3/12; $n = 12; $ans = $pmt * (((1 + $r / $n) ^ $n ($t) - 1) / ($r / $n)); echo $ans;

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)
8.5.00.0160.00620.11
8.4.150.0020.00114.05
8.4.140.0150.00717.76
8.4.130.0100.00317.59
8.4.120.0080.00720.37
8.4.110.0120.00818.59
8.4.100.0060.00517.70
8.4.90.0050.00320.54
8.4.80.0120.00918.76
8.4.70.0110.00818.96
8.4.60.0110.00820.57
8.4.50.0170.00418.61
8.4.40.0100.01019.59
8.4.30.0110.00917.70
8.4.20.0160.00317.84
8.4.10.0100.01017.76
8.3.280.0020.00014.05
8.3.270.0090.01216.67
8.3.260.0040.00416.62
8.3.250.0090.00718.84
8.3.240.0100.01016.64
8.3.230.0080.01116.43
8.3.220.0100.01018.94
8.3.210.0100.01016.80
8.3.200.0090.00516.93
8.3.190.0040.00417.05
8.3.180.0120.00516.75
8.3.170.0070.01117.04
8.3.160.0060.00920.24
8.3.150.0100.01020.56
8.3.140.0090.00917.01
8.3.130.0060.00318.25
8.3.120.0060.00318.92
8.3.110.0030.00520.94
8.3.100.0160.00016.48
8.3.90.0040.00426.77
8.3.80.0030.00616.88
8.3.70.0040.01816.38
8.3.60.0190.00318.43
8.3.50.0120.00721.95
8.3.40.0090.00618.80
8.3.30.0090.00618.59
8.3.20.0080.00020.21
8.3.10.0040.00420.50
8.3.00.0040.00420.69
8.2.290.0050.00616.82
8.2.280.0050.00418.62
8.2.270.0090.00617.34
8.2.260.0070.00718.95
8.2.250.0040.00417.02
8.2.240.0070.00417.30
8.2.230.0110.00022.58
8.2.220.0040.01124.06
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0110.01116.63
8.2.180.0100.00716.50
8.2.170.0110.00422.96
8.2.160.0170.00320.35
8.2.150.0030.00624.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0090.00026.16
8.2.110.0000.00921.18
8.2.100.0060.00617.72
8.2.90.0080.00017.75
8.2.80.0000.00818.04
8.2.70.0040.00417.93
8.2.60.0000.00818.16
8.2.50.0060.00318.10
8.2.40.0040.00419.34
8.2.30.0000.00819.43
8.2.20.0040.00717.62
8.2.10.0080.00018.22
8.2.00.0000.00718.10
8.1.330.0130.00615.97
8.1.320.0100.00916.23
8.1.310.0000.00816.84
8.1.300.0080.00018.21
8.1.290.0000.01030.84
8.1.280.0120.00325.92
8.1.270.0060.00322.04
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00922.19
8.1.230.0080.00320.31
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0080.00017.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0030.00518.59
8.1.160.0030.00718.78
8.1.150.0000.00718.82
8.1.140.0040.00419.39
8.1.130.0040.00417.30
8.1.120.0030.00317.44
8.1.110.0030.00617.42
8.1.100.0000.00917.30
8.1.90.0050.00317.27
8.1.80.0040.00417.42
8.1.70.0000.00717.43
8.1.60.0070.00317.50
8.1.50.0040.00417.46
8.1.40.0040.00417.41
8.1.30.0060.00317.50
8.1.20.0020.00517.64
8.1.10.0030.00517.58
8.1.00.0050.00317.48
8.0.300.0000.00819.79
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0070.00016.93
8.0.260.0070.00016.88
8.0.250.0030.00316.93
8.0.240.0040.00417.03
8.0.230.0000.00717.01
8.0.220.0070.00016.95
8.0.210.0030.00316.80
8.0.200.0060.00016.98
8.0.190.0000.00717.05
8.0.180.0000.00816.93
8.0.170.0070.00016.95
8.0.160.0040.00416.94
8.0.150.0000.00716.84
8.0.140.0000.00816.84
8.0.130.0030.00313.30
8.0.120.0060.00316.86
8.0.110.0040.00416.87
8.0.100.0040.00416.92
8.0.90.0000.00716.91
8.0.80.0040.01116.92
8.0.70.0040.00416.77
8.0.60.0040.00416.94
8.0.50.0000.00716.89
8.0.30.0140.00616.86
8.0.20.0110.00617.40
8.0.10.0040.00417.03
8.0.00.0070.01316.62
7.4.330.0000.00615.08
7.4.320.0000.00616.55
7.4.300.0000.00616.53
7.4.290.0060.00316.54
7.4.280.0000.00716.50
7.4.270.0000.00616.64
7.4.260.0000.00716.50
7.4.250.0050.00316.62
7.4.240.0000.00716.49
7.4.230.0030.00316.50
7.4.220.0110.01116.63
7.4.210.0040.01316.46
7.4.200.0030.00316.40
7.4.160.0060.01016.56
7.4.150.0070.01417.40
7.4.140.0140.01017.86
7.4.130.0110.00816.48
7.4.120.0100.00716.58
7.4.110.0070.01416.54
7.4.100.0100.01016.60
7.4.90.0150.00416.55
7.4.80.0170.00319.39
7.4.70.0060.00916.45
7.4.60.0110.00716.48
7.4.50.0110.00616.43
7.4.40.0130.01116.52
7.4.30.0080.00816.56
7.4.00.0090.00615.01
7.3.330.0050.00013.13
7.3.320.0000.00613.07
7.3.310.0070.00016.46
7.3.300.0000.00716.23
7.3.290.0110.00716.34
7.3.280.0120.00816.29
7.3.270.0090.00917.40
7.3.260.0070.01116.57
7.3.250.0120.00616.44
7.3.240.0130.00616.46
7.3.230.0100.00716.39
7.3.210.0050.01016.31
7.3.200.0080.00816.48
7.3.190.0040.01316.45
7.3.180.0150.00616.43
7.3.170.0080.00816.43
7.3.160.0100.01316.66
7.3.10.0040.01116.88
7.3.00.0030.01016.35
7.2.330.0140.01116.63
7.2.320.0090.00916.50
7.2.310.0070.01016.64
7.2.300.0150.00316.71
7.2.290.0120.01116.66
7.2.130.0100.00016.60
7.2.120.0070.00717.02
7.2.110.0080.00416.99
7.2.100.0080.00417.03
7.2.90.0070.01117.01
7.2.80.0110.00316.64
7.2.70.0060.01216.90
7.2.60.0050.01016.85
7.2.50.0070.00716.85
7.2.40.0000.01316.68
7.2.30.0000.01316.91
7.2.20.0070.00416.93
7.2.10.0070.00716.84
7.2.00.0070.00918.05
7.1.250.0070.00715.74
7.1.200.0000.00815.49
7.1.100.0090.00618.16
7.1.70.0000.00817.03
7.1.60.0100.01419.23
7.1.50.0130.00016.86
7.1.00.0030.07722.40
7.0.200.0070.00016.82
7.0.70.0130.08021.72
7.0.60.0100.08021.75
7.0.50.0200.05322.11
7.0.40.0000.07020.04
7.0.30.0030.07320.13
7.0.20.0070.07020.13
7.0.10.0000.09020.17
7.0.00.0030.09320.12
5.6.280.0070.07021.09
5.6.220.0100.07720.48
5.6.210.0100.05020.73
5.6.200.0030.09321.11
5.6.190.0030.07321.06
5.6.180.0000.08021.08
5.6.170.0030.08021.09
5.6.160.0070.07721.10
5.6.150.0070.08321.01
5.6.140.0030.08720.94
5.6.130.0030.07321.05
5.6.120.0070.05720.94
5.6.110.0070.08721.04
5.6.100.0070.08721.11
5.6.90.0170.08020.98
5.6.80.0070.08320.52
5.6.70.0100.08020.50
5.6.60.0000.04320.44
5.6.50.0100.08320.48
5.6.40.0070.05720.39
5.6.30.0100.05020.31
5.6.20.0100.07020.37
5.6.10.0000.08020.39
5.6.00.0030.06320.38
5.5.360.0130.07720.34
5.5.350.0100.09320.32
5.5.340.0130.06720.88
5.5.330.0170.05720.74
5.5.320.0100.08320.89
5.5.310.0100.08320.89
5.5.300.0070.04720.80
5.5.290.0030.09020.76
5.5.280.0070.07020.77
5.5.270.0000.08320.87
5.5.260.0070.08020.76
5.5.250.0070.05020.68
5.5.240.0170.07020.13
5.5.230.0130.03720.14
5.5.220.0030.08720.27
5.5.210.0030.08020.27
5.5.200.0030.08320.15
5.5.190.0100.08020.27
5.5.180.0070.08020.21
5.5.160.0030.08720.10
5.5.150.0070.03720.20
5.5.140.0000.04320.16
5.5.130.0100.07020.10
5.5.120.0000.08320.21
5.5.110.0030.08320.21
5.5.100.0100.07719.94
5.5.90.0030.08319.99
5.5.80.0030.08020.16
5.5.70.0100.08320.13
5.5.60.0170.07020.05
5.5.50.0100.06720.04
5.5.40.0070.07320.10
5.5.30.0100.08020.05
5.5.20.0200.06020.14
5.5.10.0130.07720.10
5.5.00.0130.07320.07

preferences:
35.58 ms | 403 KiB | 5 Q