3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2017-01'); $end = new DateTime('2018-06'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("Y-m") . PHP_EOL; }

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.130.0100.01018.37
8.3.120.0130.00318.73
8.3.110.0070.01120.94
8.3.100.0050.00524.06
8.3.90.0030.01626.77
8.3.80.0220.00624.63
8.3.70.0250.00523.73
8.3.60.0200.01024.63
8.3.50.0110.00621.97
8.3.40.0140.00624.86
8.3.30.0150.01224.91
8.3.20.0210.00725.08
8.3.10.0180.00627.24
8.3.00.0210.00725.61
8.2.250.0080.00016.99
8.2.240.0090.00017.13
8.2.230.0060.00322.58
8.2.220.0000.01137.54
8.2.210.0070.00726.77
8.2.200.0220.00724.75
8.2.190.0210.01123.87
8.2.180.0190.00924.75
8.2.170.0220.00726.90
8.2.160.0210.01126.48
8.2.150.0220.00227.51
8.2.140.0130.00727.75
8.2.130.0130.00925.36
8.2.120.0150.00628.59
8.2.110.0190.00326.00
8.2.100.0170.00625.10
8.2.90.0160.00824.40
8.2.80.0180.00724.45
8.2.70.0190.00724.45
8.2.60.0070.00524.59
8.2.50.0150.00724.47
8.2.40.0130.00725.61
8.2.30.0160.00524.51
8.2.20.0160.00524.63
8.2.10.0150.00624.52
8.2.00.0190.00424.38
8.1.300.0090.00617.95
8.1.290.0180.00730.84
8.1.280.0220.00728.38
8.1.270.0200.00526.39
8.1.260.0190.00728.59
8.1.250.0210.00429.46
8.1.240.0200.00426.71
8.1.230.0160.01025.86
8.1.220.0180.00624.31
8.1.210.0190.00224.84
8.1.200.0120.00824.11
8.1.190.0110.00624.22
8.1.180.0070.00624.47
8.1.170.0090.00824.73
8.1.160.0140.00624.95
8.1.150.0180.00424.93
8.1.140.0170.00426.47
8.1.130.0110.00825.52
8.1.120.0150.00924.27
8.1.110.0210.00224.28
8.1.100.0160.00724.27
8.1.90.0150.00524.29
8.1.80.0130.00924.26
8.1.70.0130.01224.25
8.1.60.0220.00624.30
8.1.50.0200.00524.25
8.1.40.0180.00724.24
8.1.30.0140.01124.36
8.1.20.0190.00424.33
8.1.10.0180.00824.29
8.1.00.0150.00924.31
8.0.300.0190.00425.37
8.0.290.0130.00723.92
8.0.280.0070.00724.70
8.0.270.0120.00224.05
8.0.260.0080.00524.71
8.0.250.0080.00424.03
8.0.240.0110.00324.04
8.0.230.0110.00923.97
8.0.220.0180.00524.01
8.0.210.0150.00523.95
8.0.200.0090.01124.03
8.0.190.0160.00523.96
8.0.180.0110.01124.02
8.0.170.0100.01323.97
8.0.160.0210.00223.96
8.0.150.0230.00023.93
8.0.140.0120.01023.99
8.0.130.0190.00522.17
8.0.120.0160.00723.96
8.0.110.0200.00423.92
8.0.100.0220.00523.90
8.0.90.0230.00224.00
8.0.80.0150.00621.70
8.0.70.0080.00523.97
8.0.60.0100.00624.00
8.0.50.0070.00523.95
8.0.30.0060.01321.84
8.0.20.0180.00724.12
8.0.10.0120.00524.05
8.0.00.0130.00621.60
7.4.330.0080.00423.19
7.4.320.0170.00323.80
7.4.300.0160.00523.80
7.4.290.0200.00523.76
7.4.280.0170.00523.77
7.4.270.0190.00223.81
7.4.260.0140.00923.78
7.4.250.0150.00423.75
7.4.240.0160.00223.84
7.4.230.0170.00023.83
7.4.220.0120.00623.82
7.4.210.0120.00720.32
7.4.200.0140.00623.69
7.4.190.0140.00930.84
7.4.180.0190.00030.84
7.4.160.0120.00919.58
7.4.150.0150.01030.84
7.4.140.0130.00719.71
7.4.130.0140.00923.86
7.4.120.0120.00919.03
7.4.110.0200.00723.79
7.4.100.0110.01323.85
7.4.90.0210.00523.80
7.4.80.0210.00525.12
7.4.70.0200.00323.78
7.4.60.0210.00223.72
7.4.50.0130.00723.85
7.4.40.0140.01123.80
7.4.30.0190.01430.84
7.4.20.0220.01130.84
7.4.10.0100.01622.91
7.4.00.0110.01118.95
7.3.330.0150.00422.13
7.3.320.0200.00322.07
7.3.310.0220.00323.71
7.3.300.0140.00523.65
7.3.290.0160.00223.67
7.3.280.0090.00921.22
7.3.270.0180.00930.84
7.3.260.0110.00919.54
7.3.250.0210.00530.84
7.3.240.0130.00819.44
7.3.230.0180.00923.77
7.3.220.0250.01030.84
7.3.210.0150.01323.70
7.3.200.0180.00823.76
7.3.190.0200.00623.65
7.3.180.0180.01123.67
7.3.170.0210.00723.85
7.3.160.0260.00523.79
7.3.150.0350.00330.84
7.3.140.0180.00630.84
7.3.130.0110.00522.92
7.3.120.0080.00820.34
7.3.110.0100.00920.31
7.3.100.0160.00520.24
7.3.90.0120.00720.31
7.3.80.0120.00620.43
7.3.70.0060.01220.22
7.3.60.0130.00720.26
7.3.50.0100.00920.16
7.3.40.0120.00920.26
7.3.30.0130.00620.27
7.3.20.0190.00721.48
7.3.10.0150.00920.34
7.3.00.0150.00620.30
7.2.340.0270.00630.84
7.2.330.0170.00823.84
7.2.320.0170.00923.84
7.2.310.0170.00823.76
7.2.300.0200.00323.84
7.2.290.0200.00723.92
7.2.280.0250.00430.84
7.2.270.0210.00430.84
7.2.260.0140.01223.06
7.2.250.0100.01220.47
7.2.240.0130.00920.44
7.2.230.0150.00720.39
7.2.220.0150.00520.50
7.2.210.0140.00720.47
7.2.200.0140.00720.40
7.2.190.0140.00920.43
7.2.180.0140.00920.45
7.2.170.0150.00520.46
7.2.160.0160.00522.99
7.2.150.0180.00723.87
7.2.140.0200.00424.00
7.2.130.0190.00821.59
7.2.120.0170.00821.66
7.2.110.0190.00819.92
7.2.100.0190.00320.04
7.2.90.0200.00819.92
7.2.80.0270.00819.93
7.2.70.0190.00620.03
7.2.60.0210.00819.96
7.2.50.0210.00820.00
7.2.40.0270.00719.96
7.2.30.0250.00720.04
7.2.20.0250.00719.98
7.2.10.0210.00619.92
7.2.00.0220.00720.10
7.1.330.0120.00820.86
7.1.320.0090.00920.87
7.1.310.0150.00521.00
7.1.300.0130.00820.83
7.1.290.0100.00620.83
7.1.280.0110.00620.97
7.1.270.0100.00520.95
7.1.260.0080.00620.85
7.1.250.0130.00720.81
7.1.240.0100.00423.44
7.1.230.0100.00820.35
7.1.220.0190.00320.29
7.1.210.0190.00620.39
7.1.200.0160.00220.38
7.1.190.0190.00520.32
7.1.180.0170.00420.31
7.1.170.0130.00820.41
7.1.160.0230.00320.24
7.1.150.0400.00620.35
7.1.140.0170.01020.38
7.1.130.0210.00620.26
7.1.120.0210.00420.21
7.1.110.0160.00820.36
7.1.100.0190.00720.32
7.1.90.0210.00620.27
7.1.80.0200.00720.29
7.1.70.0190.00820.39
7.1.60.0220.01026.26
7.1.50.0240.00926.25
7.1.40.0350.00826.36
7.1.30.0280.00726.18
7.1.20.0280.00726.23
7.1.10.0320.01020.33
7.1.00.0170.00520.17
7.0.330.0100.00523.25
7.0.320.0070.00723.22
7.0.310.0060.00623.23
7.0.300.0090.00723.05
7.0.290.0100.00223.11
7.0.280.0110.00323.20
7.0.270.0080.00723.19
7.0.260.0080.00323.18
7.0.250.0080.00623.20
7.0.240.0060.00723.14
7.0.230.0070.00623.29
7.0.220.0150.00523.28
7.0.210.0090.00523.25
7.0.200.0070.00823.22
7.0.190.0080.00723.22
7.0.180.0120.00623.13
7.0.170.0120.00223.33
7.0.160.0110.00523.30
7.0.150.0200.00223.25
7.0.140.0060.00623.23
7.0.130.0070.00423.14
7.0.120.0180.00223.19
7.0.110.0080.00523.25
7.0.100.0120.00923.24
7.0.90.0140.01123.20
7.0.80.0180.00323.17
7.0.70.0120.00423.22
7.0.60.0140.00923.26
7.0.50.0110.00623.29
7.0.40.0170.00222.22
7.0.30.0160.00722.12
7.0.20.0180.00422.25
7.0.10.0100.01322.30
7.0.00.0180.00522.21
5.6.400.0190.00522.66
5.6.390.0080.00322.50
5.6.380.0110.00720.01
5.6.370.0140.00522.57
5.6.360.0120.00922.50
5.6.350.0140.00922.63
5.6.340.0110.01122.63
5.6.330.0140.00722.71
5.6.320.0200.00322.74
5.6.310.0180.00522.58
5.6.300.0150.00522.65
5.6.290.0170.00522.60
5.6.280.0150.00622.86
5.6.270.0130.00722.69
5.6.260.0110.00922.77
5.6.250.0150.00522.63
5.6.240.0120.00722.56
5.6.230.0070.00722.61
5.6.220.0090.00722.72
5.6.210.0090.00422.67
5.6.200.0110.00322.64
5.6.190.0060.00922.61
5.6.180.0080.00522.76
5.6.170.0050.00922.64
5.6.160.0070.00722.60
5.6.150.0100.00222.67
5.6.140.0130.00222.68
5.6.130.0080.00422.67
5.6.120.0090.00322.76
5.6.110.0080.00522.64
5.6.100.0090.00422.56
5.6.90.0110.01022.52
5.6.80.0140.00522.60
5.6.70.0140.00522.63
5.6.60.0150.00622.65
5.6.50.0090.00922.66
5.6.40.0170.00522.62
5.6.30.0120.00822.61
5.6.20.0160.00622.53
5.6.10.0130.00822.63
5.6.00.0120.00922.62

preferences:
27.73 ms | 403 KiB | 5 Q