3v4l.org

run code in 300+ PHP versions simultaneously
<?php $epoch = "1394031420"; $newepoch = time(); $start = new DateTime("@$epoch"); $start->modify('first day of this month'); $end = new DateTime("@$newepoch"); $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("M-DD-y") . 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)
7.3.00.0090.00616.86
7.2.130.0060.01017.18
7.2.120.0030.01016.96
7.2.110.0090.00617.30
7.2.100.0000.01517.33
7.2.90.0030.01017.12
7.2.80.0000.01017.11
7.2.70.0100.00317.31
7.2.60.0040.01117.28
7.2.50.0030.01017.26
7.2.40.0040.00417.06
7.2.30.0060.00817.28
7.2.20.0060.00917.20
7.2.10.0060.00617.17
7.2.00.0060.00718.45
7.1.250.0040.01115.90
7.1.240.0070.01015.96
7.1.230.0110.00015.73
7.1.220.0100.00316.04
7.1.210.0070.01016.07
7.1.200.0000.00915.82
7.1.190.0000.01516.20
7.1.180.0040.00715.81
7.1.170.0100.00316.04
7.1.160.0040.00815.99
7.1.150.0070.00715.91
7.1.140.0070.00315.96
7.1.130.0030.00915.90
7.1.120.0070.01016.14
7.1.110.0000.01416.16
7.1.100.0070.00717.32
7.1.90.0000.01416.09
7.1.80.0030.01015.93
7.1.70.0060.00416.87
7.1.60.0130.00417.80
7.1.50.0080.01016.62
7.1.40.0090.00615.77
7.1.30.0000.01515.78
7.1.20.0100.00316.01
7.1.10.0040.01115.93
7.1.00.0000.04519.23
7.0.330.0030.00915.70
7.0.320.0080.00615.71
7.0.310.0060.00615.57
7.0.300.0120.00315.49
7.0.290.0070.00715.77
7.0.280.0060.00615.58
7.0.270.0030.00815.62
7.0.260.0060.00915.21
7.0.250.0090.00015.54
7.0.240.0060.00615.64
7.0.230.0090.00315.58
7.0.220.0120.00315.59
7.0.210.0110.00015.66
7.0.200.0020.00916.25
7.0.190.0090.00315.68
7.0.180.0080.00015.34
7.0.170.0000.01315.77
7.0.160.0040.00815.67
7.0.150.0000.01415.67
7.0.140.0090.03618.82
7.0.130.0070.00715.59
7.0.120.0100.00315.56
7.0.110.0100.00315.69
7.0.100.0200.03817.80
7.0.90.0270.04217.89
7.0.80.0170.03517.75
7.0.70.0290.02517.69
7.0.60.0220.02317.81
7.0.50.0220.04017.92
7.0.40.0030.03116.89
7.0.30.0080.04016.91
7.0.20.0070.04716.72
7.0.10.0060.04516.88
7.0.00.0080.02716.95
5.6.380.0000.01014.41
5.6.370.0080.00014.41
5.6.360.0030.00914.68
5.6.350.0070.00314.73
5.6.340.0060.01014.29
5.6.330.0060.00614.71
5.6.320.0030.00614.35
5.6.310.0030.01014.62
5.6.300.0060.00614.82
5.6.290.0100.00314.52
5.6.280.0040.03917.76
5.6.270.0070.00714.24
5.6.260.0000.01114.55
5.6.250.0100.04017.38
5.6.240.0050.04817.63
5.6.230.0120.02417.56
5.6.220.0090.04217.44
5.6.210.0120.04217.57
5.6.200.0110.03317.84
5.6.190.0110.04117.71
5.6.180.0020.04817.76
5.6.170.0140.04117.65
5.6.160.0120.03317.73
5.6.150.0030.03017.68
5.6.140.0100.04217.58
5.6.130.0050.04317.73
5.6.120.0050.04317.80
5.6.110.0070.02417.56
5.6.100.0050.03517.85
5.6.90.0120.02317.86
5.6.80.0050.02817.27
5.6.70.0120.02617.51
5.6.60.0070.03517.34
5.6.50.0070.04317.25
5.6.40.0100.04017.26
5.6.30.0090.02817.32
5.6.20.0070.02717.39
5.6.10.0060.03017.32
5.6.00.0080.04117.31
5.5.380.0060.04315.84
5.5.370.0120.03615.81
5.5.360.0030.02915.77
5.5.350.0030.03315.80
5.5.340.0000.03816.04
5.5.330.0050.02816.06
5.5.320.0060.04515.99
5.5.310.0070.04616.05
5.5.300.0020.02716.03
5.5.290.0050.03015.98
5.5.280.0050.03916.01
5.5.270.0090.03816.06
5.5.260.0030.05016.03
5.5.250.0050.04215.79
5.5.240.0070.02515.76
5.5.230.0000.04815.77
5.5.220.0030.03815.73
5.5.210.0070.02515.62
5.5.200.0080.03815.69
5.5.190.0090.02515.63
5.5.180.0050.04015.66
5.5.170.0000.01211.18
5.5.160.0030.03315.70
5.5.150.0000.03715.68
5.5.140.0100.03815.68
5.5.130.0030.02115.70
5.5.120.0030.03815.65
5.5.110.0080.02815.74
5.5.100.0090.02915.66
5.5.90.0040.04215.65
5.5.80.0070.04515.66
5.5.70.0050.03015.69
5.5.60.0100.04015.72
5.5.50.0050.04315.63
5.5.40.0100.02715.61
5.5.30.0070.03515.63
5.5.20.0030.04515.67
5.5.10.0050.04315.70
5.5.00.0080.02815.57
5.4.450.0100.02515.32
5.4.440.0080.03515.33
5.4.430.0110.03515.33
5.4.420.0030.04615.20
5.4.410.0110.03315.30
5.4.400.0070.03914.98
5.4.390.0030.02915.07
5.4.380.0040.02414.99
5.4.370.0050.04215.13
5.4.360.0030.03215.13
5.4.350.0080.03815.11
5.4.340.0040.02615.08
5.4.330.0040.00911.21
5.4.320.0100.03315.12
5.4.310.0050.04015.08
5.4.300.0050.02715.07
5.4.290.0030.04015.14
5.4.280.0030.02615.16
5.4.270.0030.04015.14
5.4.260.0030.04015.21
5.4.250.0060.03015.07
5.4.240.0100.03215.14
5.4.230.0050.03815.15
5.4.220.0090.03115.20
5.4.210.0020.04315.20
5.4.200.0030.03915.16
5.4.190.0050.04315.10
5.4.180.0030.04315.13
5.4.170.0000.02914.97
5.4.160.0030.02715.10
5.4.150.0080.03214.98
5.4.140.0020.02613.69
5.4.130.0050.03913.80
5.4.120.0020.02313.75
5.4.110.0050.04113.72
5.4.100.0050.03913.80
5.4.90.0020.04613.78
5.4.80.0030.02213.74
5.4.70.0060.02013.77
5.4.60.0080.02813.82
5.4.50.0050.01613.70
5.4.40.0020.02413.82
5.4.30.0020.02313.70
5.4.20.0100.01713.70
5.4.10.0030.02313.68
5.4.00.0050.01913.52
5.3.290.0020.02812.83
5.3.280.0050.03812.88
5.3.270.0030.04312.88
5.3.260.0070.04412.88
5.3.250.0100.03812.88
5.3.240.0060.02012.85
5.3.230.0050.03512.80
5.3.220.0030.02312.87
5.3.210.0030.02212.85
5.3.200.0030.02312.84
5.3.190.0040.04012.83
5.3.180.0020.02712.79
5.3.170.0050.03312.80
5.3.160.0010.02312.80
5.3.150.0100.01712.85
5.3.140.0070.01812.86
5.3.130.0000.02712.87
5.3.120.0030.02212.84
5.3.110.0030.02312.78
5.3.100.0070.01712.60
5.3.90.0030.02412.51
5.3.80.0050.02212.57
5.3.70.0030.02212.57
5.3.60.0110.02812.52
5.3.50.0000.02512.57
5.3.40.0050.02412.51
5.3.30.0030.02012.53
5.3.20.0070.01512.31
5.3.10.0000.02012.30
5.3.00.0020.02412.33
5.2.170.0030.02011.08
5.2.160.0020.01811.08
5.2.150.0050.01711.17
5.2.140.0030.02111.09
5.2.130.0030.01811.15
5.2.120.0050.01411.11
5.2.110.0020.02011.06
5.2.100.0040.01611.12
5.2.90.0030.02011.14
5.2.80.0000.01911.06
5.2.70.0000.02011.06
5.2.60.0050.01711.15
5.2.50.0010.02011.09
5.2.40.0030.01611.08
5.2.30.0050.01511.00
5.2.20.0080.01211.04
5.2.10.0070.01511.07
5.2.00.0040.02710.90
5.1.60.0010.01610.86
5.1.50.0020.01610.86
5.1.40.0030.01410.86
5.1.30.0060.01210.86
5.1.20.0000.01510.86
5.1.10.0000.01710.86
5.1.00.0010.01510.86
5.0.50.0000.01310.86
5.0.40.0020.01310.86
5.0.30.0030.01810.86
5.0.20.0060.00810.86
5.0.10.0030.01010.86
5.0.00.0030.01710.86
4.4.90.0010.01010.86
4.4.80.0040.00710.86
4.4.70.0010.01010.86
4.4.60.0020.00810.86
4.4.50.0010.01010.86
4.4.40.0040.01210.86
4.4.30.0000.01110.86
4.4.20.0000.01210.86
4.4.10.0020.01310.86
4.4.00.0020.01410.86
4.3.110.0000.01010.86
4.3.100.0000.00910.86
4.3.90.0000.01210.86
4.3.80.0000.01510.86
4.3.70.0030.00810.86
4.3.60.0020.01010.86
4.3.50.0030.00810.86
4.3.40.0020.01410.86
4.3.30.0040.00510.86
4.3.20.0000.00910.86
4.3.10.0000.01110.86
4.3.00.0010.00810.86

preferences:
35.1 ms | 400 KiB | 5 Q