3v4l.org

run code in 300+ PHP versions simultaneously
<?php function roundUp($number){ $int = floor($number); $float = $number-$int; if ($float*10 < 2.5) $result = $int; else $result = ceil($number); $result+= 0.25; echo $number." becomes ".$result."\n"; } roundUp(25.50); roundUp(25.10);

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.4.120.0130.00720.55
8.4.110.0050.01420.48
8.4.100.0140.00717.66
8.4.90.0130.00720.40
8.4.80.0040.00520.70
8.4.70.0070.00118.86
8.4.60.0110.00820.48
8.4.50.0110.00518.43
8.4.40.0090.00017.65
8.4.30.0040.00420.61
8.4.20.0100.00020.55
8.4.10.0060.00318.76
8.3.250.0130.00519.18
8.3.240.0140.00516.80
8.3.230.0080.01116.76
8.3.220.0110.00718.86
8.3.210.0100.00818.36
8.3.200.0040.00516.67
8.3.190.0080.00918.96
8.3.180.0130.00519.10
8.3.170.0100.01016.74
8.3.160.0100.01017.20
8.3.150.0060.01217.09
8.3.140.0180.00018.88
8.3.130.0080.00016.31
8.3.120.0040.00420.89
8.3.110.0130.00316.84
8.3.100.0080.00316.47
8.3.90.0110.00726.77
8.3.80.0000.00916.50
8.3.70.0180.00616.58
8.3.60.0090.00616.63
8.3.50.0100.01016.59
8.3.40.0040.01118.79
8.3.30.0140.00018.81
8.3.20.0030.00624.18
8.3.10.0070.00324.66
8.3.00.0000.00826.16
8.2.290.0100.00820.27
8.2.280.0120.00820.29
8.2.270.0190.00016.73
8.2.260.0110.00716.84
8.2.250.0120.00616.66
8.2.240.0030.01617.00
8.2.230.0030.00620.94
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0180.00416.58
8.2.180.0140.00725.92
8.2.170.0000.01419.14
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0070.00019.83
8.2.110.0060.00319.39
8.2.100.0060.00617.84
8.2.90.0040.00419.32
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0100.00717.75
8.2.50.0060.00318.07
8.2.40.0070.00018.29
8.2.30.0000.01018.09
8.2.20.0070.00018.20
8.2.10.0040.00419.36
8.2.00.0100.00019.36
8.1.330.0060.00522.09
8.1.320.0080.01118.02
8.1.310.0110.00416.06
8.1.300.0100.00018.53
8.1.290.0040.00730.84
8.1.280.0110.00725.92
8.1.270.0000.00723.99
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00619.35
8.1.230.0060.00619.13
8.1.220.0000.00717.89
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0050.00317.36
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0030.00618.91
8.1.150.0030.00518.95
8.1.140.0070.00018.96
8.1.130.0030.00320.25
8.1.120.0000.00717.45
8.1.110.0000.00817.52
8.1.100.0000.00717.53
8.1.90.0050.00317.47
8.1.80.0010.00817.41
8.1.70.0030.00317.51
8.1.60.0000.00717.56
8.1.50.0040.00417.61
8.1.40.0050.00317.51
8.1.30.0040.00417.63
8.1.20.0030.00517.75
8.1.10.0030.00617.55
8.1.00.0000.00817.41
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.55
8.0.270.0030.00318.05
8.0.260.0030.00318.55
8.0.250.0030.00617.01
8.0.240.0050.00217.06
8.0.230.0040.00417.02
8.0.220.0000.00716.82
8.0.210.0000.00816.89
8.0.200.0060.00016.99
8.0.190.0040.00416.89
8.0.180.0000.00717.02
8.0.170.0040.00417.03
8.0.160.0080.00016.95
8.0.150.0000.00816.81
8.0.140.0050.00216.77
8.0.130.0000.00613.43
8.0.120.0080.00016.95
8.0.110.0070.00016.90
8.0.100.0040.00416.98
8.0.90.0050.00216.84
8.0.80.0050.00216.82
8.0.70.0000.00716.94
8.0.60.0000.00716.93
8.0.50.0000.00716.84
8.0.30.0000.00716.89
8.0.20.0000.00716.86
8.0.10.0050.00217.06
8.0.00.0050.00316.88
7.4.330.0000.00515.55
7.4.320.0030.00316.60
7.4.300.0040.00416.70
7.4.290.0000.00816.51
7.4.280.0040.00416.55
7.4.270.0000.00716.66
7.4.260.0040.00413.27
7.4.250.0000.00716.55
7.4.240.0030.00316.66
7.4.230.0030.00316.56
7.4.220.0030.00316.60
7.4.210.0000.00716.56
7.4.200.0000.00716.75
7.4.190.0030.00316.53
7.4.180.0030.00316.61
7.4.160.0050.00216.80
7.4.150.0070.00016.67
7.4.140.0000.00716.61
7.4.130.0030.00316.28
7.4.120.0000.00716.40
7.4.110.0000.00716.64
7.4.100.0000.00816.50
7.4.90.0070.00016.61
7.4.80.0000.00816.56
7.4.70.0000.00716.40
7.4.60.0000.00716.56
7.4.50.0040.00416.25
7.4.40.0030.00316.57
7.4.30.0030.00316.63
7.4.20.0070.00016.34
7.4.10.0030.00316.61
7.4.00.0030.00316.68
7.3.330.0030.00316.44
7.3.320.0030.00313.29
7.3.310.0030.00316.52
7.3.300.0000.00716.53
7.3.290.0030.00316.39
7.3.280.0000.00716.30
7.3.270.0060.00016.48
7.3.260.0040.00416.30
7.3.250.0000.00716.40
7.3.240.0030.00316.48
7.3.230.0050.00316.44
7.3.220.0060.00016.35
7.3.210.0000.00716.42
7.3.200.0000.00616.41
7.3.190.0000.00716.42
7.3.180.0000.00616.36
7.3.170.0040.00416.24
7.3.160.0040.00416.42
7.3.150.0040.00416.38
7.3.140.0000.00616.38
7.3.130.0030.00316.25
7.3.120.0000.00716.23
7.3.110.0000.00716.35
7.3.100.0030.00316.27
7.3.90.0070.00016.50
7.3.80.0000.00716.43
7.3.70.0000.00716.35
7.3.60.0050.00316.43
7.3.50.0000.00816.55
7.3.40.0030.00616.55
7.3.30.0080.00016.41
7.3.20.0030.00318.38
7.3.10.0030.00318.26
7.3.00.0050.00218.20

preferences:
28.93 ms | 403 KiB | 5 Q