3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02'); $start->modify('first day of this month'); $end = new DateTime('2012-05-06'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("F") . 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.60.0070.01116.63
8.3.50.0120.00316.39
8.3.40.0150.00018.79
8.3.30.0120.00318.97
8.3.20.0040.00420.34
8.3.10.0030.00623.66
8.3.00.0080.00023.66
8.2.180.0090.00616.63
8.2.170.0110.00422.96
8.2.160.0140.00720.47
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00419.89
8.2.120.0080.00026.35
8.2.110.0070.00320.88
8.2.100.0090.00317.93
8.2.90.0030.00519.20
8.2.80.0040.00417.97
8.2.70.0060.00617.88
8.2.60.0000.00818.03
8.2.50.0030.00518.07
8.2.40.0040.00420.55
8.2.30.0040.00419.59
8.2.20.0030.00517.97
8.2.10.0000.00818.08
8.2.00.0000.00918.26
8.1.280.0070.01125.92
8.1.270.0060.01223.96
8.1.260.0000.01028.09
8.1.250.0030.00528.09
8.1.240.0030.00622.58
8.1.230.0060.00619.14
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.01017.60
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0060.00318.79
8.1.160.0040.00420.90
8.1.150.0000.00818.94
8.1.140.0000.00819.63
8.1.130.0040.00417.82
8.1.120.0060.00317.73
8.1.110.0000.00717.73
8.1.100.0040.00417.72
8.1.90.0060.00517.66
8.1.80.0070.00417.58
8.1.70.0070.00217.69
8.1.60.0020.01117.77
8.1.50.0130.00017.73
8.1.40.0050.00617.63
8.1.30.0090.00217.79
8.1.20.0080.00517.86
8.1.10.0090.00417.76
8.1.00.0110.00317.78
8.0.300.0000.00918.77
8.0.290.0000.00716.72
8.0.280.0040.00318.59
8.0.270.0000.00717.40
8.0.260.0000.00717.31
8.0.250.0000.00717.20
8.0.240.0030.00617.23
8.0.230.0080.00017.20
8.0.220.0080.00317.09
8.0.210.0070.00317.11
8.0.200.0060.00517.19
8.0.190.0070.00517.19
8.0.180.0040.00817.20
8.0.170.0060.00617.15
8.0.160.0110.00217.16
8.0.150.0090.00317.07
8.0.140.0060.00617.12
8.0.130.0100.00115.24
8.0.120.0080.00517.06
8.0.110.0080.00316.93
8.0.100.0090.00217.03
8.0.90.0080.00316.90
8.0.80.0110.00517.02
8.0.70.0020.00916.94
8.0.60.0050.00716.87
8.0.50.0080.00316.90
8.0.30.0090.01017.21
8.0.20.0120.00917.26
8.0.10.0060.00517.04
8.0.00.0110.00617.09
7.4.330.0050.00016.83
7.4.320.0030.00316.86
7.4.300.0060.00416.77
7.4.290.0030.00616.64
7.4.280.0080.00316.62
7.4.270.0050.00516.56
7.4.260.0060.00416.47
7.4.250.0070.00416.52
7.4.240.0040.00516.73
7.4.230.0050.00416.64
7.4.220.0120.00516.66
7.4.210.0060.01016.73
7.4.200.0050.00616.40
7.4.190.0000.01016.38
7.4.180.0060.00616.36
7.4.160.0060.00716.64
7.4.150.0090.00616.86
7.4.140.0090.00917.37
7.4.130.0090.00916.38
7.4.120.0090.00816.47
7.4.110.0020.01116.51
7.4.100.0120.00816.53
7.4.90.0120.00416.54
7.4.80.0090.00917.94
7.4.70.0100.00616.64
7.4.60.0130.00516.58
7.4.50.0090.00516.48
7.4.40.0100.00816.37
7.4.30.0100.00716.50
7.4.20.0070.00816.51
7.4.10.0060.01316.00
7.4.00.0050.01015.89
7.3.330.0120.00214.87
7.3.320.0080.00414.90
7.3.310.0070.00416.36
7.3.300.0050.00616.53
7.3.290.0090.00216.32
7.3.280.0050.01116.38
7.3.270.0130.00316.85
7.3.260.0090.00716.46
7.3.250.0140.00416.53
7.3.240.0080.00916.49
7.3.230.0070.01216.46
7.3.220.0090.00716.39
7.3.210.0070.00816.60
7.3.200.0120.00716.49
7.3.190.0110.00516.53
7.3.180.0080.00816.58
7.3.170.0070.00916.55
7.3.160.0080.00816.50
7.3.150.0090.00616.52
7.3.140.0100.00516.45
7.3.130.0100.01016.10
7.3.120.0050.01115.92
7.3.110.0030.01315.91
7.3.100.0080.00915.84
7.3.90.0110.00515.69
7.3.80.0100.00615.57
7.3.70.0080.00915.52
7.3.60.0060.00815.43
7.3.50.0080.00615.62
7.3.40.0080.00915.53
7.3.30.0070.00815.45
7.3.20.0370.00616.08
7.3.10.0310.00716.05
7.3.00.0380.00716.08
7.2.340.0120.00316.83
7.2.330.0090.00916.80
7.2.320.0120.00416.81
7.2.310.0090.00716.69
7.2.300.0120.00416.70
7.2.290.0110.00516.83
7.2.280.0090.00616.72
7.2.270.0070.01016.76
7.2.260.0100.00616.30
7.2.250.0110.00616.22
7.2.240.0110.00716.24
7.2.230.0120.00615.91
7.2.220.0100.00716.09
7.2.210.0080.00716.03
7.2.200.0100.00715.83
7.2.190.0060.00915.84
7.2.180.0090.00915.85
7.2.170.0090.00715.73
7.2.160.0070.00915.76
7.2.150.0350.00716.34
7.2.140.0470.00816.42
7.2.130.0380.00816.55
7.2.120.0320.00916.36
7.2.110.0280.01016.33
7.2.100.0340.00916.30
7.2.90.0260.00616.42
7.2.80.0250.00616.40
7.2.70.0280.00816.40
7.2.60.0220.00916.31
7.2.50.0260.00916.17
7.2.40.0230.00816.28
7.2.30.0440.00916.48
7.2.20.0270.00716.50
7.2.10.0210.00916.63
7.2.00.0290.00816.71
7.1.330.0150.00715.74
7.1.320.0080.00715.25
7.1.310.0050.01115.46
7.1.300.0100.00615.50
7.1.290.0090.00915.40
7.1.280.0060.01015.37
7.1.270.0290.00915.18
7.1.260.0390.00715.20
7.1.250.0310.00915.26
7.1.240.0300.00815.30
7.1.230.0310.00715.18
7.1.220.0340.00815.25
7.1.210.0390.00615.21
7.1.200.0250.00815.23
7.1.190.0230.00915.15
7.1.180.0260.00915.14
7.1.170.0230.01015.10
7.1.160.0230.00815.02
7.1.150.0220.01215.20
7.1.140.0210.01015.27
7.1.130.0210.00915.48
7.1.120.0220.01015.44
7.1.110.0250.01015.36
7.1.100.0280.00715.30
7.1.90.0210.01115.40
7.1.80.0330.00715.28
7.1.70.0200.01015.21
7.1.60.0230.01021.15
7.1.50.0260.01021.07
7.1.40.0260.00820.95
7.1.30.0260.00921.05
7.1.20.0300.00921.03
7.1.10.0210.00815.06
7.1.00.0270.00714.94
7.0.330.0400.00614.69
7.0.320.0390.00914.67
7.0.310.0330.00714.60
7.0.300.0310.00914.46
7.0.290.0340.00614.49
7.0.280.0520.00714.66
7.0.270.0230.00915.00
7.0.260.0280.00715.09
7.0.250.0280.00514.89
7.0.240.0290.00914.86
7.0.230.0220.01115.00
7.0.220.0270.01014.93
7.0.210.0220.00914.65
7.0.200.0340.00814.62
7.0.190.0270.00714.58
7.0.180.0220.01014.54
7.0.170.0250.00714.57
7.0.160.0250.00614.50
7.0.150.0240.00614.53
7.0.140.0270.00814.58
7.0.130.0280.00814.54
7.0.120.0300.01014.58
7.0.110.0150.00614.58
7.0.100.0160.00914.51
7.0.90.0190.00914.60
7.0.80.0150.00814.58
7.0.70.0230.00714.50
7.0.60.0290.00814.52
7.0.50.0160.00814.62
7.0.40.0220.00914.70
7.0.30.0540.01014.57
7.0.20.0240.00814.59
7.0.10.0210.00714.62
7.0.00.0190.00714.58
5.6.400.0130.00714.95
5.6.390.0080.01215.06
5.6.380.0110.00914.92
5.6.370.0140.00814.98
5.6.360.0120.00814.96
5.6.350.0110.01214.94
5.6.340.0100.01214.95
5.6.330.0130.00815.00
5.6.320.0100.00914.89
5.6.310.0100.01215.04
5.6.300.0120.02216.41
5.6.290.0120.02616.33
5.6.280.0140.02416.26
5.6.270.0110.02216.41
5.6.260.0130.01916.43
5.6.250.0140.02016.41
5.6.240.0120.02316.42
5.6.230.0120.02816.45
5.6.220.0120.02216.44
5.6.210.0150.02216.36
5.6.200.0150.02416.46
5.6.190.0100.02416.36
5.6.180.0140.02116.35
5.6.170.0120.02416.37
5.6.160.0120.02216.35
5.6.150.0120.02116.40
5.6.140.0170.01916.32
5.6.130.0120.02016.39
5.6.120.0150.02016.36
5.6.110.0110.02416.25
5.6.100.0090.02516.34
5.6.90.0110.02016.29
5.6.80.0130.02416.13
5.6.70.0110.02116.14
5.6.60.0150.02116.14
5.6.50.0120.02416.13
5.6.40.0130.02016.17
5.6.30.0150.02016.06
5.6.20.0140.02016.11
5.6.10.0130.02316.12
5.6.00.0120.02316.09
5.5.380.0120.02315.19
5.5.370.0100.02315.16
5.5.360.0120.02315.08
5.5.350.0130.02015.04
5.5.340.0090.02215.21
5.5.330.0120.02015.13
5.5.320.0110.02415.25
5.5.310.0090.02615.15
5.5.300.0140.02115.15
5.5.290.0100.02315.27
5.5.280.0130.02415.16
5.5.270.0100.02215.21
5.5.260.0120.02015.11
5.5.250.0110.02315.03
5.5.240.0100.02014.97
5.5.230.0120.02115.05
5.5.220.0130.02115.01
5.5.210.0090.02314.92
5.5.200.0140.01814.96
5.5.190.0130.02315.03
5.5.180.0090.02414.92
5.5.170.0100.01014.74
5.5.160.0120.02014.95
5.5.150.0110.02215.00
5.5.140.0110.02314.96
5.5.130.0120.01614.94
5.5.120.0110.02215.01
5.5.110.0130.02114.89
5.5.100.0110.02315.00
5.5.90.0110.02114.88
5.5.80.0120.01814.98
5.5.70.0090.02314.98
5.5.60.0100.02215.03
5.5.50.0100.01914.97
5.5.40.0070.02315.06
5.5.30.0110.02015.05
5.5.20.0100.02415.01
5.5.10.0110.02114.94
5.5.00.0120.02014.95

preferences:
47.06 ms | 400 KiB | 5 Q