3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = time(); $times = array($from, $from+86400, $from+86400+86400+86400, $from+86400+86400+86400+86400+86400+86400); $days = array(); $countPerDay = 0; foreach ($times as $time) { if ($from + 86400 >= $time) { $countPerDay++; } else { $from += 86400; array_push($days, $countPerDay); if ($countPerDay != 0) { $countPerDay = 0; } } } var_dump($days);

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.4.00.0040.01515.01
7.3.120.0050.01014.95
7.3.110.0060.01014.73
7.3.100.0020.01114.82
7.3.90.0070.00814.92
7.3.80.0050.01114.77
7.3.70.0040.01114.59
7.3.60.0020.01014.90
7.3.50.0060.00614.81
7.3.40.0050.01114.53
7.3.30.0110.00414.87
7.3.20.0070.00716.56
7.3.10.0050.00816.62
7.3.00.0070.00616.73
7.2.250.0030.01314.76
7.2.240.0070.00714.96
7.2.230.0050.00915.02
7.2.220.0070.00615.21
7.2.210.0050.00615.03
7.2.200.0090.00714.80
7.2.190.0100.00515.01
7.2.180.0060.00815.07
7.2.170.0060.00715.11
7.2.160.0000.01814.84
7.2.150.0030.01316.54
7.2.140.0110.00316.70
7.2.130.0060.00916.72
7.2.120.0070.01016.83
7.2.110.0000.01217.02
7.2.100.0070.00416.95
7.2.90.0060.00616.97
7.2.80.0100.00316.91
7.2.70.0070.01116.64
7.2.60.0070.00816.83
7.2.50.0070.00616.68
7.2.40.0030.01417.09
7.2.30.0030.00917.07
7.2.20.0120.00316.84
7.2.10.0030.01316.49
7.2.00.0000.01217.88
7.1.330.0100.00315.93
7.1.320.0070.00915.75
7.1.310.0020.01215.79
7.1.300.0040.00715.61
7.1.290.0120.00315.66
7.1.280.0060.00615.81
7.1.270.0050.00915.79
7.1.260.0090.00415.71
7.1.250.0030.01015.71
7.1.200.0040.00715.69
7.1.100.0030.00618.08
7.1.70.0000.01016.91
7.1.60.0110.01119.50
7.1.50.0070.01416.75
7.1.00.0170.06322.50
7.0.200.0100.00314.98
7.0.140.0030.07322.18
7.0.100.0130.05719.96
7.0.90.0330.03019.92
7.0.80.0170.03719.88
7.0.70.0130.04019.93
7.0.60.0130.04019.96
7.0.50.0200.05020.30
7.0.40.0130.07320.15
7.0.30.0170.07320.14
7.0.20.0070.08319.99
7.0.10.0070.08020.14
7.0.00.0070.07720.16
5.6.280.0030.07321.09
5.6.250.0070.04020.53
5.6.240.0070.04720.64
5.6.230.0030.04320.74
5.6.220.0070.03720.61
5.6.210.0030.05020.74
5.6.200.0000.04721.12
5.6.190.0030.04320.91
5.6.180.0070.08720.96
5.6.170.0170.08020.93
5.6.160.0030.05021.10
5.6.150.0100.04721.06
5.6.140.0100.08021.13
5.6.130.0030.08720.88
5.6.120.0070.09020.95
5.6.110.0170.07721.02
5.6.100.0100.07320.99
5.6.90.0030.09021.02
5.6.80.0100.07320.46
5.6.70.0100.06020.38
5.6.60.0030.07320.37
5.6.50.0070.04720.55
5.6.40.0130.06020.30
5.6.30.0230.06320.40
5.6.20.0130.07320.43
5.6.10.0030.08320.31
5.6.00.0130.07720.38
5.5.380.0000.04320.37
5.5.370.0000.04320.36
5.5.360.0030.05720.34
5.5.350.0030.04020.46
5.5.340.0030.04320.84
5.5.330.0030.05020.92
5.5.320.0030.09320.91
5.5.310.0070.07720.64
5.5.300.0000.08720.88
5.5.290.0000.06320.80
5.5.280.0100.05320.75
5.5.270.0130.07720.91
5.5.260.0100.08020.75
5.5.250.0070.05020.57
5.5.240.0100.07320.21
5.5.230.0070.05020.02
5.5.220.0130.08020.24
5.5.210.0070.08320.30
5.5.200.0170.07020.11
5.5.190.0030.04720.23
5.5.180.0100.05020.21
5.5.160.0030.04720.13
5.5.150.0170.07020.25
5.5.140.0070.08020.07
5.5.130.0100.06720.25
5.5.120.0170.07319.98
5.5.110.0130.06720.26
5.5.100.0200.06020.16
5.5.90.0070.07019.96
5.5.80.0030.04720.05
5.5.70.0070.07320.15
5.5.60.0130.07019.93
5.5.50.0030.05020.04
5.5.40.0100.06720.13
5.5.30.0070.07320.04
5.5.20.0000.06320.14
5.5.10.0030.07020.01
5.5.00.0100.07720.12
5.4.450.0030.07019.47
5.4.440.0070.08719.40
5.4.430.0030.05019.13
5.4.420.0130.04319.22
5.4.410.0130.07019.22
5.4.400.0070.07319.23
5.4.390.0100.07318.96
5.4.380.0030.04319.13
5.4.370.0100.06719.04
5.4.360.0100.07319.02
5.4.350.0100.07318.95
5.4.340.0100.07318.78
5.4.320.0070.06319.02
5.4.310.0070.06319.03
5.4.300.0100.07019.04
5.4.290.0200.06718.94
5.4.280.0100.07319.09
5.4.270.0170.07019.04
5.4.260.0030.06319.07
5.4.250.0030.07019.02
5.4.240.0070.04319.22
5.4.230.0070.07018.94
5.4.220.0170.06318.97
5.4.210.0100.04018.98
5.4.200.0070.07018.77
5.4.190.0030.05718.93
5.4.180.0100.07719.06
5.4.170.0030.07319.01
5.4.160.0100.08018.76
5.4.150.0100.07719.12
5.4.140.0070.07316.23
5.4.130.0100.06316.30
5.4.120.0200.06016.31
5.4.110.0070.07316.26
5.4.100.0070.04016.45
5.4.90.0100.06716.36
5.4.80.0030.07716.25
5.4.70.0030.07016.31
5.4.60.0000.05716.24
5.4.50.0100.06016.33
5.4.40.0070.07316.36
5.4.30.0030.04016.23
5.4.20.0130.05316.38
5.4.10.0030.08016.20
5.4.00.0130.07315.67
5.3.290.0070.07314.83
5.3.280.0030.07714.83
5.3.270.0100.07314.83
5.3.260.0100.07314.83
5.3.250.0100.05714.83
5.3.240.0100.04014.83
5.3.230.0100.04714.83
5.3.220.0070.06314.83
5.3.210.0130.07714.83
5.3.200.0030.06314.83
5.3.190.0030.06014.83
5.3.180.0170.06714.83
5.3.170.0000.07314.83
5.3.160.0130.04014.83
5.3.150.0070.07314.83
5.3.140.0100.07014.83
5.3.130.0030.04014.83
5.3.120.0070.07714.83
5.3.110.0030.05014.83
5.3.100.0030.08014.83
5.3.90.0170.06714.83
5.3.80.0070.06714.83
5.3.70.0070.07314.83
5.3.60.0070.05314.83
5.3.50.0030.07714.83
5.3.40.0030.06314.83
5.3.30.0100.07014.83
5.3.20.0100.07014.83
5.3.10.0000.06014.83
5.3.00.0000.04714.83
5.2.170.0070.06014.83
5.2.160.0030.06714.83
5.2.150.0070.06014.83
5.2.140.0070.04714.83
5.2.130.0070.03714.83
5.2.120.0030.06314.83
5.2.110.0070.03314.83
5.2.100.0070.03014.83
5.2.90.0030.03014.83
5.2.80.0030.06314.83
5.2.70.0130.04714.83
5.2.60.0070.05314.83
5.2.50.0100.06314.83
5.2.40.0070.04014.83
5.2.30.0070.05014.83
5.2.20.0070.06014.83
5.2.10.0030.06014.83
5.2.00.0100.05314.83
5.1.60.0070.04714.83
5.1.50.0130.04314.83
5.1.40.0100.04314.83
5.1.30.0100.05314.83
5.1.20.0000.04014.83
5.1.10.0100.04314.83
5.1.00.0000.05714.83
5.0.50.0030.03014.83
5.0.40.0030.04314.83
5.0.30.0070.06014.83
5.0.20.0030.04714.83
5.0.10.0070.03014.83
5.0.00.0100.05714.83
4.4.90.0000.03314.83
4.4.80.0000.03314.83
4.4.70.0030.02714.83
4.4.60.0030.01714.83
4.4.50.0070.03314.83
4.4.40.0030.05314.83
4.4.30.0000.03014.83
4.4.20.0000.02014.83
4.4.10.0100.01714.83
4.4.00.0030.05314.83
4.3.110.0070.01714.83
4.3.100.0030.01714.83
4.3.90.0000.03014.83
4.3.80.0000.04714.83
4.3.70.0070.03014.83
4.3.60.0070.03014.83
4.3.50.0000.03014.83
4.3.40.0070.02714.83
4.3.30.0000.03314.83
4.3.20.0000.02014.83
4.3.10.0000.02714.83
4.3.00.0000.01714.83

preferences:
40.3 ms | 400 KiB | 5 Q