3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @see https://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Precision-Math-with-PHP/ba-p/8368 */ var_dump(ceil((0.2 + 1.4) * 3)); // Should be 16. But it's 15! // Using BC Math var_dump(bcadd('0.2', '1.4', 2) * 3); // It's 16 like we would expect it to be.

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.60.0070.01416.50
8.3.50.0090.01121.99
8.3.40.0120.00318.71
8.3.30.0080.00618.50
8.3.20.0060.00320.09
8.3.10.0040.00421.78
8.3.00.0040.00419.38
8.2.180.0080.00816.50
8.2.170.0120.00322.96
8.2.160.0070.00720.29
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00317.63
8.2.120.0040.00426.35
8.2.110.0040.00720.60
8.2.100.0000.01217.50
8.2.90.0080.00019.11
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0070.00317.89
8.2.50.0030.00618.07
8.2.40.0080.00019.38
8.2.30.0040.00420.75
8.2.20.0000.00817.65
8.2.10.0050.00217.99
8.2.00.0040.00418.12
8.1.280.0090.00925.92
8.1.270.0040.00422.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00021.02
8.1.230.0120.00017.66
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.51
8.1.180.0000.00818.10
8.1.170.0030.00618.57
8.1.160.0050.00322.01
8.1.150.0040.00418.89
8.1.140.0060.00319.52
8.1.130.0000.00717.65
8.1.120.0050.00317.48
8.1.110.0000.00717.32
8.1.100.0000.00717.40
8.1.90.0000.00717.29
8.1.80.0000.00717.30
8.1.70.0000.00917.31
8.1.60.0040.00417.55
8.1.50.0000.00817.38
8.1.40.0000.00817.37
8.1.30.0000.00917.62
8.1.20.0040.00417.57
8.1.10.0030.00517.54
8.1.00.0000.00817.33
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.45
8.0.270.0000.00717.14
8.0.260.0000.00717.25
8.0.250.0030.00316.98
8.0.240.0000.00716.94
8.0.230.0000.00716.88
8.0.220.0000.00716.84
8.0.210.0070.00016.81
8.0.200.0030.00316.87
8.0.190.0050.00516.80
8.0.180.0070.00016.88
8.0.170.0000.00816.70
8.0.160.0050.00316.75
8.0.150.0040.00416.73
8.0.140.0080.00016.69
8.0.130.0060.00013.38
8.0.120.0030.00616.69
8.0.110.0030.00616.79
8.0.100.0000.00716.88
8.0.90.0000.00716.71
8.0.80.0090.00616.86
8.0.70.0070.00016.69
8.0.60.0040.00416.91
8.0.50.0000.00716.89
8.0.30.0100.00817.01
8.0.20.0120.00917.40
8.0.10.0040.00416.86
8.0.00.0120.00716.67
7.4.330.0050.00016.90
7.4.320.0000.00716.46
7.4.300.0060.00016.55
7.4.290.0040.00416.46
7.4.280.0070.00416.57
7.4.270.0030.00316.56
7.4.260.0030.00316.54
7.4.250.0000.00716.31
7.4.240.0020.00516.40
7.4.230.0030.00316.25
7.4.220.0190.00016.61
7.4.210.0110.00416.61
7.4.200.0030.00316.35
7.4.160.0090.00616.45
7.4.150.0120.00617.40
7.4.140.0090.01217.86
7.4.130.0090.00816.33
7.4.120.0080.01116.59
7.4.110.0110.00716.44
7.4.100.0130.00616.44
7.4.90.0110.00916.52
7.4.80.0110.00719.39
7.4.70.0140.00416.44
7.4.60.0130.00316.50
7.4.50.0110.00316.51
7.4.40.0100.00716.38
7.4.30.0040.01916.35
7.4.00.0030.01314.79
7.3.330.0030.00313.13
7.3.320.0050.00013.16
7.3.310.0030.00316.35
7.3.300.0000.00716.16
7.3.290.0060.00816.25
7.3.280.0090.00716.27
7.3.270.0070.01017.40
7.3.260.0120.00616.50
7.3.250.0070.01016.44
7.3.240.0090.00916.52
7.3.230.0090.00916.39
7.3.210.0130.00316.16
7.3.200.0100.00616.46
7.3.190.0130.00516.39
7.3.180.0040.01416.36
7.3.170.0110.00716.60
7.3.160.0120.00316.36
7.2.330.0160.00316.34
7.2.320.0110.00716.23
7.2.310.0070.01116.51
7.2.300.0110.01116.71
7.2.290.0100.01016.52
7.2.60.0030.01016.50
7.2.00.0060.00618.88
7.1.200.0090.00615.68
7.1.100.0000.01317.96
7.1.70.0000.00817.21
7.1.60.0070.01719.36
7.1.50.0070.01516.54
7.1.00.0070.07022.33
7.0.200.0040.00416.66
7.0.60.0030.04719.93
7.0.50.0100.03317.79
7.0.40.0030.05320.04
7.0.30.0300.03720.30
7.0.20.0230.05320.11
7.0.10.0070.07020.17
7.0.00.0070.04020.01
5.6.280.0030.03020.77
5.6.210.0030.04020.60
5.6.200.0030.07718.12
5.6.190.0100.03720.64
5.6.180.0370.03720.41
5.6.170.0230.03720.33
5.6.160.0100.06720.49
5.6.150.0030.07718.12
5.6.140.0170.03318.12
5.6.130.0070.08018.18
5.6.120.0070.06320.98
5.6.110.0030.08320.91
5.6.100.0070.06321.10
5.6.90.0230.06021.12
5.6.80.0030.08320.54
5.5.350.0270.06320.48
5.5.340.0070.05317.92
5.5.330.0070.04020.06
5.5.320.0030.09020.37
5.5.310.0330.06720.17
5.5.300.0070.05017.95
5.5.290.0100.08017.91
5.5.280.0030.06020.80
5.5.270.0130.07720.71
5.5.260.0130.07320.88
5.5.250.0100.03720.68
5.5.240.0170.08020.25

preferences:
56.85 ms | 401 KiB | 5 Q