3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_ranges = array( '7 Days Ago' => array( 'from' => new DateTime('7 days ago 00:00:00', $tz), 'to' => new DateTime('yesterday 23:59:59', $tz) ), 'Yesterday' => array( 'from' => new DateTime('yesterday 00:00:00', $tz), 'to' => new DateTime('yesterday 23:59:59', $tz) ), '30 Days Ago' => array( 'from' => new DateTime('30 days ago 00:00:00', $tz), 'to' => new DateTime('yesterday 23:59:59', $tz) ) ); usort($myArray, function($a, $b) { return $a['from']->getTimestamp() - $b['from']->getTimestamp(); }); print_r($date_ranges);

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.0110.00717.00
8.3.50.0100.01121.34
8.3.40.0110.00418.78
8.3.30.0070.00718.92
8.3.20.0070.00020.38
8.3.10.0040.00423.52
8.3.00.0080.00019.69
8.2.180.0120.00925.92
8.2.170.0120.00322.96
8.2.160.0070.00720.51
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0030.00618.00
8.2.110.0100.00022.39
8.2.100.0080.00318.15
8.2.90.0000.00819.30
8.2.80.0030.00518.00
8.2.70.0090.00318.00
8.2.60.0000.00818.15
8.2.50.0060.00318.07
8.2.40.0080.00020.95
8.2.30.0000.00820.67
8.2.20.0050.00218.05
8.2.10.0080.00018.13
8.2.00.0000.00718.25
8.1.280.0110.00425.92
8.1.270.0100.01023.81
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00622.70
8.1.230.0120.00017.73
8.1.220.0090.00017.79
8.1.210.0030.00618.77
8.1.200.0000.00817.73
8.1.190.0080.00017.47
8.1.180.0000.00818.10
8.1.170.0030.01018.59
8.1.160.0040.00422.14
8.1.150.0040.00419.07
8.1.140.0040.00419.63
8.1.130.0000.00717.86
8.1.120.0040.00417.62
8.1.110.0000.00817.66
8.1.100.0040.00417.77
8.1.90.0000.00817.73
8.1.80.0000.00817.69
8.1.70.0070.00317.59
8.1.60.0040.00417.74
8.1.50.0000.00817.64
8.1.40.0000.01117.76
8.1.30.0050.00317.76
8.1.20.0050.00517.84
8.1.10.0040.00417.66
8.1.00.0060.00317.74
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0000.00718.48
8.0.270.0030.00317.34
8.0.260.0030.00317.33
8.0.250.0040.00417.25
8.0.240.0030.00317.26
8.0.230.0030.00717.23
8.0.220.0000.00717.20
8.0.210.0030.00317.07
8.0.200.0060.00017.32
8.0.190.0070.00017.27
8.0.180.0070.00017.14
8.0.170.0000.00717.25
8.0.160.0030.00517.11
8.0.150.0000.00717.17
8.0.140.0040.00417.13
8.0.130.0050.00313.59
8.0.120.0040.00417.20
8.0.110.0060.00317.11
8.0.100.0000.00817.24
8.0.90.0000.00717.21
8.0.80.0130.00317.18
8.0.70.0040.00417.19
8.0.60.0050.00317.04
8.0.50.0000.00717.08
8.0.30.0130.00517.44
8.0.20.0070.01317.55
8.0.10.0000.00717.41
8.0.00.0080.00916.92
7.4.330.0000.00515.08
7.4.320.0000.00716.63
7.4.300.0060.00016.82
7.4.290.0000.00716.72
7.4.280.0000.01016.76
7.4.270.0030.00316.78
7.4.260.0070.00016.79
7.4.250.0040.00416.68
7.4.240.0040.00416.71
7.4.230.0070.00016.91
7.4.220.0030.01616.64
7.4.210.0090.00816.81
7.4.200.0000.00716.90
7.4.160.0130.01016.92
7.4.150.0110.00717.40
7.4.140.0130.01117.86
7.4.130.0100.01016.82
7.4.120.0070.01016.79
7.4.110.0100.01416.92
7.4.100.0120.00916.77
7.4.90.0070.01316.77
7.4.80.0120.00619.39
7.4.70.0030.01516.85
7.4.60.0070.01016.96
7.4.50.0080.00016.57
7.4.40.0090.00916.92
7.4.30.0100.01016.86
7.4.00.0050.01315.41
7.3.330.0000.00613.43
7.3.320.0030.00313.43
7.3.310.0030.00316.46
7.3.300.0030.00316.45
7.3.290.0100.00716.50
7.3.280.0060.00916.48
7.3.270.0100.00917.40
7.3.260.0110.00716.60
7.3.250.0120.00516.68
7.3.240.0150.00516.75
7.3.230.0110.01016.61
7.3.210.0120.00416.75
7.3.200.0040.01216.75
7.3.190.0030.01316.66
7.3.180.0060.01016.56
7.3.170.0000.01716.46
7.3.160.0090.01216.64
7.3.120.0080.01114.97
7.3.110.0100.00815.02
7.3.100.0070.00714.83
7.3.90.0070.00914.88
7.3.80.0050.01015.01
7.3.70.0040.00714.97
7.3.60.0070.00614.85
7.3.50.0070.00614.97
7.3.40.0050.00514.86
7.3.30.0030.00714.96
7.3.20.0100.00016.76
7.3.10.0080.00616.84
7.3.00.0040.00916.86
7.2.330.0130.00417.00
7.2.320.0100.00717.01
7.2.310.0090.01216.64
7.2.300.0070.01116.99
7.2.290.0160.00316.61
7.2.250.0070.01015.27
7.2.240.0120.00715.23
7.2.230.0070.01115.28
7.2.220.0070.00815.20
7.2.210.0110.00615.40
7.2.200.0090.00615.16
7.2.190.0050.01115.32
7.2.180.0070.00715.19
7.2.170.0050.00815.27
7.2.160.0060.00915.19
7.2.150.0120.00317.10
7.2.140.0100.00717.04
7.2.130.0060.01017.13
7.2.120.0090.00617.03
7.2.110.0060.00817.12
7.2.100.0040.01416.90
7.2.90.0050.00917.25
7.2.80.0080.00817.00
7.2.70.0080.00517.05
7.2.60.0050.00817.13
7.2.50.0040.00917.16
7.2.40.0090.00617.07
7.2.30.0030.00817.06
7.2.20.0020.01017.16
7.2.10.0070.00417.03
7.2.00.0060.00617.90
7.1.330.0060.00916.01
7.1.320.0050.00715.96
7.1.310.0060.00615.84
7.1.300.0060.00215.96
7.1.290.0080.00515.85
7.1.280.0000.01515.70
7.1.270.0070.00515.80
7.1.260.0020.01016.03
7.1.250.0080.00615.79
7.1.200.0070.00716.06
7.1.100.0000.01718.29
7.1.70.0090.00617.25
7.1.60.0060.01519.50
7.1.50.0060.01917.11
7.1.00.0000.08022.54
7.0.200.2060.00714.89
7.0.60.0030.07320.03
7.0.50.0030.06017.91
7.0.40.0030.07020.40
7.0.30.0370.07020.23
7.0.20.0300.07720.22
7.0.10.0300.05720.27
7.0.00.0030.06720.19
5.6.280.0000.03721.03
5.6.210.0100.06320.52
5.6.200.0100.08018.18
5.6.190.0070.05720.61
5.6.180.3830.04320.45
5.6.170.0130.04320.45
5.6.160.0070.03720.46
5.6.150.0100.03718.18
5.6.140.0070.03718.24
5.6.130.0070.04718.19
5.6.120.0000.06321.15
5.6.110.0000.05721.09
5.6.100.0070.08320.88
5.6.90.0200.06020.97
5.6.80.0030.04020.51
5.6.70.0030.07720.35
5.5.350.0130.03320.41
5.5.340.0030.04317.98
5.5.330.0070.08720.25
5.5.320.0300.08020.44
5.5.310.0270.06720.41
5.5.300.0000.09017.95
5.5.290.0070.04017.95
5.5.280.0130.06320.97
5.5.270.0070.03720.95
5.5.260.0000.07720.96
5.5.250.0130.07720.47
5.5.240.0170.07020.04
5.4.450.0270.05019.48
5.4.440.0170.06019.20
5.4.430.0230.05319.70
5.4.420.0270.05319.61
5.4.410.0270.05719.07
5.4.400.0270.05019.15
5.4.390.0170.06719.15
5.4.380.0230.06019.23
5.4.370.0130.05719.15
5.4.360.0230.05318.85
5.4.350.0170.07018.98
5.4.340.0270.06019.06
5.4.320.0170.05718.84
5.4.310.0300.04319.22
5.4.300.0300.06319.14
5.4.290.0200.05318.98
5.4.280.0230.06319.17
5.4.270.0200.05019.28
5.4.260.0230.05318.81
5.4.250.0200.06319.30
5.4.240.0200.05019.13
5.4.230.0170.05319.25
5.4.220.0170.05719.01
5.4.210.0170.05319.27
5.4.200.0270.04319.13
5.4.190.0230.05718.86
5.4.180.0200.05019.28
5.4.170.0270.04719.37
5.4.160.0100.05719.13
5.4.150.0170.05719.24
5.4.140.0270.04316.60
5.4.130.0230.04716.46
5.4.120.0330.05716.46
5.4.110.0170.05316.68
5.4.100.0230.05716.30
5.4.90.0200.05016.51
5.4.80.0200.04716.64
5.4.70.0170.05716.32
5.4.60.0170.05016.56
5.4.50.0300.04316.57
5.4.40.0230.05016.59
5.4.30.0200.04716.43
5.4.20.0200.04716.23
5.4.10.0230.04716.54
5.4.00.0270.04015.79

preferences:
92.68 ms | 401 KiB | 5 Q