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-30")); //->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 "\nTo:".$foo->format('d/m/Y H:i:s'); echo "\n\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.70.0070.01116.63
8.3.60.0150.00418.43
8.3.50.0110.01222.01
8.3.40.0120.00318.63
8.3.30.0070.00719.04
8.3.20.0000.00820.07
8.3.10.0040.00421.65
8.3.00.0000.00820.77
8.2.190.0070.01016.88
8.2.180.0130.00617.13
8.2.170.0110.00722.96
8.2.160.0110.00422.18
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00419.90
8.2.110.0040.00419.33
8.2.100.0080.00317.91
8.2.90.0030.00618.34
8.2.80.0050.00318.00
8.2.70.0080.00018.16
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0000.00818.22
8.2.30.0000.00718.19
8.2.20.0000.00817.87
8.2.10.0060.00318.12
8.2.00.0040.00418.05
8.1.280.0100.00725.92
8.1.270.0080.00819.08
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00422.00
8.1.230.0120.00022.75
8.1.220.0080.00017.79
8.1.210.0090.00018.88
8.1.200.0030.00617.60
8.1.190.0080.00017.48
8.1.180.0060.00318.10
8.1.170.0080.00018.81
8.1.160.0000.00722.14
8.1.150.0070.00018.94
8.1.140.0040.00417.65
8.1.130.0030.00617.86
8.1.120.0000.00717.79
8.1.110.0040.00417.59
8.1.100.0050.00217.77
8.1.90.0070.00017.75
8.1.80.0000.00817.73
8.1.70.0040.00417.71
8.1.60.0120.00017.82
8.1.50.0030.00617.68
8.1.40.0000.00817.73
8.1.30.0050.00317.70
8.1.20.0000.00817.90
8.1.10.0050.00317.77
8.1.00.0030.00617.78
8.0.300.0070.00320.01
8.0.290.0080.00017.00
8.0.280.0000.00818.67
8.0.270.0000.00717.32
8.0.260.0000.00717.34
8.0.250.0070.00017.26
8.0.240.0080.00017.24
8.0.230.0070.00017.21
8.0.220.0050.00317.20
8.0.210.0030.00317.12
8.0.200.0030.00317.22
8.0.190.0060.00317.21
8.0.180.0000.00817.07
8.0.170.0040.00417.06
8.0.160.0040.00417.11
8.0.150.0050.00317.00
8.0.140.0040.00417.18
8.0.130.0000.00613.50
8.0.120.0040.00417.14
8.0.110.0080.00016.99
8.0.100.0000.00717.03
8.0.90.0040.00417.04
8.0.80.0030.01317.11
8.0.70.0030.00517.00
8.0.60.0000.00717.11
8.0.50.0040.00417.03
8.0.30.0170.00717.25
8.0.20.0110.00917.40
8.0.10.0030.00517.31
8.0.00.0120.00617.12
7.4.330.0040.00415.03
7.4.320.0000.00716.76
7.4.300.0050.00216.72
7.4.290.0000.00716.73
7.4.280.0050.00516.80
7.4.270.0080.00016.81
7.4.260.0040.00416.81
7.4.250.0050.00216.66
7.4.240.0040.00416.74
7.4.230.0030.00316.80
7.4.220.0040.01516.78
7.4.210.0090.00916.75
7.4.200.0000.00716.52
7.4.160.0090.00916.74
7.4.150.0150.00617.40
7.4.140.0100.00917.86
7.4.130.0130.00516.72
7.4.120.0080.01016.71
7.4.110.0100.00916.83
7.4.100.0070.01116.73
7.4.90.0090.00916.79
7.4.80.0090.01319.39
7.4.70.0130.00516.75
7.4.60.0070.01116.61
7.4.50.0060.00316.71
7.4.40.0030.01416.54
7.4.30.0130.00616.88
7.4.10.0130.00616.76
7.4.00.0040.01316.05
7.3.330.0000.00613.27
7.3.320.0000.00513.40
7.3.310.0000.00816.58
7.3.300.0070.00016.56
7.3.290.0120.00716.58
7.3.280.0080.01016.57
7.3.270.0150.00617.40
7.3.260.0120.01216.66
7.3.250.0090.00916.70
7.3.240.0100.00716.68
7.3.230.0080.01716.84
7.3.210.0060.01516.46
7.3.200.0120.00619.39
7.3.190.0070.01016.52
7.3.180.0110.00716.53
7.3.170.0090.00916.56
7.3.160.0070.01016.77
7.3.130.0050.01416.79
7.3.120.0080.01116.14
7.3.110.0080.00915.96
7.3.100.0070.00916.08
7.3.90.0070.00915.88
7.3.80.0030.01016.08
7.3.70.0040.00915.98
7.3.60.0090.00615.99
7.3.50.0090.00516.06
7.3.40.0040.00915.99
7.3.30.0070.00816.03
7.3.20.0030.01017.87
7.3.10.0050.00717.49
7.3.00.0110.00317.55
7.2.330.0170.00017.05
7.2.320.0120.01217.04
7.2.310.0100.00716.82
7.2.300.0040.01216.86
7.2.290.0100.01317.04
7.2.260.0090.00816.91
7.2.250.0100.00916.23
7.2.240.0100.00716.41
7.2.230.0080.00916.27
7.2.220.0070.00716.31
7.2.210.0080.00616.35
7.2.200.0060.00916.29
7.2.190.0060.00916.13
7.2.180.0050.00716.32
7.2.170.0050.00916.30
7.2.160.0060.01116.29
7.2.150.0070.00718.01
7.2.140.0050.01018.09
7.2.130.0080.00717.88
7.2.120.0040.01117.86
7.2.110.0070.00617.82
7.2.100.0030.01317.77
7.2.90.0070.00917.89
7.2.80.0070.00917.82
7.2.70.0060.00817.97
7.2.60.0050.00917.82
7.2.50.0080.00517.88
7.2.40.0090.00617.80
7.2.30.0080.00617.88
7.2.20.0100.00617.89
7.2.10.0100.00417.83
7.2.00.0070.00918.27
7.1.330.0040.01116.97
7.1.320.0040.00916.96
7.1.310.0070.00717.06
7.1.300.0080.00617.02
7.1.290.0040.00617.03
7.1.280.0040.01117.09
7.1.270.0050.00516.96
7.1.260.0090.00517.04
7.1.250.0070.00516.71
7.1.240.0070.00716.81
7.1.230.0060.00816.81
7.1.220.0070.00916.78
7.1.210.0100.00616.67
7.1.200.0050.00916.75
7.1.190.0050.00816.70
7.1.180.0090.00816.69
7.1.170.0090.00516.86
7.1.160.0060.00516.64
7.1.150.0080.00716.67
7.1.140.0080.00716.63
7.1.130.0070.00816.72
7.1.120.0070.00816.74
7.1.110.0070.00816.71
7.1.100.0040.01217.02
7.1.90.0100.00616.79
7.1.80.0090.00516.62
7.1.70.0050.01016.82
7.1.60.0090.00817.34
7.1.50.0100.00916.87
7.1.40.0080.00916.71
7.1.30.0060.00816.85
7.1.20.0060.00516.78
7.1.10.0110.00616.81
7.1.00.0070.02117.88
7.0.330.0100.00316.29
7.0.320.0070.00816.36
7.0.310.0050.00916.38
7.0.300.0030.01016.30
7.0.290.0060.00816.23
7.0.280.0040.01016.31
7.0.270.0050.00716.26
7.0.260.0080.00616.32
7.0.250.0040.00916.38
7.0.240.0060.01016.26
7.0.230.0050.00716.31
7.0.220.0060.00716.31
7.0.210.0080.00616.36
7.0.200.0060.00916.06
7.0.190.0070.00716.47
7.0.180.0060.00816.37
7.0.170.0050.01016.35
7.0.160.0020.01216.48
7.0.150.0030.01016.27
7.0.140.0080.01117.47
7.0.130.0070.00616.39
7.0.120.0060.01016.38
7.0.110.0070.00716.36
7.0.100.0070.00916.37
7.0.90.0050.00816.40
7.0.80.0070.00716.22
7.0.70.0070.00816.37
7.0.60.0070.02317.04
7.0.50.0070.01816.63
7.0.40.0050.01815.56
7.0.30.0120.02115.55
7.0.20.0120.01515.46
7.0.10.0070.02315.54
7.0.00.0060.01715.50
5.6.400.0060.00815.44
5.6.390.0120.00215.57
5.6.380.0070.00615.30
5.6.370.0050.00815.14
5.6.360.0090.00515.25
5.6.350.0060.00915.18
5.6.340.0050.01015.44
5.6.330.0050.00715.28
5.6.320.0070.00815.25
5.6.310.0070.00515.32
5.6.300.0070.01015.36
5.6.290.0070.00615.30
5.6.280.0060.02116.49
5.6.270.0100.00715.29
5.6.260.0080.00715.19
5.6.250.0060.00715.25
5.6.240.0050.01015.18
5.6.230.0040.00915.23
5.6.220.0090.00615.15
5.6.210.0040.02716.21
5.6.200.0080.02015.82
5.6.190.0070.01816.30
5.6.180.0140.01616.19
5.6.170.0110.01416.22
5.6.160.0050.02916.24
5.6.150.0100.01615.82
5.6.140.0090.01315.71
5.6.130.0070.02215.68
5.6.120.0060.01716.29
5.6.110.0100.01616.33
5.6.100.0100.02116.30
5.6.90.0100.02016.36
5.6.80.0090.02016.15
5.6.70.0080.00915.18
5.6.60.0090.00715.16
5.6.50.0070.00915.02
5.6.40.0090.00915.23
5.6.30.0110.00615.08
5.6.20.0060.00815.04
5.6.10.0060.01415.11
5.6.00.0100.00815.00
5.5.380.0070.00814.19
5.5.370.0050.00914.50
5.5.360.0060.00814.31
5.5.350.0100.02115.62
5.5.340.0070.01715.04
5.5.330.0060.02515.54
5.5.320.0100.02315.49
5.5.310.0150.02015.43
5.5.300.0070.02015.11
5.5.290.0090.01115.04
5.5.280.0050.02415.50
5.5.270.0050.01615.52
5.5.260.0050.01915.56
5.5.250.0080.01815.47
5.5.240.0040.02315.45
5.5.230.0060.00714.16
5.5.220.0040.01214.28
5.5.210.0100.00514.13
5.5.200.0070.00614.29
5.5.190.0060.01114.21
5.5.180.0080.00814.22
5.5.170.0110.00614.28
5.5.160.0070.00814.24
5.5.150.0060.00814.23
5.5.140.0080.00714.18
5.5.130.0070.00914.11
5.5.120.0090.00814.34
5.5.110.0120.00214.20
5.5.100.0080.01014.22
5.5.90.0070.00614.33
5.5.80.0050.00814.25
5.5.70.0070.00814.32
5.5.60.0060.00814.00
5.5.50.0100.00414.11
5.5.40.0110.00614.30
5.5.30.0040.01214.31
5.5.20.0050.00814.29
5.5.10.0070.00614.20
5.5.00.0100.00614.11
5.4.450.0130.01913.63
5.4.440.0070.01813.55
5.4.430.0100.01513.61
5.4.420.0110.01513.55
5.4.410.0100.02013.55
5.4.400.0100.01713.50
5.4.390.0100.01513.36
5.4.380.0090.01913.33
5.4.370.0100.01613.36
5.4.360.0100.01513.37
5.4.350.0130.01813.35
5.4.340.0270.01713.38
5.4.330.0090.00812.14
5.4.320.0190.02113.36
5.4.310.0210.01913.43
5.4.300.0190.01613.42
5.4.290.0210.02113.30
5.4.280.0220.01813.41
5.4.270.0220.01513.40
5.4.260.0200.02013.40
5.4.250.0190.01813.32
5.4.240.0210.01713.40
5.4.230.0200.01713.36
5.4.220.0210.01713.37
5.4.210.0180.01713.39
5.4.200.0220.01412.95
5.4.190.0140.01713.37
5.4.180.0190.01613.34
5.4.170.0200.02213.40
5.4.160.0240.01713.36
5.4.150.0250.01913.36
5.4.140.0220.01512.88
5.4.130.0220.01812.86
5.4.120.0110.02312.91
5.4.110.0190.01912.95
5.4.100.0190.01712.84
5.4.90.0190.01612.83
5.4.80.0190.01612.84
5.4.70.0200.01512.84
5.4.60.0170.01612.88
5.4.50.0170.01312.88
5.4.40.0180.01812.91
5.4.30.0220.01712.83
5.4.20.0190.01712.85
5.4.10.0180.01612.93
5.4.00.0190.01512.78
5.3.290.0490.02512.73
5.3.280.0410.03312.70
5.3.270.0340.03212.69
5.3.260.0360.03012.50
5.3.250.0420.03312.62
5.3.240.0430.02812.54
5.3.230.0370.03012.50
5.3.220.0320.03512.49
5.3.210.0300.03112.47
5.3.200.0330.03012.50
5.3.190.0280.03312.56
5.3.180.0450.03212.50
5.3.170.0450.02512.61
5.3.160.0470.03012.64
5.3.150.0430.03312.63
5.3.140.0300.04012.59
5.3.130.0460.04112.62
5.3.120.0440.04212.58
5.3.110.0320.04812.55
5.3.100.0370.04212.29
5.3.90.0290.04012.39
5.3.80.0470.03812.25
5.3.70.0500.03312.24
5.3.60.0470.03012.19
5.3.50.0550.03812.27
5.3.40.0460.03312.30
5.3.30.0400.02112.36
5.3.20.0390.03412.07
5.3.10.0400.03211.95
5.3.00.0310.04111.97
5.2.170.0360.03010.47
5.2.160.0280.02810.42
5.2.150.0320.03210.35
5.2.140.0350.02510.49
5.2.130.0280.02810.31
5.2.120.0340.02510.29
5.2.110.0360.02810.27
5.2.100.0380.02110.32
5.2.90.0430.02510.27
5.2.80.0210.02510.25
5.2.70.0340.02210.22
5.2.60.0370.02110.24
5.2.50.0270.02710.18
5.2.40.0230.02210.23
5.2.30.0270.02510.24
5.2.20.0320.02210.19
5.2.10.0200.02210.15
5.2.00.0160.02310.10
5.1.60.0210.0189.72
5.1.50.0260.0189.71
5.1.40.0170.0209.66
5.1.30.0220.0219.86
5.1.20.0220.0249.88
5.1.10.0260.0219.75
5.1.00.0070.0209.76
5.0.50.0050.0178.98
5.0.40.0040.0168.89
5.0.30.0030.0238.88
5.0.20.0070.0158.80
5.0.10.0040.0178.85
5.0.00.0120.0208.84
4.4.90.0030.0128.50
4.4.80.0040.0198.50
4.4.70.0050.0158.50
4.4.60.0080.0138.50
4.4.50.0040.0188.50
4.4.40.0030.0258.50
4.4.30.0030.0178.50
4.4.20.0030.0138.50
4.4.10.0030.0168.50
4.4.00.0100.0158.50
4.3.110.0030.0158.50
4.3.100.0030.0158.50
4.3.90.0100.0078.50
4.3.80.0040.0208.50
4.3.70.0060.0108.50
4.3.60.0060.0118.50
4.3.50.0050.0128.50
4.3.40.0030.0198.50
4.3.30.0020.0158.50
4.3.20.0060.0128.50
4.3.10.0040.0148.50
4.3.00.0060.0159.35

preferences:
46.59 ms | 401 KiB | 5 Q