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") . PHP_EOL; $newDate = strtotime('+15 days',$dt); echo $newDate->format("M-d-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.120.0110.00715.11
7.3.110.0000.01515.25
7.3.100.0040.01115.04
7.3.90.0030.01214.89
7.3.80.0090.00315.24
7.3.70.0070.01015.13
7.3.60.0040.00715.18
7.3.50.0070.00715.00
7.3.40.0090.00615.19
7.3.30.0050.00515.05
7.3.20.0030.00616.94
7.3.10.0090.00916.80
7.3.00.0100.00617.01
7.2.240.0030.01315.45
7.2.230.0120.00315.22
7.2.220.0030.01014.87
7.2.210.0090.00615.41
7.2.200.0060.01215.23
7.2.190.0070.00315.33
7.2.180.0100.00315.28
7.2.170.0090.00615.35
7.2.160.0080.00415.42
7.2.150.0080.00316.96
7.2.140.0100.00317.16
7.2.130.0080.00817.00
7.2.120.0120.00517.08
7.2.110.0110.00517.08
7.2.100.0090.00417.17
7.2.90.0080.00717.12
7.2.80.0100.00817.10
7.2.70.0090.01016.90
7.2.60.0080.00917.14
7.2.50.0080.01117.12
7.2.40.0050.00817.15
7.2.30.0070.01117.03
7.2.20.0060.00816.99
7.2.10.0080.01117.02
7.2.00.0010.01318.12
7.1.330.0090.00616.14
7.1.320.0060.00616.10
7.1.310.0040.01415.93
7.1.300.0000.01116.07
7.1.290.0040.01116.14
7.1.280.0030.00616.04
7.1.270.0000.00815.77
7.1.260.0100.00315.80
7.1.250.0050.01016.06
7.1.240.0090.00916.01
7.1.230.0090.00616.00
7.1.220.0130.00315.67
7.1.210.0130.00315.86
7.1.200.0070.00716.08
7.1.190.0060.00915.93
7.1.180.0070.01516.07
7.1.170.0130.00615.96
7.1.160.0170.00016.00
7.1.150.0140.00515.88
7.1.140.0110.00715.91
7.1.130.0150.00616.16
7.1.120.0110.00815.93
7.1.110.0120.00616.01
7.1.100.0090.00717.26
7.1.90.0170.00716.00
7.1.80.0070.01015.90
7.1.70.0050.00716.46
7.1.60.0130.01117.81
7.1.50.0110.01116.48
7.1.40.0110.00716.06
7.1.30.0030.01015.90
7.1.20.0090.00916.00
7.1.10.0170.00016.04
7.1.00.0080.04018.99
7.0.330.0110.00715.38
7.0.320.0070.01115.43
7.0.310.0100.00715.37
7.0.300.0100.00315.51
7.0.290.0130.00315.32
7.0.280.0070.01015.12
7.0.270.0100.00715.41
7.0.260.0120.00615.03
7.0.250.0070.01115.11
7.0.240.0030.01415.18
7.0.230.0170.00015.14
7.0.220.0150.00315.25
7.0.210.0110.00415.50
7.0.200.0100.00216.21
7.0.190.0090.00915.26
7.0.180.0130.00315.47
7.0.170.0080.00815.55
7.0.160.0070.00715.63
7.0.150.0070.00715.51
7.0.140.0070.03618.48
7.0.130.0090.00615.75
7.0.120.0070.01015.39
7.0.110.0030.01015.51
7.0.100.0100.02317.79
7.0.90.0120.03917.63
7.0.80.0100.02017.64
7.0.70.0050.02317.56
7.0.60.0030.03017.68
7.0.50.0140.01918.01
7.0.40.0020.02516.78
7.0.30.0040.02416.82
7.0.20.0030.02816.84
7.0.10.0060.02516.76
7.0.00.0000.03016.69
5.6.380.0070.00014.18
5.6.370.0040.01114.20
5.6.360.0040.01214.41
5.6.350.0030.01014.59
5.6.340.0060.01014.58
5.6.330.0040.01114.21
5.6.320.0100.00614.59
5.6.310.0030.01014.29
5.6.300.0030.00614.33
5.6.290.0030.01014.52
5.6.280.0030.04317.72
5.6.270.0070.00714.22
5.6.260.0070.00714.30
5.6.250.0070.02817.28
5.6.240.0100.01717.40
5.6.230.0050.04617.47
5.6.220.0040.02517.64
5.6.210.0000.02717.55
5.6.200.0040.03117.80
5.6.190.0030.02517.79
5.6.180.0080.02517.63
5.6.170.0030.02817.76
5.6.160.0080.02017.64
5.6.150.0030.02517.58
5.6.140.0050.02517.87
5.6.130.0050.02517.71
5.6.120.0030.02717.57
5.6.110.0060.02317.64
5.6.100.0110.02017.53
5.6.90.0040.02517.71
5.6.80.0050.02317.25
5.6.70.0080.04317.33
5.6.60.0050.02817.34
5.6.50.0080.03717.27
5.6.40.0070.02217.33
5.6.30.0000.04817.32
5.6.20.0100.03317.26
5.6.10.0090.03317.25
5.6.00.0050.04617.34
5.5.380.0020.02116.02
5.5.370.0070.04215.87
5.5.360.0060.02015.94
5.5.350.0070.02015.65
5.5.340.0050.02215.93
5.5.330.0030.02215.91
5.5.320.0030.02315.99
5.5.310.0070.02316.04
5.5.300.0040.02316.03
5.5.290.0070.02316.07
5.5.280.0030.02315.84
5.5.270.0050.02715.73
5.5.260.0020.02515.99
5.5.250.0050.02415.80
5.5.240.0030.04015.57
5.5.230.0060.04315.72
5.5.220.0100.03715.73
5.5.210.0030.02415.48
5.5.200.0030.04115.66
5.5.190.0040.04415.65
5.5.180.0050.02515.71
5.5.170.0070.00411.13
5.5.160.0080.02315.71
5.5.150.0020.02615.66
5.5.140.0060.02515.67
5.5.130.0060.02815.68
5.5.120.0110.01915.68
5.5.110.0060.04315.58
5.5.100.0080.02915.58
5.5.90.0070.02015.62
5.5.80.0030.02515.67
5.5.70.0110.03815.43
5.5.60.0120.03415.53
5.5.50.0050.03615.62
5.5.40.0040.02215.62
5.5.30.0070.02215.38
5.5.20.0060.02515.54
5.5.10.0040.02415.52
5.5.00.0120.04015.50
5.4.450.0110.02715.25
5.4.440.0050.02315.28
5.4.430.0070.02415.28
5.4.420.0130.01615.17
5.4.410.0060.02215.18
5.4.400.0140.02615.13
5.4.390.0090.04215.07
5.4.380.0090.04215.11
5.4.370.0110.03515.18
5.4.360.0090.03214.83
5.4.350.0040.04314.92
5.4.340.0110.01615.06
5.4.330.0110.00411.11
5.4.320.0060.02614.91
5.4.310.0050.03014.88
5.4.300.0050.03215.26
5.4.290.0070.03615.15
5.4.280.0110.04015.06
5.4.270.0090.03815.01
5.4.260.0080.02315.07
5.4.250.0030.02314.93
5.4.240.0120.03715.10
5.4.230.0100.02814.92
5.4.220.0090.03715.01
5.4.210.0070.02115.20
5.4.200.0090.02614.95
5.4.190.0070.02014.88
5.4.180.0070.03615.04
5.4.170.0090.02514.90
5.4.160.0080.03315.03
5.4.150.0060.02015.07
5.4.140.0060.03813.75
5.4.130.0070.04013.69
5.4.120.0130.03313.73
5.4.110.0040.04213.82
5.4.100.0080.03313.84
5.4.90.0030.03813.70
5.4.80.0070.01713.74
5.4.70.0030.02913.71
5.4.60.0090.01513.71
5.4.50.0050.03813.62
5.4.40.0030.02313.68
5.4.30.0050.02013.70
5.4.20.0020.04313.67
5.4.10.0040.02213.52
5.4.00.0030.03513.37
5.3.290.0060.02912.69
5.3.280.0090.04012.68
5.3.270.0080.01812.64
5.3.260.0090.02212.60
5.3.250.0050.02012.63
5.3.240.0060.04112.63
5.3.230.0000.04712.57
5.3.220.0120.03412.55
5.3.210.0030.04212.56
5.3.200.0050.04012.56
5.3.190.0050.04012.56
5.3.180.0080.02012.57
5.3.170.0080.02712.60
5.3.160.0140.03312.63
5.3.150.0080.04012.66
5.3.140.0030.02312.57
5.3.130.0090.03512.63
5.3.120.0120.03312.62
5.3.110.0040.04312.61
5.3.100.0080.03012.30
5.3.90.0050.02112.36
5.3.80.0060.02012.34
5.3.70.0050.03212.25
5.3.60.0050.03812.33
5.3.50.0060.01812.26
5.3.40.0060.02212.33
5.3.30.0070.02612.29
5.3.20.0040.02212.09
5.3.10.0070.01812.15
5.3.00.0030.03512.17
5.2.170.0040.01810.92
5.2.160.0080.03010.95
5.2.150.0020.02610.89
5.2.140.0070.03210.94
5.2.130.0050.01710.90
5.2.120.0020.01810.82
5.2.110.0090.02410.83
5.2.100.0060.01710.89
5.2.90.0050.02710.90
5.2.80.0040.01510.81
5.2.70.0020.01710.82
5.2.60.0100.02210.85
5.2.50.0020.03010.86
5.2.40.0080.03310.78
5.2.30.0020.02110.74
5.2.20.0050.01810.76
5.2.10.0020.02010.77
5.2.00.0040.03310.71
5.1.60.0070.02010.61
5.1.50.0040.01410.61
5.1.40.0030.01310.61
5.1.30.0040.02810.61
5.1.20.0040.01410.61
5.1.10.0020.02910.61
5.1.00.0050.02610.61
5.0.50.0050.02310.61
5.0.40.0070.00710.61
5.0.30.0020.02510.61
5.0.20.0030.00910.61
5.0.10.0020.01710.61
5.0.00.0020.01710.61
4.4.90.0000.01210.61
4.4.80.0010.02110.61
4.4.70.0010.01310.61
4.4.60.0020.01010.61
4.4.50.0070.01010.61
4.4.40.0020.02210.61
4.4.30.0000.01110.61
4.4.20.0000.02210.61
4.4.10.0020.01610.61
4.4.00.0040.01610.61
4.3.110.0050.01210.61
4.3.100.0000.01010.61
4.3.90.0040.00510.61
4.3.80.0040.01210.61
4.3.70.0020.00710.61
4.3.60.0000.02110.61
4.3.50.0040.01710.61
4.3.40.0000.01510.61
4.3.30.0000.02010.61
4.3.20.0020.01410.61
4.3.10.0030.01310.61
4.3.00.0020.00910.61

preferences:
36.96 ms | 401 KiB | 5 Q