3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime('first Monday of this month'); $dt = new DateTime('first Sunday of this month'); echo $dt->format('d M');

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.0040.01116.75
8.3.50.0090.01022.16
8.3.40.0070.00718.79
8.3.30.0090.00919.23
8.3.20.0000.00720.27
8.3.10.0040.00423.52
8.3.00.0070.00417.59
8.2.180.0110.00718.54
8.2.170.0100.00322.96
8.2.160.0070.00720.40
8.2.150.0030.00624.18
8.2.140.0030.00724.66
8.2.130.0090.00926.16
8.2.120.0060.00322.44
8.2.110.0070.00322.05
8.2.100.0040.00817.91
8.2.90.0060.00319.17
8.2.80.0060.00318.16
8.2.70.0080.00017.63
8.2.60.0030.00618.04
8.2.50.0030.00618.07
8.2.40.0000.00918.28
8.2.30.0000.00818.05
8.2.20.0030.00717.93
8.2.10.0000.00818.16
8.2.00.0000.01017.78
8.1.280.0170.00325.92
8.1.270.0040.00422.32
8.1.260.0080.00026.35
8.1.250.0030.01328.09
8.1.240.0000.00919.04
8.1.230.0030.00719.22
8.1.220.0050.00317.91
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0050.00317.53
8.1.180.0030.00518.10
8.1.170.0080.00018.54
8.1.160.0000.00722.12
8.1.150.0040.00418.88
8.1.140.0040.00417.69
8.1.130.0030.00317.96
8.1.120.0040.00617.68
8.1.110.0080.00017.64
8.1.100.0040.00417.65
8.1.90.0000.00717.53
8.1.80.0070.00017.59
8.1.70.0030.00317.59
8.1.60.0030.00517.66
8.1.50.0050.00317.67
8.1.40.0070.00017.68
8.1.30.0040.00417.77
8.1.20.0000.00817.68
8.1.10.0000.00817.64
8.1.00.0080.00017.77
8.0.300.0050.00318.77
8.0.290.0040.00417.18
8.0.280.0050.00318.52
8.0.270.0040.00417.26
8.0.260.0060.00017.38
8.0.250.0000.00717.21
8.0.240.0030.00617.18
8.0.230.0000.00817.15
8.0.220.0000.00717.10
8.0.210.0070.00017.09
8.0.200.0030.00317.03
8.0.190.0040.00417.11
8.0.180.0040.00417.09
8.0.170.0000.00917.07
8.0.160.0040.00417.09
8.0.150.0040.00316.93
8.0.140.0070.00017.05
8.0.130.0030.00313.49
8.0.120.0050.00317.00
8.0.110.0040.00417.09
8.0.100.0030.00616.97
8.0.90.0000.00717.02
8.0.80.0060.00916.96
8.0.70.0080.00016.97
8.0.60.0060.00316.93
8.0.50.0050.00317.05
8.0.30.0150.00717.06
8.0.20.0100.00917.40
8.0.10.0040.00417.00
8.0.00.0070.01016.91
7.4.330.0000.00515.08
7.4.320.0000.00816.76
7.4.300.0030.00316.65
7.4.290.0000.00716.73
7.4.280.0030.00516.61
7.4.270.0000.00716.75
7.4.260.0040.00416.72
7.4.250.0040.00416.61
7.4.240.0040.00416.72
7.4.230.0000.00616.84
7.4.220.0060.02116.77
7.4.210.0070.00916.69
7.4.200.0040.00316.73
7.4.190.0040.00416.58
7.4.160.0150.00616.66
7.4.150.0090.00917.40
7.4.140.0150.00217.86
7.4.130.0080.00916.71
7.4.120.0110.00616.61
7.4.110.0120.00616.69
7.4.100.0060.01316.64
7.4.90.0070.01016.82
7.4.80.0070.01219.39
7.4.70.0110.00816.55
7.4.60.0090.00616.58
7.4.50.0040.00416.79
7.4.40.0070.01122.77
7.4.30.0120.00816.75
7.4.00.0070.01015.24
7.3.330.0020.00213.16
7.3.320.0050.00013.04
7.3.310.0030.00316.26
7.3.300.0070.00016.36
7.3.290.0110.00416.28
7.3.280.0090.00716.33
7.3.270.0040.01317.40
7.3.260.0050.01216.54
7.3.250.0140.00816.41
7.3.240.0080.00816.55
7.3.230.0140.00316.50
7.3.210.0170.00016.39
7.3.200.0070.01319.39
7.3.190.0060.01016.41
7.3.180.0040.01216.63
7.3.170.0070.01016.39
7.3.160.0090.00616.68
7.3.120.0030.00815.01
7.2.330.0070.01816.72
7.2.320.0040.01716.88
7.2.310.0070.01016.88
7.2.300.0040.01416.53
7.2.290.0100.01316.50
7.2.60.0060.00616.94
7.2.00.0080.00519.33
7.1.200.0030.00315.67
7.1.100.0030.01318.13
7.1.70.0000.01016.96
7.1.60.0090.01519.33
7.1.50.0070.01317.06
7.1.00.0100.07022.44
7.0.200.0060.00315.15
7.0.140.0170.06022.15
7.0.60.0100.07719.94
7.0.50.0100.08017.86
7.0.40.0100.04720.27
7.0.30.0270.04720.08
7.0.20.0330.04720.17
7.0.10.0030.04320.20
7.0.00.0070.05720.20
5.6.280.0030.07320.96
5.6.210.0130.08020.68
5.6.200.0070.07718.08
5.6.190.0130.08020.60
5.6.180.0000.06020.60
5.6.170.0300.03720.51
5.6.160.0030.09020.33
5.6.150.0100.07718.16
5.6.140.0130.03718.21
5.6.130.0070.08018.11
5.6.120.0100.03321.11
5.6.110.0100.06320.99
5.6.100.0100.07721.01
5.6.90.0200.07020.99
5.6.80.0130.07320.40
5.6.70.4430.03720.52
5.5.350.0170.07720.34
5.5.340.0070.06717.95
5.5.330.0100.08020.40
5.5.320.0370.08020.17
5.5.310.0200.03720.20
5.5.300.0070.06017.88
5.5.290.0070.08017.96
5.5.280.0070.08320.83
5.5.270.0130.06020.83
5.5.260.0100.04320.67
5.5.250.0130.05320.68
5.5.240.0170.08020.18
5.4.450.0130.05719.30
5.4.440.0200.05719.58
5.4.430.0200.05719.09
5.4.420.0300.06719.46
5.4.410.0300.07319.34
5.4.400.0270.04319.28
5.4.390.0200.05319.25
5.4.380.0270.05718.57
5.4.370.0270.06018.62
5.4.360.0330.05018.68
5.4.350.0200.05318.76
5.4.340.0100.05718.72
5.4.320.0060.04112.45
5.4.310.0060.03612.45
5.4.300.0040.03812.46
5.4.290.0070.03612.45
5.4.280.0200.05412.33
5.4.270.0300.10112.33
5.4.260.0110.05412.33
5.4.250.0200.06412.32
5.4.240.0130.05212.32
5.4.230.0110.05312.32
5.4.220.0120.05912.32
5.4.210.0080.06012.32
5.4.200.0110.05812.32
5.4.190.0170.04912.31
5.4.180.0110.06112.31
5.4.170.0110.05512.33
5.4.160.0140.04912.32
5.4.150.0130.06712.31
5.4.140.0240.07212.00
5.4.130.0160.05311.99
5.4.120.0070.04811.95
5.4.110.0060.04811.94
5.4.100.0080.03511.94
5.4.90.0060.04011.94
5.4.80.0080.03811.94
5.4.70.0080.04011.93
5.4.60.0080.03411.93
5.4.50.0070.03611.93
5.4.40.0100.03611.92
5.4.30.0060.03811.92
5.4.20.0090.03711.92
5.4.10.0090.03511.92
5.4.00.0100.03711.41
5.3.290.0050.04912.80
5.3.280.0140.04712.71
5.3.270.0090.04412.73
5.3.260.0170.08112.72
5.3.250.0140.06812.72
5.3.240.0140.05312.72
5.3.230.0220.06412.71
5.3.220.0220.07812.68
5.3.210.0100.05312.68
5.3.200.0070.03812.68
5.3.190.0100.05312.68
5.3.180.0110.05512.68
5.3.170.0170.05312.67
5.3.160.0230.06512.68
5.3.150.0110.06512.68
5.3.140.0190.06712.66
5.3.130.0140.05612.66
5.3.120.0190.07512.65
5.3.110.0090.05612.66
5.3.100.0090.04912.12
5.3.90.0140.05112.09
5.3.80.0160.05012.07
5.3.70.0130.06812.07
5.3.60.0080.03912.06
5.3.50.0100.04512.00
5.3.40.0080.04112.00
5.3.30.0070.03911.94
5.3.20.0090.03911.71
5.3.10.0110.03411.66
5.3.00.0060.03911.66
5.2.170.0070.0319.20
5.2.160.0050.0349.19
5.2.150.0090.0409.19
5.2.140.0060.0379.19
5.2.130.0110.0389.15
5.2.120.0090.0339.15
5.2.110.0100.0319.15
5.2.100.0070.0299.16
5.2.90.0070.0329.15
5.2.80.0060.0359.15
5.2.70.0080.0419.15
5.2.60.0050.0319.10
5.2.50.0010.0369.08
5.2.40.0070.0299.05
5.2.30.0040.0339.03
5.2.20.0100.0349.01
5.2.10.0080.0388.92
5.2.00.0100.0398.78
5.1.60.0140.0368.04
5.1.50.0040.0388.04
5.1.40.0070.0358.03
5.1.30.0090.0378.37
5.1.20.0080.0468.39
5.1.10.0100.0398.12
5.1.00.0110.0358.12
5.0.50.0140.0436.59
5.0.40.0110.0356.46
5.0.30.0150.0666.27
5.0.20.0070.0246.24
5.0.10.0120.0416.21
5.0.00.0110.0446.21
4.4.90.0110.0394.78
4.4.80.0050.0194.75
4.4.70.0050.0214.76
4.4.60.0030.0244.75
4.4.50.0050.0364.77
4.4.40.0050.0454.71
4.4.30.0040.0214.75
4.4.20.0060.0204.84
4.4.10.0040.0234.85
4.4.00.0030.0514.76
4.3.110.0070.0564.67
4.3.100.0050.0234.66
4.3.90.0100.0184.63
4.3.80.0100.0374.59
4.3.70.0040.0234.63
4.3.60.0100.0374.63
4.3.50.0140.0414.63
4.3.40.0070.0494.54
4.3.30.0060.0193.27
4.3.20.0050.0203.25
4.3.10.0050.0203.21
4.3.00.0070.0207.82

preferences:
41.64 ms | 401 KiB | 5 Q