3v4l.org

run code in 300+ PHP versions simultaneously
<?php function round_up($number, $precision = 2) { $fig = (int) str_pad('1', $precision, '0'); return (ceil($number * $fig) / $fig); } echo round_up(23500);

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.0150.00616.50
8.3.50.0170.00318.05
8.3.40.0110.00418.75
8.3.30.0040.01118.63
8.3.20.0120.00620.07
8.3.10.0000.00723.61
8.3.00.0000.00819.26
8.2.180.0100.00716.63
8.2.170.0090.00622.96
8.2.160.0090.00620.53
8.2.150.0040.01124.18
8.2.140.0000.00824.66
8.2.130.0080.00020.57
8.2.120.0090.00626.35
8.2.110.0000.01022.20
8.2.100.0080.00417.78
8.2.90.0060.00319.17
8.2.80.0050.00317.97
8.2.70.0030.00617.38
8.2.60.0000.00717.90
8.2.50.0040.00418.07
8.2.40.0000.00821.02
8.2.30.0000.00820.57
8.2.20.0000.00817.73
8.2.10.0040.00418.15
8.2.00.0040.00417.98
8.1.270.0120.00623.79
8.1.260.0030.01428.09
8.1.250.0080.00028.09
8.1.240.0090.00023.76
8.1.230.0030.00922.66
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0100.00017.36
8.1.190.0040.00417.57
8.1.180.0060.00318.10
8.1.170.0000.00818.56
8.1.160.0000.00821.98
8.1.150.0000.00918.75
8.1.140.0050.00519.41
8.1.130.0040.00417.62
8.1.120.0040.00717.40
8.1.110.0000.00717.43
8.1.100.0000.00717.37
8.1.90.0000.00717.43
8.1.80.0040.00417.33
8.1.70.0000.00717.29
8.1.60.0050.00317.46
8.1.50.0060.00317.48
8.1.40.0100.00017.43
8.1.30.0000.00817.67
8.1.20.0080.00017.50
8.1.10.0000.00817.57
8.1.00.0000.00817.49
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0050.00218.41
8.0.270.0030.00317.20
8.0.260.0040.00417.11
8.0.250.0030.00316.88
8.0.240.0060.00016.94
8.0.230.0030.00316.96
8.0.220.0030.00316.90
8.0.210.0050.00316.77
8.0.200.0050.00316.82
8.0.190.0040.00416.83
8.0.180.0000.00816.80
8.0.170.0030.00516.82
8.0.160.0050.00216.89
8.0.150.0050.00316.81
8.0.140.0050.00316.79
8.0.130.0030.00313.18
8.0.120.0050.00216.73
8.0.110.0050.00216.72
8.0.100.0000.00716.93
8.0.90.0000.00716.68
8.0.80.0070.01016.87
8.0.70.0030.00316.73
8.0.60.0040.00416.77
8.0.50.0040.00416.82
8.0.30.0130.00616.91
8.0.20.0080.01017.40
8.0.10.0000.00817.06
8.0.00.0100.00816.63
7.4.330.0070.00015.08
7.4.320.0000.00716.44
7.4.300.0000.00616.53
7.4.290.0030.00316.54
7.4.280.0060.00016.43
7.4.270.0000.00716.50
7.4.260.0040.00416.54
7.4.250.0000.00716.46
7.4.240.0050.00216.59
7.4.230.0000.00716.50
7.4.220.0150.01216.57
7.4.210.0070.01016.67
7.4.200.0030.00316.40
7.4.160.0100.00616.38
7.4.150.0090.00917.40
7.4.140.0060.01417.86
7.4.130.0080.01016.46
7.4.120.0110.00716.33
7.4.110.0090.00916.41
7.4.100.0110.00816.57
7.4.90.0060.01216.46
7.4.80.0040.01519.39
7.4.70.0100.01116.59
7.4.60.0110.00516.38
7.4.50.0100.00616.45
7.4.40.0130.00716.25
7.4.30.0060.01216.55
7.4.00.0030.00915.09
7.3.330.0000.00513.26
7.3.320.0060.00013.38
7.3.310.0040.00416.41
7.3.300.0070.00016.43
7.3.290.0050.00916.35
7.3.280.0040.01216.32
7.3.270.0070.01317.40
7.3.260.0130.00616.47
7.3.250.0080.01216.47
7.3.240.0140.00516.43
7.3.230.0130.00316.60
7.3.210.0060.01216.43
7.3.200.0030.01916.21
7.3.190.0120.00416.39
7.3.180.0070.01316.46
7.3.170.0110.00716.63
7.3.160.0070.01616.66
7.3.10.0100.00316.57
7.3.00.0070.00716.72
7.2.330.0170.00716.72
7.2.320.0110.00716.61
7.2.310.0030.01616.70
7.2.300.0100.00616.32
7.2.290.0160.00016.56
7.2.130.0030.01116.61
7.2.120.0070.01016.75
7.2.110.0090.00016.82
7.2.100.0000.01416.84
7.2.90.0030.01216.60
7.2.80.0070.00516.65
7.2.70.0000.01416.76
7.2.60.0030.01216.71
7.2.50.0030.00716.78
7.2.40.0080.00816.76
7.2.30.0040.01116.91
7.2.20.0060.00916.99
7.2.10.0060.00916.79
7.2.00.0120.00717.97
7.1.250.0070.00415.84
7.1.200.0120.00815.85
7.1.100.0040.00818.13
7.1.70.0030.00617.24
7.1.60.0070.01819.36
7.1.50.0100.01416.71
7.1.00.0000.08022.54
7.0.200.0000.00716.85
7.0.60.0130.08319.99
7.0.50.0070.08017.88
7.0.40.0030.05720.06
7.0.30.0300.07320.23
7.0.20.0200.07720.05
7.0.10.0100.08320.23
7.0.00.0070.08720.20
5.6.280.0000.03320.82
5.6.210.0100.06320.70
5.6.200.0070.04018.28
5.6.190.0000.08720.33
5.6.180.0230.08020.41
5.6.170.0300.07720.61
5.6.160.0030.04020.41
5.6.150.0000.04018.23
5.6.140.0070.05318.29
5.6.130.0070.08318.27
5.6.120.0070.08321.02
5.6.110.0100.06721.05
5.6.100.0070.05720.98
5.6.90.0100.05721.00
5.6.80.0000.09020.42
5.5.350.0170.05320.43
5.5.340.0100.07317.98
5.5.330.0070.09020.47
5.5.320.0030.03720.19
5.5.310.0200.04020.37
5.5.300.0100.07717.98
5.5.290.0030.04018.04
5.5.280.0030.06320.77
5.5.270.0100.05320.77
5.5.260.0170.07320.77
5.5.250.0100.06320.54
5.5.240.0200.07720.19

preferences:
59.3 ms | 400 KiB | 5 Q