3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = '0'; for($i=0; $i < 10000; $i++) { $f = bcadd($f, '0.01', 2); } var_dump($f);

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.140.0120.00916.41
8.3.130.0030.00618.48
8.3.120.0120.00418.61
8.3.110.0040.00416.63
8.3.100.0030.00624.06
8.3.90.0060.00326.77
8.3.80.0070.00318.31
8.3.70.0100.00716.58
8.3.60.0040.02216.50
8.3.50.0120.00618.11
8.3.40.0120.00620.21
8.3.30.0070.01018.53
8.3.20.0030.00624.18
8.3.10.0110.00723.97
8.3.00.0030.00626.16
8.2.250.0000.01118.33
8.2.240.0030.00717.22
8.2.230.0000.01120.94
8.2.220.0000.01037.54
8.2.210.0030.01326.77
8.2.200.0040.00816.63
8.2.190.0140.00316.63
8.2.180.0100.01325.92
8.2.170.0150.00618.84
8.2.160.0140.00722.96
8.2.150.0030.00725.66
8.2.140.0030.00624.66
8.2.130.0000.00926.16
8.2.120.0060.00321.00
8.2.110.0090.00319.31
8.2.100.0090.00317.78
8.2.90.0070.00419.05
8.2.80.0000.00917.97
8.2.70.0070.00417.50
8.2.60.0060.00317.50
8.2.50.0000.00917.80
8.2.40.0050.00517.68
8.2.30.0030.00618.05
8.2.20.0030.00619.21
8.2.10.0060.00318.05
8.2.00.0060.00617.64
8.1.300.0150.00716.01
8.1.290.0050.00530.84
8.1.280.0070.01825.92
8.1.270.0030.00624.66
8.1.260.0050.00526.35
8.1.250.0030.00628.09
8.1.240.0040.00822.04
8.1.230.0090.00322.64
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0040.00817.23
8.1.190.0030.00717.23
8.1.180.0030.00618.10
8.1.170.0000.00917.63
8.1.160.0030.00618.85
8.1.150.0030.00718.44
8.1.140.0060.00617.27
8.1.130.0060.00917.28
8.1.120.0070.01117.44
8.1.110.0120.00617.36
8.1.100.0110.00817.26
8.1.90.0100.01017.43
8.1.80.0150.00417.48
8.1.70.0130.00717.37
8.1.60.0140.00717.59
8.1.50.0140.00717.48
8.1.40.0140.00517.50
8.1.30.0110.01117.64
8.1.20.0170.00617.51
8.1.10.0140.00617.32
8.1.00.0090.01317.32
8.0.300.0060.00318.77
8.0.290.0000.00916.63
8.0.280.0040.00418.33
8.0.270.0000.00916.65
8.0.260.0120.00516.87
8.0.250.0040.01316.87
8.0.240.0110.00616.87
8.0.230.0060.00316.87
8.0.220.0110.00318.43
8.0.210.0130.00616.87
8.0.200.0170.00316.87
8.0.190.0090.00916.87
8.0.180.0110.01116.87
8.0.170.0030.01016.87
8.0.160.0030.01216.87
8.0.150.0130.00416.87
8.0.140.0150.00316.87
8.0.130.0070.01116.87
8.0.120.0130.00416.87
8.0.110.0100.00716.87
8.0.100.0040.01216.87
8.0.90.0120.00416.87
8.0.80.0050.00916.87
8.0.70.0100.00716.87
8.0.60.0130.00316.87
8.0.50.0120.00616.87
8.0.30.0070.01216.87
8.0.20.0070.00716.87
8.0.10.0030.01316.87

preferences:
26.2 ms | 403 KiB | 5 Q