3v4l.org

run code in 300+ PHP versions simultaneously
<?php $precision = 12; $x = 0.00002123; echo bcadd(number_format($x, $precision), 5, $precision);

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.3.70.0090.00616.58
8.3.60.0070.01416.50
8.3.50.0090.01216.06
8.3.40.0090.01218.84
8.3.30.0040.01118.81
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.190.0150.00018.16
8.2.180.0070.01125.92
8.2.170.0110.00419.09
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.95
8.2.110.0120.00520.88
8.2.100.0060.00617.97
8.2.90.0000.00819.28
8.2.80.0000.00817.97
8.2.70.0060.00748.48
8.2.60.0080.00648.69
8.2.50.0090.00448.71
8.2.40.0060.00648.74
8.2.30.0100.00448.72
8.2.20.0120.00048.67
8.2.10.0100.00149.31
8.2.00.0050.00534.96
8.1.280.0030.01025.92
8.1.270.0100.00724.66
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0040.00720.91
8.1.230.0120.00017.76
8.1.220.0120.00818.27
8.1.210.0000.00718.77
8.1.200.0060.00863.83
8.1.190.0110.00248.28
8.1.180.0100.00348.71
8.1.170.0050.00748.98
8.1.160.0070.00449.05
8.1.150.0080.00549.05
8.1.140.0070.00649.09
8.1.130.0030.01033.94
8.1.120.0050.00848.35
8.1.110.0070.00738.04
8.1.100.0100.00338.07
8.1.90.0060.00732.85
8.1.80.0060.00726.25
8.1.70.0110.00329.72
8.1.60.0100.00626.33
8.1.50.0110.00426.29
8.1.40.0100.00525.21
8.1.30.0080.00525.31
8.1.20.0080.00425.27
8.1.10.0080.00523.08
8.1.00.0080.00624.29
8.0.300.0070.00518.18
8.0.290.0080.00448.04
8.0.280.0090.00333.25
8.0.270.0080.00348.75
8.0.260.0070.00333.93
8.0.250.0090.00348.16
8.0.240.0050.00837.72
8.0.230.0100.00337.70
8.0.220.0060.00632.42
8.0.210.0100.00329.32
8.0.200.0060.00829.36
8.0.190.0080.00625.77
8.0.180.0080.00425.75
8.0.170.0070.00524.64
8.0.160.0070.00624.63
8.0.150.0090.00524.58
8.0.140.0070.00523.71
8.0.130.0070.00723.30
8.0.120.0060.00621.85
8.0.110.0070.00522.48
8.0.100.0080.00422.48
8.0.90.0100.00423.76
8.0.80.0090.00522.51
8.0.70.0110.00423.76
8.0.60.0090.00623.75
8.0.50.0110.00323.68
8.0.30.0090.00722.49
8.0.20.0090.00722.56
8.0.10.0110.00522.58
8.0.00.0090.00522.65
7.4.330.0090.00322.25
7.4.320.0100.00337.44
7.4.300.0070.00525.44
7.4.290.0080.00525.43
7.4.280.0070.00624.33
7.4.270.0090.00622.20
7.4.260.0100.00423.44
7.4.250.0090.00321.60
7.4.240.0070.00523.43
7.4.230.0080.00621.34
7.4.220.0080.00522.23
7.4.210.0100.00522.21
7.4.200.0090.00423.46
7.4.190.0100.00422.78
7.4.180.0090.00524.34
7.4.160.0090.00622.23
7.4.150.0090.00522.16
7.4.140.0080.00722.11
7.4.130.0080.00722.16
7.4.120.0080.00622.09
7.4.110.0100.00522.13
7.4.100.0120.00422.24
7.4.90.0090.00522.17
7.4.80.0080.00622.15
7.4.70.0080.00722.11
7.4.60.0080.00722.12
7.4.50.0070.00722.09
7.4.40.0080.00522.10
7.4.30.0100.00422.12
7.4.20.0090.00422.09
7.4.10.0070.00722.14
7.4.00.0080.00421.28
7.3.330.0090.00623.13
7.3.320.0100.00522.81
7.3.310.0120.00423.14
7.3.300.0120.00423.17
7.3.290.0110.00423.16
7.3.280.0120.00624.02
7.3.270.0110.00521.89
7.3.260.0100.00721.86
7.3.250.0110.00621.91
7.3.240.0090.00721.91
7.3.230.0110.00521.94
7.3.220.0110.00621.79
7.3.210.0120.00521.87
7.3.200.0100.00721.80
7.3.190.0120.00621.85
7.3.180.0110.00621.79
7.3.170.0130.00321.87
7.3.160.0110.00521.81
7.3.150.0120.00421.88
7.3.140.0100.00721.82
7.3.130.0100.00621.90
7.3.120.0100.00621.81
7.3.110.0100.00621.72
7.3.100.0120.00521.83
7.3.90.0110.00522.08
7.3.80.0110.00621.81
7.3.70.0120.00421.99
7.3.60.0100.00622.02
7.3.50.0110.00522.02
7.3.40.0110.00522.01
7.3.30.0100.00622.06
7.3.20.0110.00523.05
7.3.10.0120.00522.96
7.3.00.0120.00622.95

preferences:
53.95 ms | 401 KiB | 5 Q