3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_from = (new \DateTime("2015-03-28")); //->setTimezone(new \DateTimeZone('UTC')); $date_to = (new \DateTime("2015-03-29")); //->setTimezone(new \DateTimeZone('UTC')); $date_from = (new \DateTime("2015-10-25")); //->setTimezone(new \DateTimeZone('UTC')); $date_to = (new \DateTime("2015-10-26")); //->setTimezone(new \DateTimeZone('UTC')); $interval = \DateInterval::createFromDateString('1 hour'); while ($date_to > $date_from) { $foo = clone $date_to; $check = $date_to->sub($interval); if ($foo == $check) { $check = $date_to->sub(\DateInterval::createFromDateString('2 hours')); } $date_to = $check; if ($date_to < $date_from) { $date_to = $date_from; } echo "\n\nTo:".$foo->format('d/m/Y H:i:s'); echo "\nFrom:".$date_to->format('d/m/Y H:i:s'); }

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.0140.00718.31
8.3.50.0060.00918.11
8.3.40.0180.00318.61
8.3.30.0040.01119.05
8.3.20.0080.00020.13
8.3.10.0030.00521.90
8.3.00.0070.00019.07
8.2.180.0070.01116.75
8.2.170.0060.01222.96
8.2.160.0030.01722.06
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00319.79
8.2.110.0170.00722.29
8.2.100.0040.00718.22
8.2.90.0080.00019.30
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0070.00318.34
8.2.30.0050.00218.11
8.2.20.0040.00417.97
8.2.10.0050.00318.11
8.2.00.0060.00317.82
8.1.270.0030.00619.13
8.1.260.0060.01326.35
8.1.250.0080.00028.09
8.1.240.0080.00323.87
8.1.230.0000.01219.21
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00717.61
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0030.00518.90
8.1.160.0000.00821.98
8.1.150.0030.00618.94
8.1.140.0000.00717.63
8.1.130.0000.00717.87
8.1.120.0040.00417.77
8.1.110.0050.00317.61
8.1.100.0080.00017.63
8.1.90.0050.00317.71
8.1.80.0040.00417.59
8.1.70.0040.00417.64
8.1.60.0080.00317.79
8.1.50.0030.00617.62
8.1.40.0000.00817.72
8.1.30.0040.00417.89
8.1.20.0040.00417.72
8.1.10.0030.00617.63
8.1.00.0040.00717.79
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0040.00418.70
8.0.270.0000.00717.42
8.0.260.0000.00717.31
8.0.250.0030.00317.24
8.0.240.0050.00317.25
8.0.230.0000.00717.10
8.0.220.0040.00417.07
8.0.210.0030.00317.16
8.0.200.0030.00317.20
8.0.190.0040.00417.12
8.0.180.0030.00617.10
8.0.170.0040.00417.21
8.0.160.0000.00717.23
8.0.150.0040.00417.07
8.0.140.0040.00417.05
8.0.130.0060.00013.56
8.0.120.0000.00817.16
8.0.110.0040.00417.21
8.0.100.0000.00716.94
8.0.90.0070.00016.96
8.0.80.0060.00917.18
8.0.70.0000.00717.18
8.0.60.0070.00017.04
8.0.50.0040.00417.15
8.0.30.0140.01417.34
8.0.20.0110.00917.52
8.0.10.0040.00417.38
8.0.00.0080.01117.08
7.4.330.0070.00015.03
7.4.320.0000.00716.80
7.4.300.0000.00916.87
7.4.290.0030.00516.62
7.4.280.0000.00916.72
7.4.270.0000.00716.81
7.4.260.0070.00016.79
7.4.250.0080.00016.67
7.4.240.0030.00416.80
7.4.230.0030.00316.83
7.4.220.0120.00616.81
7.4.210.0160.00616.80
7.4.200.0040.00416.84
7.4.160.0100.01316.79
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0110.00816.68
7.4.120.0130.00716.91
7.4.110.0100.01316.93
7.4.100.0040.02116.82
7.4.90.0150.00416.78
7.4.80.0140.00319.39
7.4.70.0120.01216.76
7.4.60.0120.00916.70
7.4.50.0040.00416.82
7.4.40.0100.00716.88
7.4.30.0110.00716.77
7.4.10.0060.01315.16
7.4.00.0070.00815.12
7.3.330.0030.00313.36
7.3.320.0000.00513.37
7.3.310.0040.00416.60
7.3.300.0000.00816.54
7.3.290.0070.00716.51
7.3.280.0120.00716.53
7.3.270.0110.00717.40
7.3.260.0070.01316.78
7.3.250.0100.00716.71
7.3.240.0170.00716.87
7.3.230.0110.01516.71
7.3.210.0090.00916.78
7.3.200.0140.00419.39
7.3.190.0070.01016.78
7.3.180.0090.00716.59
7.3.170.0130.00616.64
7.3.160.0070.01016.55
7.3.130.0040.01514.88
7.3.120.0100.00314.75
7.3.110.0140.00315.04
7.3.100.0000.01615.04
7.3.90.0100.00714.97
7.3.80.0070.01014.95
7.3.70.0090.00015.20
7.3.60.0040.01114.86
7.3.50.0080.00414.99
7.3.40.0030.01014.99
7.3.30.0040.01414.66
7.3.20.0060.00916.85
7.3.10.0000.01316.93
7.3.00.0110.00316.64
7.2.330.0030.01617.05
7.2.320.0110.01316.80
7.2.310.0100.00716.83
7.2.300.0120.00716.85
7.2.290.0160.00317.00
7.2.260.0030.01715.45
7.2.250.0110.00815.18
7.2.240.0110.00414.96
7.2.230.0060.00615.21
7.2.220.0070.01115.36
7.2.210.0000.01615.27
7.2.200.0040.01214.95
7.2.190.0100.00715.27
7.2.180.0030.00715.37
7.2.170.0070.00715.34
7.2.160.0030.00715.39
7.2.150.0030.00617.13
7.2.140.0030.01317.25
7.2.130.0000.01517.25
7.2.120.0070.00717.20
7.2.110.0030.00716.82
7.2.100.0110.00717.05
7.2.90.0060.00917.22
7.2.80.0070.01017.22
7.2.70.0070.01017.06
7.2.60.0090.01016.92
7.2.50.0030.01616.96
7.2.40.0070.00717.16
7.2.30.0060.00917.13
7.2.20.0080.00416.81
7.2.10.0120.00316.96
7.2.00.0070.00718.41
7.1.330.0030.01016.14
7.1.320.0000.01416.14
7.1.310.0080.00415.84
7.1.300.0040.00715.82
7.1.290.0030.00615.91
7.1.280.0120.00315.73
7.1.270.0060.00316.09
7.1.260.0090.00616.09
7.1.250.0030.01115.76
7.1.240.0040.01215.93
7.1.230.0030.01016.07
7.1.220.0030.00516.01
7.1.210.0060.00915.74
7.1.200.0060.00716.06
7.1.190.0110.00716.11
7.1.180.0070.00715.80
7.1.170.0030.00715.99
7.1.160.0090.00615.54
7.1.150.0000.01115.94
7.1.140.0040.01116.11
7.1.130.0030.01215.85
7.1.120.0030.01015.90
7.1.110.0090.00616.25
7.1.100.0060.00717.02
7.1.90.0060.01016.17
7.1.80.0040.01115.94
7.1.70.0000.01016.73
7.1.60.0090.00817.74
7.1.50.0100.00916.66
7.1.40.0090.00015.83
7.1.30.0070.00715.73
7.1.20.0040.01115.86
7.1.10.0030.01016.06
7.1.00.0070.03719.31
7.0.330.0030.00615.42
7.0.320.0100.00015.76
7.0.310.0000.00915.70
7.0.300.0090.00615.54
7.0.290.0060.00615.32
7.0.280.0060.00615.50
7.0.270.0050.00515.41
7.0.260.0130.00315.61
7.0.250.0070.00715.78
7.0.240.0030.01015.48
7.0.230.0070.00715.46
7.0.220.0000.00915.75
7.0.210.0030.00915.62
7.0.200.0060.00815.41
7.0.190.0090.00415.55
7.0.180.0040.00415.46
7.0.170.0070.00715.48
7.0.160.0040.01115.36
7.0.150.0070.00715.23
7.0.140.0100.02218.86
7.0.130.0100.00315.41
7.0.120.0100.00315.71
7.0.110.0070.00715.60
7.0.100.0000.00915.38
7.0.90.0030.01015.63
7.0.80.0110.00415.60
7.0.70.0070.01015.39
7.0.60.0110.04117.62
7.0.50.0030.03216.84
7.0.40.0020.04917.00
7.0.30.0180.02816.84
7.0.20.0170.04216.92
7.0.10.0190.04316.82
7.0.00.0080.03516.95
5.6.400.0090.00614.49
5.6.390.0000.01114.52
5.6.380.0060.00614.47
5.6.370.0000.01214.42
5.6.360.0040.01114.74
5.6.350.0090.00614.40
5.6.340.0030.01214.46
5.6.330.0040.00814.62
5.6.320.0000.00914.75
5.6.310.0100.00314.49
5.6.300.0070.00714.27
5.6.290.0080.00814.47
5.6.280.0020.04217.68
5.6.270.0120.00314.66
5.6.260.0090.00614.44
5.6.250.0120.00314.50
5.6.240.0060.00914.52
5.6.230.0090.00314.77
5.6.220.0000.01414.39
5.6.210.0050.04417.60
5.6.200.0030.02616.22
5.6.190.0050.02517.75
5.6.180.1870.02317.40
5.6.170.0070.03317.33
5.6.160.0030.04817.52
5.6.150.0050.02716.45
5.6.140.0020.04516.42
5.6.130.0040.02416.22
5.6.120.0080.04217.73
5.6.110.0030.04617.61
5.6.100.0030.04817.68
5.6.90.0090.04517.69
5.6.80.0050.04517.32
5.6.70.0050.03817.26
5.6.60.0000.01314.59
5.6.50.0040.00914.38
5.6.40.0030.01014.40
5.6.30.0070.00714.27
5.6.20.0090.00014.25
5.6.10.0160.00014.51
5.6.00.0060.00314.36
5.5.380.0000.01314.62
5.5.370.0090.00314.07
5.5.360.0130.00014.50
5.5.350.0080.04817.43
5.5.340.0090.04116.22
5.5.330.0050.02417.34
5.5.320.0180.04517.35
5.5.310.0180.04317.46
5.5.300.0050.03516.11
5.5.290.0110.01716.27
5.5.280.0100.04117.67
5.5.270.0170.03517.63
5.5.260.0080.04317.67
5.5.250.0070.03017.44
5.5.240.0070.04317.29
5.5.230.0120.00314.67
5.5.220.0060.00814.40
5.5.210.0040.01114.18
5.5.200.0060.00614.48
5.5.190.0060.00914.28
5.5.180.0120.00414.25
5.5.170.0030.01414.51
5.5.160.0070.00714.43
5.5.150.0060.01014.38
5.5.140.0060.00914.27
5.5.130.0000.01414.39
5.5.120.0060.00614.48
5.5.110.0090.00314.40
5.5.100.0100.00314.57
5.5.90.0080.00314.16
5.5.80.0060.00914.43
5.5.70.0070.00314.11
5.5.60.0080.00614.52
5.5.50.0060.00814.26
5.5.40.0030.00914.25
5.5.30.0070.00714.20
5.5.20.0030.01214.52
5.5.10.0090.00614.02
5.5.00.0000.01214.18
5.4.450.0110.03315.35
5.4.440.0440.02315.45
5.4.430.0110.03215.34
5.4.420.0050.03515.21
5.4.410.0120.02515.33
5.4.400.0100.03015.30
5.4.390.0080.03314.88
5.4.380.0100.03214.89
5.4.370.0100.02814.94
5.4.360.0130.02715.03
5.4.350.0080.03414.91
5.4.340.0070.03414.97
5.4.330.0030.01011.28
5.4.320.0130.02814.87
5.4.310.0120.03115.03
5.4.300.0100.03214.91
5.4.290.0100.03014.97
5.4.280.0120.02814.89
5.4.270.0110.03014.90
5.4.260.0100.03514.90
5.4.250.0180.02814.95
5.4.240.0070.03514.97
5.4.230.0050.03414.97
5.4.220.0100.03214.96
5.4.210.0160.02314.90
5.4.200.0080.03614.01
5.4.190.0100.03014.88
5.4.180.0080.02814.98
5.4.170.0120.02714.88
5.4.160.0080.03214.88
5.4.150.0130.02914.88
5.4.140.0120.02813.72
5.4.130.0100.02713.75
5.4.120.0130.02513.81
5.4.110.0080.03013.72
5.4.100.0070.03413.68
5.4.90.0120.02513.77
5.4.80.0030.03213.69
5.4.70.0140.02813.80
5.4.60.0120.02713.65
5.4.50.0090.02613.72
5.4.40.0100.02913.66
5.4.30.0080.02813.68
5.4.20.0100.02713.75
5.4.10.0140.02113.64
5.4.00.0080.02813.48
5.3.290.0100.06014.63
5.3.280.0070.06014.75
5.3.270.0130.05714.59
5.3.260.0130.05714.57
5.3.250.0270.04714.59
5.3.240.0200.05314.60
5.3.230.0100.06014.63
5.3.220.0100.05714.48
5.3.210.0170.06314.62
5.3.200.0130.05714.53
5.3.190.0070.06714.55
5.3.180.0200.05314.66
5.3.170.0170.05314.72
5.3.160.0130.05014.55
5.3.150.0130.05314.64
5.3.140.0130.05314.68
5.3.130.0030.06714.60
5.3.120.0170.05314.70
5.3.110.0100.05714.48
5.3.100.0130.05314.03
5.3.90.0100.05314.07
5.3.80.0130.05014.04
5.3.70.0170.05014.17
5.3.60.0100.05713.92
5.3.50.0070.07313.94
5.3.40.0200.04714.10
5.3.30.0130.05013.92
5.3.20.0230.04013.79
5.3.10.0100.05713.61
5.3.00.0100.05713.65
5.2.170.0130.04711.15
5.2.160.0130.04311.20
5.2.150.0170.03711.29
5.2.140.0130.04011.07
5.2.130.0130.03711.14
5.2.120.0170.03711.07
5.2.110.0170.03711.09
5.2.100.0070.05011.16
5.2.90.0100.04311.11
5.2.80.0100.04311.14
5.2.70.0100.04711.07
5.2.60.0070.04711.09
5.2.50.0130.04311.16
5.2.40.0100.04011.06
5.2.30.0100.04710.96
5.2.20.0130.03710.93
5.2.10.0030.04711.04
5.2.00.0030.05310.70
5.1.60.0170.02710.03
5.1.50.0030.04010.06
5.1.40.0100.0409.93
5.1.30.0070.05310.36
5.1.20.0070.04010.33
5.1.10.0170.03010.05
5.1.00.0100.03310.10
5.0.50.0070.0308.58
5.0.40.0070.0308.45
5.0.30.0070.0478.23
5.0.20.0030.0308.24
5.0.10.0100.0278.24
5.0.00.0030.0478.20
4.4.90.0100.0177.58
4.4.80.0030.0237.58
4.4.70.0000.0307.58
4.4.60.0130.0207.58
4.4.50.0070.0207.58
4.4.40.0000.0407.58
4.4.30.0030.0277.58
4.4.20.0030.0237.58
4.4.10.0070.0207.58
4.4.00.0030.0377.58
4.3.110.0070.0207.58
4.3.100.0100.0177.58
4.3.90.0100.0177.58
4.3.80.0170.0237.58
4.3.70.0070.0207.58
4.3.60.0030.0237.58
4.3.50.0030.0277.58
4.3.40.0000.0377.58
4.3.30.0000.0277.58
4.3.20.0030.0237.58
4.3.10.0000.0277.58
4.3.00.0000.01714.52

preferences:
91.91 ms | 400 KiB | 5 Q