3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime('first Monday of this month'); echo $dt->format('W'); $month = "10"; $year = "2014"; $beg = (int) date('W', strtotime("first monday of $year-$month")); $end = (int) date('W', strtotime("last monday of $year-$month")); print(join(', ', range($beg, $end)));

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.0110.01118.36
8.3.50.0100.01121.33
8.3.40.0150.00618.57
8.3.30.0090.00619.08
8.3.20.0040.00420.20
8.3.10.0050.00320.79
8.3.00.0080.00019.51
8.2.180.0070.00718.78
8.2.170.0070.01022.96
8.2.160.0100.00320.56
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00322.22
8.2.110.0060.00322.29
8.2.100.0120.00018.09
8.2.90.0040.00419.28
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0060.00318.16
8.2.50.0050.00318.07
8.2.40.0090.00018.41
8.2.30.0070.00019.30
8.2.20.0070.00017.81
8.2.10.0080.00018.26
8.2.00.0040.00417.86
8.1.280.0110.00725.92
8.1.270.0090.00023.95
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.85
8.1.230.0120.00019.28
8.1.220.0000.00917.91
8.1.210.0040.00418.77
8.1.200.0050.00517.38
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0100.00018.50
8.1.160.0050.00222.07
8.1.150.0070.00018.93
8.1.140.0040.00417.55
8.1.130.0030.00318.00
8.1.120.0000.00717.69
8.1.110.0040.00417.64
8.1.100.0040.00317.57
8.1.90.0110.00017.66
8.1.80.0070.00417.71
8.1.70.0030.00317.59
8.1.60.0030.00617.72
8.1.50.0050.00317.64
8.1.40.0000.00817.76
8.1.30.0050.00317.86
8.1.20.0080.00017.75
8.1.10.0070.00017.73
8.1.00.0020.00517.66
8.0.300.0000.00719.33
8.0.290.0070.00017.00
8.0.280.0000.00718.55
8.0.270.0030.00317.39
8.0.260.0000.00617.34
8.0.250.0050.00217.19
8.0.240.0030.00317.05
8.0.230.0030.00317.24
8.0.220.0030.00317.02
8.0.210.0000.00717.17
8.0.200.0000.00717.22
8.0.190.0030.00317.23
8.0.180.0000.00717.21
8.0.170.0040.00417.08
8.0.160.0070.00017.11
8.0.150.0040.00417.15
8.0.140.0030.00317.13
8.0.130.0000.00613.46
8.0.120.0000.00817.10
8.0.110.0040.00417.15
8.0.100.0000.00717.09
8.0.90.0050.00217.06
8.0.80.0100.00617.07
8.0.70.0040.00417.19
8.0.60.0040.00417.00
8.0.50.0050.00217.19
8.0.30.0090.00917.43
8.0.20.0080.01117.40
8.0.10.0020.00517.29
8.0.00.0140.00717.03
7.4.330.0030.00315.14
7.4.320.0060.00016.70
7.4.300.0000.00716.75
7.4.290.0050.00216.77
7.4.280.0030.00516.79
7.4.270.0070.00016.62
7.4.260.0000.00716.69
7.4.250.0000.00816.75
7.4.240.0030.00516.76
7.4.230.0030.00316.58
7.4.220.0090.00916.68
7.4.210.0100.00316.73
7.4.200.0030.00516.68
7.4.160.0070.01616.80
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0070.01216.74
7.4.120.0100.00916.81
7.4.110.0130.00916.56
7.4.100.0100.00716.91
7.4.90.0070.01016.82
7.4.80.0120.00618.80
7.4.70.0070.01016.88
7.4.60.0090.00616.82
7.4.50.0000.00816.55
7.4.40.0100.00616.77
7.4.30.0060.00916.75
7.4.00.0060.00914.84
7.3.330.0030.00313.20
7.3.320.0000.00613.30
7.3.310.0040.00416.60
7.3.300.0070.00016.45
7.3.290.0100.00316.48
7.3.280.0080.00816.43
7.3.270.0140.00317.40
7.3.260.0150.00616.86
7.3.250.0180.00016.47
7.3.240.0030.01316.38
7.3.230.0100.00616.52
7.3.210.0160.00316.50
7.3.200.0130.01019.39
7.3.190.0110.00716.66
7.3.180.0090.00616.72
7.3.170.0120.00916.71
7.3.160.0170.00316.64
7.3.10.0120.00416.85
7.3.00.0100.00716.34
7.2.330.0140.00916.93
7.2.320.0070.01016.80
7.2.310.0120.00616.53
7.2.300.0080.00816.76
7.2.290.0060.01016.90
7.2.130.0110.00716.52
7.2.120.0110.00616.94
7.2.110.0080.00816.98
7.2.100.0060.01016.76
7.2.90.0170.01316.81
7.2.80.0150.00616.83
7.2.70.0130.01117.12
7.2.60.0070.00916.98
7.2.50.0210.00617.03
7.2.40.0090.01116.93
7.2.30.0290.00816.92
7.2.20.0110.00616.82
7.2.10.0090.00816.79
7.2.00.0120.00517.01
7.1.250.0080.00715.50
7.1.230.0670.00716.02
7.1.220.0150.00015.76
7.1.210.0150.00315.69
7.1.200.0070.00815.80
7.1.190.0080.00415.84
7.1.180.0110.00815.71
7.1.170.0160.00015.71
7.1.160.0200.00015.99
7.1.150.0060.00915.82
7.1.140.0300.00716.06
7.1.130.0260.00016.07
7.1.120.0120.00316.03
7.1.110.0070.00715.88
7.1.100.0160.00015.99
7.1.90.0120.00015.87
7.1.80.0270.00016.20
7.1.70.0020.01016.56
7.1.60.0130.01017.68
7.1.50.0080.00916.51
7.1.40.0110.00816.28
7.1.30.0050.01816.23
7.1.20.0190.00016.14
7.1.10.0120.00616.09
7.1.00.0070.04219.28
7.0.310.0090.00315.42
7.0.300.0120.00415.25
7.0.290.0070.00715.71
7.0.280.0090.00915.32
7.0.270.0100.00315.63
7.0.260.0090.00615.69
7.0.250.0130.00315.47
7.0.240.0100.00515.76
7.0.230.0100.00215.59
7.0.220.0070.01115.57
7.0.210.0000.01515.75
7.0.200.0110.00816.37
7.0.190.0350.00315.56
7.0.180.0070.00715.63
7.0.170.0090.00315.48
7.0.160.0040.01215.37
7.0.150.0170.00015.37
7.0.140.0040.04218.86
7.0.130.0040.01215.31
7.0.120.0140.00315.41
7.0.110.0080.00815.51
7.0.100.0110.00415.63
7.0.90.0090.00615.57
7.0.80.0080.04617.76
7.0.70.0050.03217.57
7.0.60.0350.03418.08
7.0.50.0170.04118.31
7.0.40.0150.04217.00
7.0.30.0110.03017.21
7.0.20.0150.04617.09
7.0.10.0100.02717.21
7.0.00.0090.04517.19
5.6.380.0050.00814.26
5.6.370.0040.00914.46
5.6.360.0160.00014.79
5.6.350.0060.00914.71
5.6.340.0120.00314.72
5.6.330.0090.00614.57
5.6.320.0080.00814.34
5.6.310.0100.00314.70
5.6.300.0090.00414.40
5.6.290.0070.00714.50
5.6.280.0080.03517.87
5.6.270.0060.00914.70
5.6.260.0160.00314.20
5.6.250.0180.00014.30
5.6.240.0130.00714.39
5.6.230.0080.04617.57
5.6.220.0080.03217.46
5.6.210.0030.04517.53
5.6.200.0100.03517.59
5.6.190.0110.02417.66
5.6.180.0080.04317.84
5.6.170.0100.04517.71
5.6.160.0100.04317.89
5.6.150.0070.04417.79
5.6.140.0100.02717.74
5.6.130.0100.02117.66
5.6.120.0130.02917.78
5.6.110.0150.04017.74
5.6.100.0110.04217.74
5.6.90.0080.04317.69
5.6.80.0110.04117.33
5.6.70.0090.04117.48
5.6.60.0090.03617.40
5.6.50.0130.03817.41
5.6.40.0130.04017.32
5.6.30.0120.03517.36
5.6.20.0130.03517.28
5.6.10.0080.03517.30
5.6.00.0140.02517.40
5.5.380.0060.00312.79
5.5.370.0060.04316.62
5.5.360.0070.02616.56
5.5.350.0100.02716.61
5.5.340.0050.04516.83
5.5.330.0100.03316.82
5.5.320.0080.04716.85
5.5.310.0120.02116.81
5.5.300.0050.04416.84
5.5.290.0060.02616.82
5.5.280.0070.03716.83
5.5.270.0090.03416.85
5.5.260.0030.04716.82
5.5.250.0070.04516.68
5.5.240.0120.03016.52
5.5.230.0110.03516.47
5.5.220.0090.02516.50
5.5.210.0090.04116.52
5.5.200.0040.04116.45
5.5.190.0130.04116.39
5.5.180.0060.04216.48
5.5.170.0140.00014.09
5.5.160.0080.04216.46
5.5.150.0070.04316.45
5.5.140.0100.03316.50
5.5.130.0050.03916.43
5.5.120.0090.03816.48
5.5.110.0100.02116.50
5.5.100.0060.04216.42
5.5.90.0070.04216.47
5.5.80.0090.03816.41
5.5.70.0150.03116.37
5.5.60.0090.04216.35
5.5.50.0050.04316.42
5.5.40.0070.04316.43
5.5.30.0140.03516.46
5.5.20.0110.02616.35
5.5.10.0050.03816.45
5.5.00.0100.02516.45
5.4.450.0090.03915.95
5.4.440.0050.04616.11
5.4.430.0120.03015.95
5.4.420.0110.03915.96
5.4.410.0050.04416.05
5.4.400.0080.04015.91
5.4.390.0030.04215.93
5.4.380.0070.04315.93
5.4.370.0090.03815.94
5.4.360.0090.04015.94
5.4.350.0080.04115.91
5.4.340.0070.04016.01
5.4.330.0100.00612.79
5.4.320.0080.04015.87
5.4.310.0050.04815.93
5.4.300.0100.03515.88
5.4.290.0090.03515.90
5.4.280.0090.04015.94
5.4.270.0090.02516.01
5.4.260.0050.04215.93
5.4.250.0080.03515.78
5.4.240.0120.03515.86
5.4.230.0100.03016.00
5.4.220.0050.03915.90
5.4.210.0040.04015.87
5.4.200.0080.04215.92
5.4.190.0110.03315.88
5.4.180.0110.03915.93
5.4.170.0130.03716.01
5.4.160.0120.03515.90
5.4.150.0120.02215.93
5.4.140.0100.02114.60
5.4.130.0080.02514.48
5.4.120.0060.02414.56
5.4.110.0080.03214.57
5.4.100.0040.02214.58
5.4.90.0050.02014.57
5.4.80.0060.01814.59
5.4.70.0070.01814.58
5.4.60.0120.01614.58
5.4.50.0050.04214.49
5.4.40.0070.01714.62
5.4.30.0090.02214.51
5.4.20.0030.03414.58
5.4.10.0060.02014.54
5.4.00.0040.04314.25
5.3.290.0120.03813.65
5.3.280.0020.04613.63
5.3.270.0140.02013.70
5.3.260.0100.02613.70
5.3.250.0100.02013.67
5.3.240.0080.02013.70
5.3.230.0050.02313.67
5.3.220.0070.02113.67
5.3.210.0020.02413.68
5.3.200.0020.02313.61
5.3.190.0060.02513.66
5.3.180.0020.02313.66
5.3.170.0040.02313.65
5.3.160.0050.03013.61
5.3.150.0030.02313.65
5.3.140.0050.01913.59
5.3.130.0070.01813.64
5.3.120.0120.01713.59
5.3.110.0050.02213.66
5.3.100.0050.02113.41
5.3.90.0090.01613.33
5.3.80.0100.01813.40
5.3.70.0050.03513.33
5.3.60.0070.03313.39
5.3.50.0030.03313.25
5.3.40.0040.02313.34
5.3.30.0070.03513.36
5.3.20.0070.01513.22
5.3.10.0070.02913.20
5.3.00.0060.02913.14
5.2.170.0050.02811.91
5.2.160.0090.03111.97
5.2.150.0020.01812.01
5.2.140.0020.01912.03
5.2.130.0020.01911.87
5.2.120.0040.02311.95
5.2.110.0050.01511.89
5.2.100.0030.01811.95
5.2.90.0020.01612.01
5.2.80.0030.01611.89
5.2.70.0040.01711.89
5.2.60.0000.02111.98
5.2.50.0060.01611.90
5.2.40.0060.02011.94
5.2.30.0100.01011.81
5.2.20.0080.01511.88
5.2.10.0040.02111.88
5.2.00.0040.01811.75
5.1.60.0030.01411.38
5.1.50.0060.01211.42
5.1.40.0060.01811.38
5.1.30.0030.01611.52
5.1.20.0070.01211.58
5.1.10.0030.02211.46
5.1.00.0040.01611.42
5.0.50.0030.01210.69
5.0.40.0050.01010.54
5.0.30.0030.01610.55
5.0.20.0040.01010.44
5.0.10.0030.01610.52
5.0.00.0030.01510.53
4.4.90.0030.00810.04
4.4.80.0000.02010.04
4.4.70.0020.00910.04
4.4.60.0020.01010.04
4.4.50.0000.01110.04
4.4.40.0010.01510.04
4.4.30.0060.01710.04
4.4.20.0000.01310.04
4.4.10.0060.00710.04
4.4.00.0000.01710.04
4.3.110.0010.00910.04
4.3.100.0050.00810.04
4.3.90.0030.01310.04
4.3.80.0050.01010.04
4.3.70.0020.00810.04
4.3.60.0030.01010.04
4.3.50.0030.01010.04
4.3.40.0000.01710.04
4.3.30.0000.01210.04
4.3.20.0020.01010.04
4.3.10.0030.00810.04
4.3.00.0000.01010.04

preferences:
53.94 ms | 401 KiB | 5 Q