3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ceil300($time,$const) { // function returns timestamp rounded to next 300 seconds ( 5 minutes ) + const if ($time % 300 == 0) return $time + $const; return $time + (300 - ($time % 300)) + $const; } $time = time(); $const = 210; // 210 seconds = 3:30 // getting actual time and constant $act_time = md5(ceil300($time,210)); $lst_time = md5(ceil300($time-300,210));

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)
7.3.120.0060.00814.55
7.3.110.0030.01014.90
7.3.100.0030.01014.63
7.3.90.0040.00715.02
7.3.80.0150.00315.19
7.3.70.0040.00714.57
7.3.60.0030.00614.61
7.3.50.0050.00515.03
7.3.40.0030.00914.71
7.3.30.0060.00715.02
7.3.20.0070.00316.84
7.3.10.0080.00316.79
7.3.00.0030.01016.79
7.2.240.0030.00615.09
7.2.230.0060.00614.83
7.2.220.0060.00914.83
7.2.210.0070.00715.21
7.2.200.0070.00714.77
7.2.190.0070.01014.91
7.2.180.0030.01015.08
7.2.170.0030.00914.97
7.2.160.0070.01014.69
7.2.150.0060.01016.85
7.2.140.0000.01516.66
7.2.130.0040.00716.96
7.2.120.0040.01116.70
7.2.110.0080.00416.83
7.2.100.0050.00516.57
7.2.90.0030.00916.97
7.2.80.0060.01016.67
7.2.70.0110.00316.88
7.2.60.0000.01116.61
7.2.50.0030.01016.79
7.2.40.0070.01116.58
7.2.30.0040.01116.91
7.2.20.0070.01016.73
7.2.10.0040.01216.91
7.2.00.0060.01118.13
7.1.330.0060.00915.73
7.1.320.0090.00315.72
7.1.310.0070.00715.72
7.1.300.0060.00615.54
7.1.290.0030.01415.85
7.1.280.0070.00415.77
7.1.270.0030.01015.58
7.1.260.0100.00315.71
7.1.250.0030.01015.81
7.1.200.0040.00715.82
7.1.100.0030.00918.10
7.1.70.0090.00216.79
7.1.60.0040.02119.40
7.1.50.0070.01416.96
7.1.00.0030.05322.45
7.0.200.0380.00316.57
7.0.140.0070.07022.09
7.0.100.0200.03720.01
7.0.90.0070.08019.87
7.0.80.0100.08320.04
7.0.70.0070.05019.97
7.0.60.0100.04319.93
7.0.50.0070.08720.28
7.0.40.0100.04720.10
7.0.30.0070.07020.18
7.0.20.0070.08020.11
7.0.10.0030.04320.07
7.0.00.0070.06320.08
5.6.280.0000.07721.07
5.6.250.0070.07020.77
5.6.240.0100.09320.67
5.6.230.0070.08320.59
5.6.220.0170.07320.55
5.6.210.0030.09020.56
5.6.200.0130.04721.05
5.6.190.0100.08021.05
5.6.180.0100.08021.11
5.6.170.0130.07321.18
5.6.160.0070.08020.94
5.6.150.0070.07021.04
5.6.140.0100.08321.02
5.6.130.0030.08721.17
5.6.120.0070.08321.17
5.6.110.0000.04321.13
5.6.100.0100.06021.13
5.6.90.0070.07321.09
5.6.80.0030.09020.46
5.6.70.0130.03720.43
5.6.60.0070.05720.42
5.6.50.0070.07020.39
5.6.40.0170.06720.29
5.6.30.0070.07320.44
5.6.20.0070.07720.46
5.6.10.0070.04020.41
5.6.00.0100.08020.46
5.5.380.0070.08320.45
5.5.370.0130.05720.36
5.5.360.0100.07320.34
5.5.350.0130.07720.43
5.5.340.0100.07720.91
5.5.330.0100.07320.88
5.5.320.0100.08320.64
5.5.310.0070.08320.77
5.5.300.0070.04320.92
5.5.290.0070.05020.82
5.5.280.0130.05020.76
5.5.270.0100.07320.80
5.5.260.0070.05020.87
5.5.250.0070.07720.71
5.5.240.0070.03020.30
5.5.230.0100.07720.27
5.5.220.0130.05020.16
5.5.210.0170.06720.19
5.5.200.0070.07720.08
5.5.190.0070.04020.09
5.5.180.0130.07020.11
5.5.160.0070.07720.26
5.5.150.0170.07320.23
5.5.140.0070.07320.27
5.5.130.0130.06320.14
5.5.120.0130.07020.08
5.5.110.0100.06320.25
5.5.100.0000.07020.08
5.5.90.0130.06720.09
5.5.80.0230.06320.09
5.5.70.0000.07320.03
5.5.60.0130.04720.12
5.5.50.0070.07320.12
5.5.40.0030.08019.93
5.5.30.0070.08020.08
5.5.20.0100.07720.11
5.5.10.0030.06020.08
5.5.00.0070.07320.07
5.4.450.0070.07019.27
5.4.440.0030.08019.35
5.4.430.0130.02319.37
5.4.420.0100.07719.48
5.4.410.0100.05719.23
5.4.400.0000.06719.21
5.4.390.0070.03319.20
5.4.380.0070.08019.03
5.4.370.0000.04318.95
5.4.360.0230.06319.16
5.4.350.0000.08019.18
5.4.340.0130.07719.05
5.4.320.0070.06019.04
5.4.310.0200.06719.05
5.4.300.0130.06319.03
5.4.290.0100.07319.04
5.4.280.0000.05018.95
5.4.270.0070.04019.03
5.4.260.0000.05718.85
5.4.250.0170.07019.20
5.4.240.0030.05319.08
5.4.230.0070.07019.22
5.4.220.0170.06019.00
5.4.210.0000.05319.02
5.4.200.0130.06318.89
5.4.190.0100.07319.02
5.4.180.0070.07719.12
5.4.170.0000.07719.02
5.4.160.0130.07019.19
5.4.150.0030.07718.93
5.4.140.0030.05316.43
5.4.130.0100.06016.33
5.4.120.0100.07016.45
5.4.110.0100.07316.50
5.4.100.0100.04316.36
5.4.90.0070.04016.49
5.4.80.0070.04016.41
5.4.70.0070.05316.41
5.4.60.0070.07016.46
5.4.50.0070.07016.21
5.4.40.0170.06016.42
5.4.30.0030.05716.29
5.4.20.0030.04016.31
5.4.10.0100.07016.31
5.4.00.0030.04015.87
5.3.290.0030.07014.75
5.3.280.0030.07014.62
5.3.270.0100.03314.57
5.3.260.0100.06714.58
5.3.250.0130.07014.73
5.3.240.0070.07314.54
5.3.230.0070.07314.68
5.3.220.0070.07014.57
5.3.210.0070.06714.54
5.3.200.0130.07014.63
5.3.190.0030.07714.59
5.3.180.0070.07714.59
5.3.170.0070.07714.51
5.3.160.0030.06014.51
5.3.150.0030.06714.65
5.3.140.0100.07314.57
5.3.130.0070.05714.55
5.3.120.0130.06714.59
5.3.110.0030.04714.52
5.3.100.0000.04714.10
5.3.90.0100.06014.09
5.3.80.0000.04313.91
5.3.70.0070.04314.07
5.3.60.0030.04014.03
5.3.50.0200.06014.00
5.3.40.0030.07714.00
5.3.30.0030.04313.96
5.3.20.0000.07713.62
5.3.10.0030.04713.58
5.3.00.0030.05313.69

preferences:
47.33 ms | 400 KiB | 5 Q