3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2012-01-01'); $start->modify('first day of this month'); $end = new DateTime(); $end->modify('last day of next month'); $interval = DateInterval::createFromDateString('6 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { // echo $dt->format("Y-m-d") . PHP_EOL; $date[$dt->format("Y")][] = $dt->format("Y-m-d"); } print_r($date);

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.0180.00418.57
8.3.50.0100.01021.25
8.3.40.0060.01519.09
8.3.30.0090.00618.88
8.3.20.0050.00320.34
8.3.10.0080.00023.61
8.3.00.0080.00019.81
8.2.180.0070.01417.00
8.2.170.0080.00822.96
8.2.160.0070.00720.47
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0060.00317.88
8.2.110.0100.00019.39
8.2.100.0030.00917.75
8.2.90.0090.00019.48
8.2.80.0060.00317.97
8.2.70.0000.00817.88
8.2.60.0000.01518.18
8.2.50.0090.00018.07
8.2.40.0110.00319.50
8.2.30.0050.00618.29
8.2.20.0040.00417.98
8.2.10.0040.00418.31
8.2.00.0000.00818.28
8.1.280.0040.01125.92
8.1.270.0030.00520.38
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00320.88
8.1.230.0040.00917.61
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0080.00018.70
8.1.160.0000.00722.12
8.1.150.0000.00718.92
8.1.140.0000.00917.69
8.1.130.0000.00717.85
8.1.120.0030.00317.64
8.1.110.0030.00617.74
8.1.100.0040.00417.64
8.1.90.0050.00217.73
8.1.80.0000.00717.82
8.1.70.0050.00317.75
8.1.60.0050.00317.85
8.1.50.0000.00817.72
8.1.40.0000.00817.68
8.1.30.0030.00517.90
8.1.20.0060.00317.87
8.1.10.0000.00717.77
8.1.00.0070.00317.80
8.0.300.0090.00018.77
8.0.290.0050.00217.00
8.0.280.0070.00018.52
8.0.270.0050.00317.48
8.0.260.0060.00017.34
8.0.250.0000.00817.18
8.0.240.0090.00017.24
8.0.230.0000.00717.18
8.0.220.0000.00717.17
8.0.210.0040.00417.16
8.0.200.0050.00317.13
8.0.190.0040.00817.29
8.0.180.0070.00017.18
8.0.170.0000.00717.24
8.0.160.0000.00717.24
8.0.150.0040.00417.17
8.0.140.0050.00317.17
8.0.130.0000.00613.47
8.0.120.0040.00417.16
8.0.110.0030.00717.16
8.0.100.0070.00016.98
8.0.90.0000.00717.05
8.0.80.0090.01217.15
8.0.70.0070.00017.14
8.0.60.0000.00816.97
8.0.50.0000.00717.00
8.0.30.0130.00717.22
8.0.20.0100.00817.45
8.0.10.0000.00717.42
8.0.00.0080.00917.10
7.4.330.0000.00615.08
7.4.320.0070.00016.82
7.4.300.0070.00016.69
7.4.290.0080.00416.82
7.4.280.0040.00416.76
7.4.270.0000.00716.69
7.4.260.0070.00016.82
7.4.250.0070.00016.65
7.4.240.0040.00416.70
7.4.230.0070.00016.86
7.4.220.0070.01316.75
7.4.210.0120.00316.70
7.4.200.0000.00816.73
7.4.160.0030.01316.80
7.4.150.0100.00717.40
7.4.140.0170.00317.86
7.4.130.0070.01016.71
7.4.120.0110.00716.90
7.4.110.0120.01216.88
7.4.100.0090.01216.86
7.4.90.0170.00016.71
7.4.80.0170.00019.39
7.4.70.0120.00916.82
7.4.60.0130.00316.74
7.4.50.0020.00216.98
7.4.40.0070.01416.87
7.4.30.0090.00916.67
7.4.00.0100.00715.51
7.3.330.0050.00013.41
7.3.320.0020.00213.45
7.3.310.0000.00616.49
7.3.300.0000.00716.60
7.3.290.0040.01116.55
7.3.280.0090.01216.57
7.3.270.0130.00717.40
7.3.260.0140.00416.84
7.3.240.0120.00416.94
7.3.230.0090.00916.70
7.3.210.0050.01616.61
7.3.200.0100.01016.85
7.3.190.0110.00716.76
7.3.180.0060.01116.66
7.3.170.0080.00816.61
7.3.160.0040.01716.57
7.2.330.0070.01117.03
7.2.320.0090.01216.77
7.2.310.0110.00616.82
7.2.300.0100.00716.66
7.2.290.0100.00716.93
7.2.60.0030.01017.21
7.2.00.0000.01419.52
7.1.200.0080.00315.90
7.1.100.0080.00818.36
7.1.70.0000.00817.34
7.1.60.0100.01319.12
7.1.50.0110.00016.94
7.1.00.0030.07722.36
7.0.200.0070.00717.07
7.0.60.0030.06320.04
7.0.50.0070.06017.90
7.0.40.0030.04319.96
7.0.30.0230.05720.23
7.0.20.0300.08020.15
7.0.10.0100.08320.14
7.0.00.0070.05020.15
5.6.280.0000.07720.85
5.6.210.0100.07020.50
5.6.200.0030.09018.23
5.6.190.0070.05020.55
5.6.180.0170.04020.73
5.6.170.0170.06720.48
5.6.160.0100.06320.55
5.6.150.0070.04718.24
5.6.140.0070.05318.27
5.6.130.0000.07318.28
5.6.120.0070.08020.99
5.6.110.0070.08321.13
5.6.100.0100.08320.98
5.6.90.0030.07721.00
5.6.80.0070.06720.50
5.6.70.0270.07020.38
5.5.350.0330.07320.47
5.5.340.0070.08317.98
5.5.330.0070.07720.14
5.5.320.0230.07720.27
5.5.310.0130.05020.27
5.5.300.0000.04017.97
5.5.290.0030.05018.01
5.5.280.0100.03720.94
5.5.270.0030.04320.67
5.5.260.0170.07720.84
5.5.250.0170.07320.78
5.5.240.0130.08020.28
5.4.450.1000.07019.61
5.4.440.0630.07319.60
5.4.430.0500.06719.53
5.4.420.0730.06319.30
5.4.410.0800.05319.21
5.4.400.0770.05318.88
5.4.390.0870.05719.13
5.4.380.0700.07719.25
5.4.370.0800.07019.02
5.4.360.0800.05719.25
5.4.350.0870.08719.26
5.4.340.0870.06319.30
5.4.320.0730.07719.29
5.4.310.0930.06319.14
5.4.300.0600.07719.15
5.4.290.0830.07719.23
5.4.280.0970.06719.24
5.4.270.0830.08019.28
5.4.260.1000.05719.25
5.4.250.0930.07018.83
5.4.240.0830.06718.87
5.4.230.0830.06319.28
5.4.220.0830.07319.10
5.4.210.0800.06319.36
5.4.200.1030.06719.14
5.4.190.1000.06319.23
5.4.180.0870.06019.26
5.4.170.0870.06319.28
5.4.160.0870.07319.12
5.4.150.0900.06018.96
5.4.140.0700.05716.40
5.4.130.0800.06316.57
5.4.120.0800.05716.40
5.4.110.0700.05316.56
5.4.100.0670.06016.56
5.4.90.0870.06016.46
5.4.80.0930.05016.24
5.4.70.0270.03716.55
5.4.60.0270.07016.62
5.4.50.0000.07316.42
5.4.40.0030.07316.48
5.4.30.0030.04716.34
5.4.20.0030.04316.48

preferences:
44.04 ms | 401 KiB | 5 Q