3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0.00002123; $calculation1 = bcadd($x,5,12); // adding variable $x to 5 $calculation2 = bcmul($x,4,12); // multiply variable $x to 4 $calculation3 = bcdiv($x,5,12); // divide variable $x to 5 var_dump($calculation1, $calculation1, $calculation3);

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.120.0000.00720.66
8.3.110.0030.01216.86
8.3.100.0030.00616.45
8.3.90.0070.01126.77
8.3.80.0090.00016.75
8.3.70.0150.00316.75
8.3.60.0060.01216.75
8.3.50.0100.01016.11
8.3.40.0100.01018.97
8.3.30.0070.00718.89
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.240.0080.00018.39
8.2.230.0080.00020.94
8.2.220.0000.00824.06
8.2.210.0030.00626.77
8.2.200.0030.00616.63
8.2.190.0120.00316.75
8.2.180.0110.00425.92
8.2.170.0070.01418.91
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0100.00026.35
8.2.110.0080.00319.45
8.2.100.0080.00417.91
8.2.90.0000.01017.63
8.2.80.0040.00418.91
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0040.00418.05
8.2.40.0050.00218.22
8.2.30.0040.00417.92
8.2.20.0000.00717.91
8.2.10.0000.00819.15
8.2.00.0040.00419.30
8.1.300.0040.00418.00
8.1.290.0030.00830.84
8.1.280.0190.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00320.95
8.1.230.0040.01117.64
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0000.00819.01
8.1.170.0060.00318.53
8.1.160.0040.00418.77
8.1.150.0000.00818.79
8.1.140.0040.00418.79
8.1.130.0070.00020.12
8.1.120.0040.00417.40
8.1.110.0040.00417.41
8.1.100.0040.00417.43
8.1.90.0050.00217.38
8.1.80.0050.00317.33
8.1.70.0000.00817.41
8.1.60.0040.00417.53
8.1.50.0050.00317.52
8.1.40.0050.00317.45
8.1.30.0080.00317.54
8.1.20.0080.00017.61
8.1.10.0060.00317.46
8.1.00.0070.00017.53
8.0.300.0040.00418.77
8.0.290.0080.00316.63
8.0.280.0000.00818.37
8.0.270.0040.00418.00
8.0.260.0030.00318.38
8.0.250.0060.00316.84
8.0.240.0030.00316.93
8.0.230.0000.00716.93
8.0.220.0000.00716.88
8.0.210.0020.00516.77
8.0.200.0000.00816.96
8.0.190.0020.00516.90
8.0.180.0000.00816.93
8.0.170.0030.00616.95
8.0.160.0060.00316.78
8.0.150.0030.00316.93
8.0.140.0040.00416.77
8.0.130.0030.00313.24
8.0.120.0070.00016.79
8.0.110.0040.00416.88
8.0.100.0030.00616.83
8.0.90.0000.00816.67
8.0.80.0120.00516.91
8.0.70.0000.00816.76
8.0.60.0030.00316.95
8.0.50.0090.00016.91
8.0.30.0030.01616.76
8.0.20.0100.01017.00
8.0.10.0060.00816.92
8.0.00.0030.01217.04
7.4.330.0060.00015.55
7.4.320.0030.00316.51
7.4.300.0030.00316.41
7.4.290.0030.00316.29
7.4.280.0100.00016.55
7.4.270.0070.00016.54
7.4.260.0060.00013.16
7.4.250.0040.00316.54
7.4.240.0030.00416.38
7.4.230.0000.00816.25
7.4.220.0050.00216.48
7.4.210.0080.00916.46
7.4.200.0000.00716.43
7.4.160.0090.00916.63
7.4.150.0090.00616.35
7.4.140.0040.00916.41
7.4.130.0030.01816.25
7.4.120.0100.00516.27
7.4.110.0090.00616.50
7.4.100.0100.01016.37
7.4.90.0070.01316.41
7.4.80.0040.01116.42
7.4.70.0060.00916.25
7.4.60.0070.01316.29
7.4.50.0040.01016.36
7.4.40.0130.00616.27
7.4.30.0050.00916.50
7.4.20.0070.01116.43
7.4.10.0030.01516.36
7.4.00.0090.00516.41
7.3.330.0000.00615.96
7.3.320.0050.00013.09
7.3.310.0040.00416.19
7.3.300.0040.00416.09
7.3.290.0080.01016.14
7.3.270.0060.01116.13
7.3.260.0070.01116.13
7.3.250.0060.01216.08
7.3.240.0070.01016.11
7.3.230.0090.00616.14
7.3.220.0100.01016.05
7.3.210.0030.01016.05
7.3.200.0070.00716.00
7.3.190.0110.00716.08
7.3.180.0030.01516.02
7.3.170.0060.01216.01
7.3.160.0070.00716.07
7.3.150.0060.00916.11
7.3.140.0040.01116.04
7.3.130.0080.00516.07
7.3.120.0060.01016.17
7.3.110.0030.01016.04
7.3.100.0100.00615.99
7.3.90.0060.01116.30
7.3.80.0070.00716.07
7.3.70.0080.00616.21
7.3.60.0070.00716.19
7.3.50.0030.01016.35
7.3.40.0080.00616.13
7.3.30.0110.00316.21
7.3.20.0110.00316.34
7.3.10.0090.00616.21
7.3.00.0060.01316.13

preferences:
30.75 ms | 403 KiB | 5 Q