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(ciel((0.2 + 1.4))); // Should be 16. But it's 15! // Using BC Math var_dump(bcadd('0.2', '1.4', 2) * 10); // 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.40.0100.00718.79
8.3.30.0100.01318.66
8.3.20.0000.00820.25
8.3.10.0050.00321.78
8.3.00.0030.00619.25
8.2.170.0120.00322.96
8.2.160.0100.00320.52
8.2.150.0000.00824.18
8.2.140.0110.00724.66
8.2.130.0080.00017.38
8.2.120.0040.00426.35
8.2.110.0060.00620.93
8.2.100.0040.00817.75
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0070.00317.79
8.2.50.0000.00818.07
8.2.40.0000.00919.39
8.2.30.0050.00320.51
8.2.20.0030.00617.63
8.2.10.0050.00317.92
8.2.00.0000.00717.90
8.1.270.0080.00022.24
8.1.260.0050.00328.09
8.1.250.0050.00328.09
8.1.240.0060.00321.00
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.70
8.1.180.0000.00818.10
8.1.170.0060.00318.27
8.1.160.0000.00721.87
8.1.150.0040.00418.69
8.1.140.0090.00019.30
8.1.130.0030.00317.54
8.1.120.0000.00717.35
8.1.110.0070.00017.20
8.1.100.0040.00417.36
8.1.90.0030.00317.38
8.1.80.0080.00017.22
8.1.70.0070.00017.23
8.1.60.0000.00717.51
8.1.50.0040.00417.43
8.1.40.0050.00217.43
8.1.30.0040.00417.51
8.1.20.0040.00417.53
8.1.10.0000.00817.54
8.1.00.0030.00517.40
8.0.300.0020.00518.77
8.0.290.0040.00416.63
8.0.280.0000.00718.26
8.0.270.0030.00317.26
8.0.260.0000.00717.20
8.0.250.0030.00316.86
8.0.240.0000.00816.98
8.0.230.0050.00216.96
8.0.220.0000.00816.86
8.0.210.0030.00316.86
8.0.200.0090.00016.84
8.0.190.0000.00816.93
8.0.180.0040.00416.99
8.0.170.0000.00716.81
8.0.160.0030.00316.91
8.0.150.0030.00316.95
8.0.140.0080.00016.82
8.0.130.0060.00013.32
8.0.120.0040.00416.87
8.0.110.0000.00816.84
8.0.100.0000.00716.68
8.0.90.0040.00416.93
8.0.80.0160.00316.93
8.0.70.0050.00316.94
8.0.60.0040.00416.79
8.0.50.0020.00517.01
8.0.30.0130.00516.99
8.0.20.0120.01017.40
8.0.10.0030.00616.91
8.0.00.0080.00916.88
7.4.330.0030.00316.79
7.4.320.0050.00316.48
7.4.300.0040.00416.40
7.4.290.0070.00016.32
7.4.280.0030.00616.36
7.4.270.0030.00316.36
7.4.260.0080.00016.43
7.4.250.0050.00316.42
7.4.240.0020.00516.60
7.4.230.0040.00416.61
7.4.220.0060.01216.39
7.4.210.0000.01516.55
7.4.200.0070.00016.46
7.4.160.0090.00916.38
7.4.150.0030.01517.40
7.4.140.0100.01017.86
7.4.130.0100.00716.62
7.4.120.0140.00516.45
7.4.110.0120.00916.58
7.4.100.0110.00716.56
7.4.90.0100.01016.55
7.4.80.0030.01419.39
7.4.70.0090.01116.58
7.4.60.0100.00716.36
7.4.50.0040.01416.32
7.4.40.0120.00416.45
7.4.30.0100.01316.58
7.4.00.0100.00715.15
7.3.330.0000.00513.19
7.3.320.0000.00613.09
7.3.310.0030.00316.13
7.3.300.0000.00716.23
7.3.290.0080.00816.25
7.3.280.0100.00916.30
7.3.270.0160.00717.40
7.3.260.0150.00316.43
7.3.250.0110.00516.49
7.3.240.0130.00516.21
7.3.230.0100.00716.39
7.3.210.0070.01116.49
7.3.200.0030.01316.36
7.3.190.0120.00616.37
7.3.180.0140.00316.19
7.3.170.0110.00616.30
7.3.160.0110.00416.50
7.3.10.0110.00416.55
7.3.00.0070.00716.58
7.2.330.0040.01416.49
7.2.320.0090.01216.50
7.2.310.0110.01116.43
7.2.300.0090.00916.45
7.2.290.0070.01016.29
7.2.130.0030.01216.82
7.2.120.0070.00716.76
7.2.110.0000.01816.63
7.2.100.0060.00616.71
7.2.90.0060.00916.76
7.2.80.0060.00616.90
7.2.70.0030.00916.72
7.2.60.0140.00416.88
7.2.50.0110.00716.61
7.2.40.0080.00416.46
7.2.30.0070.00716.61
7.2.20.0040.01516.56
7.2.10.0120.00316.75
7.2.00.0070.00818.05
7.1.250.0090.00615.37
7.1.200.0030.00915.25
7.1.100.0070.00417.44
7.1.70.0000.00816.99
7.1.60.0110.01519.36
7.1.50.0090.01316.53
7.1.00.0000.07022.31
7.0.200.0000.00716.55
7.0.60.0070.04019.89
7.0.50.0000.04317.80
7.0.40.0030.06019.90
7.0.30.0500.07020.25
7.0.20.0270.07720.18
7.0.10.0130.07720.12
7.0.00.0070.08320.30
5.6.280.0030.05320.90
5.6.210.0030.04320.66
5.6.200.0030.05318.13
5.6.190.0070.03720.60
5.6.180.0370.06720.61
5.6.170.0200.04020.57
5.6.160.0100.07720.71
5.6.150.0070.07718.18
5.6.140.0070.07018.12
5.6.130.0030.08318.17
5.6.120.0070.08321.13
5.6.110.0070.07721.10
5.6.100.0100.08021.00
5.6.90.0070.04020.87
5.6.80.0100.06720.39
5.5.350.0170.08320.43
5.5.340.0030.04018.01
5.5.330.0130.07020.40
5.5.320.0030.06020.27
5.5.310.0400.06020.28
5.5.300.0130.07718.02
5.5.290.0130.07317.88
5.5.280.0070.07020.76
5.5.270.0030.06020.75
5.5.260.0130.06720.76
5.5.250.0070.05720.68
5.5.240.0330.06720.16

preferences:
45.91 ms | 400 KiB | 5 Q