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-d-y"); echo strtotime(date("M-d-y", $dt) . " +15 days"); }

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.4.10.0070.01015.20
7.4.00.0080.00815.22
7.3.130.0040.01415.30
7.3.120.0090.00915.15
7.3.110.0100.00715.22
7.3.100.0020.01615.25
7.3.90.0040.01015.10
7.3.80.0030.01015.06
7.3.70.0050.00915.03
7.3.60.0060.01115.03
7.3.50.0090.00315.07
7.3.40.0030.01215.00
7.3.30.0090.00714.98
7.3.20.0110.00116.83
7.3.10.0040.00817.08
7.3.00.0050.00616.77
7.2.260.0070.01115.24
7.2.250.0040.01415.21
7.2.240.0060.01215.39
7.2.230.0020.01415.41
7.2.220.0050.01015.38
7.2.210.0060.00615.47
7.2.200.0070.00915.37
7.2.190.0050.01115.19
7.2.180.0070.00715.12
7.2.170.0050.00815.33
7.2.160.0030.01215.31
7.2.150.0050.00517.20
7.2.140.0000.00917.15
7.2.130.0040.01117.05
7.2.120.0090.00617.36
7.2.110.0140.00016.89
7.2.100.0070.00317.22
7.2.90.0060.00917.02
7.2.80.0070.00716.93
7.2.70.0120.00017.00
7.2.60.0040.01117.13
7.2.50.0100.00717.27
7.2.40.0060.00917.28
7.2.30.0030.01017.32
7.2.20.0000.01016.86
7.2.10.0060.01017.05
7.2.00.0030.01018.52
7.1.330.0040.01015.99
7.1.320.0080.00715.99
7.1.310.0030.01015.93
7.1.300.0100.00415.78
7.1.290.0080.00516.07
7.1.280.0070.00915.85
7.1.270.0050.00715.86
7.1.260.0100.00315.96
7.1.250.0070.00316.10
7.1.240.0040.00416.02
7.1.230.0040.00715.91
7.1.220.0030.00916.09
7.1.210.0100.00716.09
7.1.200.0020.01215.96
7.1.190.0060.00316.11
7.1.180.0030.00716.11
7.1.170.0110.00415.98
7.1.160.0110.00315.65
7.1.150.0000.01215.98
7.1.140.0070.00715.95
7.1.130.0030.01016.16
7.1.120.0070.00416.06
7.1.110.0030.01016.16
7.1.100.0040.01017.12
7.1.90.0030.01016.23
7.1.80.0030.00916.17
7.1.70.0060.00516.69
7.1.60.0070.01017.94
7.1.50.0050.01116.65
7.1.40.0030.01016.07
7.1.30.0000.01215.84
7.1.20.0060.00315.86
7.1.10.0080.00315.79
7.1.00.0040.04419.28
7.0.330.0100.00315.59
7.0.320.0030.01215.56
7.0.310.0040.00415.70
7.0.300.0070.00715.53
7.0.290.0080.00815.36
7.0.280.0000.01415.73
7.0.270.0100.00315.25
7.0.260.0090.00915.52
7.0.250.0030.00915.63
7.0.240.0080.00315.66
7.0.230.0070.00415.56
7.0.220.0060.00615.71
7.0.210.0000.01315.57
7.0.200.0070.00316.11
7.0.190.0090.00615.66
7.0.180.0070.00715.67
7.0.170.0080.00315.77
7.0.160.0030.01015.59
7.0.150.0050.00315.57
7.0.140.0060.03818.91
7.0.130.0000.01215.49
7.0.120.0000.01215.50
7.0.110.0030.01015.45
7.0.100.0250.04717.85
7.0.90.0370.04217.86
7.0.80.0270.04517.85
7.0.70.0200.04117.66
7.0.60.0270.04717.77
7.0.50.0220.04318.11
7.0.40.0030.02816.76
7.0.30.0080.04516.81
7.0.20.0040.02816.74
7.0.10.0030.04616.79
7.0.00.0040.03916.95
5.6.400.0040.00414.35
5.6.390.0100.00714.68
5.6.380.0070.01014.67
5.6.370.0040.00914.42
5.6.360.0030.01214.30
5.6.350.0090.00614.29
5.6.340.0090.00614.63
5.6.330.0090.00314.69
5.6.320.0000.01414.77
5.6.310.0000.01414.70
5.6.300.0000.01414.24
5.6.290.0040.01114.55
5.6.280.0080.03717.65
5.6.270.0080.00414.40
5.6.260.0030.00914.82
5.6.250.0020.02917.72
5.6.240.0050.03717.57
5.6.230.0100.04317.44
5.6.220.0000.04817.58
5.6.210.0090.02517.51
5.6.200.0050.04417.64
5.6.190.0090.04217.71
5.6.180.0030.04917.71
5.6.170.0060.03917.59
5.6.160.0080.04117.73
5.6.150.0120.03817.80
5.6.140.0080.04417.65
5.6.130.0070.02817.79
5.6.120.0100.03317.75
5.6.110.0050.04317.66
5.6.100.0150.03517.81
5.6.90.0080.02817.82
5.6.80.0130.03817.44
5.6.70.0080.04117.35
5.6.60.0070.04017.35
5.6.50.0060.04417.49
5.6.40.0040.03117.29
5.6.30.0050.04117.48
5.6.20.0100.04017.41
5.6.10.0020.03917.39
5.6.00.0050.04017.45
5.5.380.0100.04217.36
5.5.370.0100.03817.39
5.5.360.0130.04017.47
5.5.350.0100.02217.43
5.5.340.0140.03517.51
5.5.330.0050.04517.54
5.5.320.0070.02517.54
5.5.310.0080.04017.62
5.5.300.0120.04217.61
5.5.290.0050.04517.57
5.5.280.0070.03817.49
5.5.270.0050.04517.58
5.5.260.0080.04417.70
5.5.250.0080.03517.56
5.5.240.0080.02517.24
5.5.230.0080.02717.28
5.5.220.0070.04117.46
5.5.210.0110.03717.35
5.5.200.0080.04317.32
5.5.190.0020.03317.26
5.5.180.0030.02617.38
5.5.170.0130.00314.53
5.5.160.0060.03317.19
5.5.150.0020.04817.43
5.5.140.0120.03717.20
5.5.130.0030.04617.08
5.5.120.0120.03717.21
5.5.110.0100.02217.34
5.5.100.0020.04417.30
5.5.90.0030.04317.24
5.5.80.0050.04417.21
5.5.70.0080.02717.26
5.5.60.0080.03817.07
5.5.50.0070.02717.25
5.5.40.0100.03817.18
5.5.30.0120.03517.31
5.5.20.0050.03917.23
5.5.10.0090.04417.17
5.5.00.0080.04217.28
5.4.450.0070.04316.00
5.4.440.0050.04416.04
5.4.430.0060.04216.07
5.4.420.0100.04015.96
5.4.410.0070.04215.86
5.4.400.0020.04215.88
5.4.390.0060.04015.78
5.4.380.0030.04415.84
5.4.370.0090.03115.84
5.4.360.0060.04315.84
5.4.350.0050.02115.84
5.4.340.0050.03815.91
5.4.330.0000.01212.71
5.4.320.0050.02115.88
5.4.310.0030.02015.88
5.4.300.0070.04015.88
5.4.290.0050.04215.85
5.4.280.0000.04215.88
5.4.270.0030.02015.89
5.4.260.0020.04115.89
5.4.250.0050.03815.87
5.4.240.0080.04015.82
5.4.230.0070.03715.90
5.4.220.0080.03615.94
5.4.210.0050.02315.82
5.4.200.0030.03715.96
5.4.190.0070.04015.74
5.4.180.0080.04015.88
5.4.170.0080.04315.91
5.4.160.0050.04215.79
5.4.150.0030.04315.75
5.4.140.0050.03314.49
5.4.130.0080.03714.53
5.4.120.0070.03814.54
5.4.110.0030.04114.58
5.4.100.0020.02614.62
5.4.90.0030.04114.51
5.4.80.0050.04014.56
5.4.70.0070.03514.54
5.4.60.0050.03814.48
5.4.50.0020.04214.54
5.4.40.0070.04014.52
5.4.30.0050.03514.47
5.4.20.0070.03714.45
5.4.10.0020.02814.50
5.4.00.0050.01814.23
5.3.290.0030.04113.61
5.3.280.0000.04413.63
5.3.270.0030.02913.65
5.3.260.0050.03013.64
5.3.250.0080.03913.57
5.3.240.0110.03313.65
5.3.230.0050.04313.63
5.3.220.0050.02413.57
5.3.210.0070.04013.63
5.3.200.0050.04113.56
5.3.190.0070.02813.64
5.3.180.0050.03913.64
5.3.170.0020.03813.62
5.3.160.0040.03213.54
5.3.150.0020.03013.63
5.3.140.0050.04613.63
5.3.130.0020.02513.63
5.3.120.0080.03313.60
5.3.110.0020.03913.62
5.3.100.0020.04513.36
5.3.90.0050.04013.36
5.3.80.0100.03013.33
5.3.70.0060.03813.34
5.3.60.0080.03313.35
5.3.50.0070.03413.26
5.3.40.0070.03713.29
5.3.30.0070.03513.30
5.3.20.0030.03913.19
5.3.10.0070.03013.13
5.3.00.0030.02113.10
5.2.170.0000.06011.14
5.2.160.0100.06311.13
5.2.150.0070.06711.14
5.2.140.0130.03011.06
5.2.130.0070.03711.05
5.2.120.0000.03010.92
5.2.110.0030.03011.11
5.2.100.0130.03311.05
5.2.90.0000.03011.02
5.2.80.0070.03010.96
5.2.70.0000.04711.09
5.2.60.0000.03310.91
5.2.50.0000.03310.80
5.2.40.0000.03310.96
5.2.30.0000.03010.91
5.2.20.0030.03010.98
5.2.10.0030.02710.99
5.2.00.0070.04310.64
5.1.60.0000.02310.34
5.1.50.0000.02710.34
5.1.40.0070.02010.34
5.1.30.0030.02710.37
5.1.20.0000.02710.39
5.1.10.0000.03010.34
5.1.00.0000.02310.34
5.0.50.0030.02010.34
5.0.40.0000.03310.34
5.0.30.0030.04710.34
5.0.20.0030.01310.34
5.0.10.0000.02010.34
5.0.00.0000.03310.34
4.4.90.0030.01310.34
4.4.80.0070.01010.34
4.4.70.0030.01710.34
4.4.60.0000.01710.34
4.4.50.0000.01710.34
4.4.40.0000.02710.34
4.4.30.0000.01310.34
4.4.20.0030.02310.34
4.4.10.0030.02310.34
4.4.00.0000.02310.34
4.3.110.0000.02710.34
4.3.100.0000.03010.34
4.3.90.0000.01710.34
4.3.80.0000.03710.34
4.3.70.0030.01710.34
4.3.60.0030.01310.34
4.3.50.0030.01310.34
4.3.40.0030.03710.34
4.3.30.0000.01710.34
4.3.20.0030.01310.34
4.3.10.0000.01710.34
4.3.00.0000.02010.34

preferences:
39.58 ms | 401 KiB | 5 Q