3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today="2014-01-06"; $dt = new DateTime('first Monday of next month',$today); echo $dt->format('Y-m-d');

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.40.0140.00018.96
8.3.30.0200.00020.22
8.3.20.0000.00820.30
8.3.10.0000.00721.90
8.3.00.0070.00022.58
8.2.170.0140.00722.96
8.2.160.0030.01020.47
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.88
8.2.110.0030.00622.10
8.2.100.0140.00017.84
8.2.90.0040.00419.08
8.2.80.0040.00419.40
8.2.70.0000.00817.50
8.2.60.0040.00417.92
8.2.50.0060.00318.07
8.2.40.0070.00418.21
8.2.30.0040.00419.43
8.2.20.0040.00417.71
8.2.10.0040.00417.71
8.2.00.0030.00517.67
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0040.00719.02
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.39
8.1.180.0030.00718.10
8.1.170.0090.00018.38
8.1.160.0040.00418.74
8.1.150.0080.00018.53
8.1.140.0040.00417.43
8.1.130.0000.00717.87
8.1.120.0020.00517.46
8.1.110.0000.00717.38
8.1.100.0070.00017.30
8.1.90.0040.00417.36
8.1.80.0030.00317.27
8.1.70.0030.00317.29
8.1.60.0020.00517.50
8.1.50.0030.00617.52
8.1.40.0040.00417.41
8.1.30.0030.00617.62
8.1.20.0040.00417.64
8.1.10.0000.00717.61
8.1.00.0020.00517.41
8.0.300.0050.00318.77
8.0.290.0050.00217.04
8.0.280.0070.00018.38
8.0.270.0070.00017.07
8.0.260.0000.00616.79
8.0.250.0070.00017.00
8.0.240.0000.00817.02
8.0.230.0000.00717.06
8.0.220.0070.00016.90
8.0.210.0030.00316.96
8.0.200.0030.00317.04
8.0.190.0000.00716.97
8.0.180.0040.00416.93
8.0.170.0040.00416.88
8.0.160.0000.00716.93
8.0.150.0040.00416.81
8.0.140.0000.00816.77
8.0.130.0030.00313.36
8.0.120.0060.00316.95
8.0.110.0040.00416.93
8.0.100.0000.00817.07
8.0.90.0080.00016.99
8.0.80.0100.01016.88
8.0.70.0080.00017.00
8.0.60.0000.00816.98
8.0.50.0000.00716.84
8.0.30.0100.01117.05
8.0.20.0090.01117.40
8.0.10.0000.00817.02
8.0.00.0160.00516.79
7.4.330.0050.00015.04
7.4.320.0030.00316.57
7.4.300.0030.00316.55
7.4.290.0060.00016.60
7.4.280.0030.00316.49
7.4.270.0030.00316.52
7.4.260.0030.00313.26
7.4.250.0000.00816.51
7.4.240.0000.00716.51
7.4.230.0000.00716.34
7.4.220.0100.01016.45
7.4.210.0060.00816.52
7.4.200.0000.00716.63
7.4.190.0070.00016.75
7.4.160.0130.00416.35
7.4.150.0190.00317.40
7.4.140.0090.00817.86
7.4.130.0130.00316.54
7.4.120.0080.01316.47
7.4.110.0090.00916.36
7.4.100.0070.01016.62
7.4.90.0100.00716.44
7.4.80.0080.00819.39
7.4.70.0110.00616.45
7.4.60.0060.01316.49
7.4.50.0040.00416.59
7.4.40.0060.01022.77
7.4.30.0070.01016.59
7.4.00.0040.01114.96
7.3.330.0000.00513.14
7.3.320.0020.00213.10
7.3.310.0060.00016.10
7.3.300.0000.00616.20
7.3.290.0140.00016.28
7.3.280.0090.00616.27
7.3.270.0070.01017.40
7.3.260.0100.01316.27
7.3.250.0120.00816.57
7.3.240.0120.00616.40
7.3.230.0070.01016.39
7.3.210.0060.01016.36
7.3.200.0100.01019.39
7.3.190.0120.00916.27
7.3.180.0130.00716.39
7.3.170.0070.01016.50
7.3.160.0070.01016.30
7.3.120.0060.00914.53
7.3.110.0060.01014.96
7.3.100.0060.00914.94
7.3.90.0070.01014.72
7.3.80.0040.01214.70
7.3.70.0040.01214.61
7.3.60.0090.00314.73
7.3.50.0000.01214.84
7.3.40.0070.00714.59
7.3.30.0060.00614.81
7.3.20.0080.00416.77
7.3.10.0080.00616.58
7.3.00.0040.00816.66
7.2.330.0100.00716.59
7.2.320.0100.01316.53
7.2.310.0110.00816.57
7.2.300.0030.01516.68
7.2.290.0060.01116.46
7.2.240.0040.00715.20
7.2.230.0070.01014.92
7.2.220.0070.00715.01
7.2.210.0100.00714.56
7.2.200.0000.01114.59
7.2.190.0070.01014.96
7.2.180.0060.00914.65
7.2.170.0040.01115.01
7.2.160.0030.01314.77
7.2.150.0070.01116.82
7.2.140.0040.01216.78
7.2.130.0120.00316.84
7.2.120.0030.00916.78
7.2.110.0080.00716.83
7.2.100.0080.00616.74
7.2.90.0010.01416.72
7.2.80.0070.00616.73
7.2.70.0080.00616.70
7.2.60.0070.00716.83
7.2.50.0080.00616.77
7.2.40.0060.00816.86
7.2.30.0040.00916.81
7.2.20.0030.01116.87
7.2.10.0090.00616.76
7.2.00.0060.01017.41
7.1.330.0060.00615.66
7.1.320.0040.01115.69
7.1.310.0070.00715.91
7.1.300.0000.01415.73
7.1.290.0060.01015.88
7.1.280.0070.00715.48
7.1.270.0040.01115.82
7.1.260.0080.00815.86
7.1.250.0060.00615.60
7.1.200.0070.00715.57
7.1.100.0000.01118.21
7.1.70.0000.00817.04
7.1.60.0030.02019.21
7.1.50.0160.00616.91
7.1.00.0070.03322.51
7.0.200.0060.00316.79
7.0.140.0070.06322.18
7.0.60.0070.05019.93
7.0.50.0030.09017.90
7.0.40.0030.08320.12
7.0.30.0270.04320.21
7.0.20.0270.07320.13
7.0.10.0170.04020.33
7.0.00.0070.04720.12
5.6.280.0030.07321.04
5.6.210.0070.07020.50
5.6.200.0030.06018.15
5.6.190.0000.09720.53
5.6.180.0230.05720.33
5.6.170.0330.04720.54
5.6.160.0030.06320.48
5.6.150.0070.07018.14
5.6.140.0070.08318.24
5.6.130.0030.05318.28
5.6.120.0000.04720.98
5.6.110.0100.05720.97
5.6.100.0170.07321.08
5.6.90.0100.07720.99
5.6.80.0100.04720.53
5.6.70.4300.03720.43
5.5.350.0100.08720.38
5.5.340.0070.03718.07
5.5.330.0200.07320.13
5.5.320.0400.06720.34
5.5.310.0270.04320.26
5.5.300.0030.04017.95
5.5.290.0100.05717.95
5.5.280.0000.08720.86
5.5.270.0070.05320.76
5.5.260.0100.04320.95
5.5.250.0070.03720.66
5.5.240.0100.03320.16
5.4.450.0230.06719.50
5.4.440.0270.06319.63
5.4.430.0200.05019.30
5.4.420.0130.05319.31
5.4.410.0170.05719.18
5.4.400.0170.04019.14
5.4.390.0230.06719.13
5.4.380.0270.06718.89
5.4.370.0200.07319.31
5.4.360.0170.04319.18
5.4.350.0200.06319.09
5.4.340.0230.07019.17
5.4.320.0370.03719.13
5.4.310.0230.04319.31
5.4.300.0370.05718.99
5.4.290.0130.05319.21
5.4.280.0270.06718.96
5.4.270.0370.05719.00
5.4.260.0200.07719.24
5.4.250.0270.07318.97
5.4.240.0230.07319.19
5.4.230.0230.04719.14
5.4.220.0200.07719.05
5.4.210.0300.04018.84
5.4.200.0230.04319.10
5.4.190.0170.05319.04
5.4.180.0200.04319.21
5.4.170.0170.06719.14
5.4.160.0200.04319.07
5.4.150.0270.06018.96
5.4.140.0270.05316.52
5.4.130.0230.07016.45
5.4.120.0230.06016.50
5.4.110.0300.05016.58
5.4.100.0200.07316.55
5.4.90.0230.03316.27
5.4.80.0230.05016.17
5.4.70.0270.06016.44
5.4.60.0230.06016.43
5.4.50.0230.03716.55
5.4.40.0200.07016.48
5.4.30.0370.03016.42
5.4.20.0270.06316.22
5.4.10.0270.06016.54
5.4.00.0200.07315.78
5.3.290.0200.05714.67
5.3.280.0230.06714.50
5.3.270.0100.04714.59
5.3.260.0230.03714.51
5.3.250.0200.07314.82
5.3.240.0230.07714.71
5.3.230.0270.06714.66
5.3.220.0130.04714.57
5.3.210.0200.07714.72
5.3.200.0230.07314.46
5.3.190.0230.07314.47
5.3.180.0300.05314.62
5.3.170.0270.05014.69
5.3.160.0130.05014.47
5.3.150.0170.04314.78
5.3.140.0300.06714.56
5.3.130.0200.06014.55
5.3.120.0130.05314.76
5.3.110.0170.07014.44
5.3.100.0200.04314.25
5.3.90.0200.04314.23
5.3.80.0230.07314.09
5.3.70.0200.04313.91
5.3.60.0300.06313.90
5.3.50.0270.06714.09
5.3.40.0200.07013.87
5.3.30.0130.04713.91
5.3.20.0230.04013.61
5.3.10.0170.03713.58
5.3.00.0230.03013.75
5.2.170.0170.06312.17
5.2.160.0070.05012.17
5.2.150.0070.03312.17
5.2.140.0070.03712.17
5.2.130.0200.05712.17
5.2.120.0170.03312.17
5.2.110.0170.02712.17
5.2.100.0130.02712.17
5.2.90.0070.03312.17
5.2.80.0100.03012.17
5.2.70.0170.03012.17
5.2.60.0100.03012.17
5.2.50.0130.03712.17
5.2.40.0070.03012.17
5.2.30.0070.04012.17
5.2.20.0070.03012.17
5.2.10.0100.03012.17
5.2.00.0100.03012.17
5.1.60.0130.02012.17
5.1.50.0070.03012.17
5.1.40.0100.02312.17
5.1.30.0130.02312.17
5.1.20.0100.03312.17
5.1.10.0170.02012.17
5.1.00.0130.02312.17
5.0.50.0030.02012.17
5.0.40.0030.02312.17
5.0.30.0070.02712.17
5.0.20.0070.01712.17
5.0.10.0030.02312.17
5.0.00.0030.03012.17
4.4.90.0030.02012.17
4.4.80.0030.01712.17
4.4.70.0030.01712.17
4.4.60.0070.01712.17
4.4.50.0000.02012.17
4.4.40.0030.03012.17
4.4.30.0070.01712.17
4.4.20.0030.01712.17
4.4.10.0070.01712.17
4.4.00.0100.02012.17
4.3.110.0070.01312.17
4.3.100.0070.01312.17
4.3.90.0030.01312.17
4.3.80.0100.02312.17
4.3.70.0030.01712.17
4.3.60.0000.01712.17
4.3.50.0000.01712.17
4.3.40.0030.02312.17
4.3.30.0000.01712.17
4.3.20.0000.01712.17
4.3.10.0030.01312.17
4.3.00.0030.01312.17

preferences:
38.54 ms | 400 KiB | 5 Q