3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime('first Monday of this month'); $dt2 = new DateTime('first Sunday of this month'); echo $dt->format('d M'); echo $dt2->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.0130.00716.63
8.3.50.0140.00622.10
8.3.40.0110.00418.89
8.3.30.0140.00719.05
8.3.20.0040.00420.24
8.3.10.0030.00623.61
8.3.00.0070.00319.26
8.2.180.0090.00918.50
8.2.170.0070.00722.96
8.2.160.0030.01020.35
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00822.20
8.2.110.0090.01220.71
8.2.100.0080.00317.97
8.2.90.0080.00019.20
8.2.80.0050.00317.97
8.2.70.0000.00917.50
8.2.60.0050.00318.05
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0000.00718.25
8.2.20.0040.00417.93
8.2.10.0000.00718.03
8.2.00.0030.00817.68
8.1.280.0150.00025.92
8.1.270.0100.00323.99
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0100.00023.93
8.1.230.0080.00423.90
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0060.00317.60
8.1.190.0040.00417.54
8.1.180.0050.00318.10
8.1.170.0000.00818.61
8.1.160.0050.00221.93
8.1.150.0070.00018.83
8.1.140.0080.00017.71
8.1.130.0030.00617.87
8.1.120.0080.00317.55
8.1.110.0000.00817.68
8.1.100.0000.00717.63
8.1.90.0030.00517.67
8.1.80.0040.00417.48
8.1.70.0080.00017.61
8.1.60.0000.00817.73
8.1.50.0000.00817.70
8.1.40.0040.00417.67
8.1.30.0040.00417.75
8.1.20.0060.00317.62
8.1.10.0040.00417.77
8.1.00.0030.00617.62
8.0.300.0040.00418.77
8.0.290.0000.00717.28
8.0.280.0030.00318.57
8.0.270.0070.00017.44
8.0.260.0000.00617.34
8.0.250.0060.00317.29
8.0.240.0080.00317.23
8.0.230.0030.00717.11
8.0.220.0000.00717.08
8.0.210.0000.00816.96
8.0.200.0000.00717.20
8.0.190.0040.00417.20
8.0.180.0050.00217.01
8.0.170.0000.00817.16
8.0.160.0030.00317.04
8.0.150.0000.00817.00
8.0.140.0000.00716.91
8.0.130.0060.00013.32
8.0.120.0040.00416.94
8.0.110.0000.00717.08
8.0.100.0040.00417.13
8.0.90.0040.00417.16
8.0.80.0090.01217.06
8.0.70.0040.00417.13
8.0.60.0080.00016.89
8.0.50.0030.00516.98
8.0.30.0160.00617.19
8.0.20.0180.00517.40
8.0.10.0000.00817.27
8.0.00.0130.00416.98
7.4.330.0000.00515.09
7.4.320.0060.00316.71
7.4.300.0060.00016.63
7.4.290.0030.00316.65
7.4.280.0030.00616.78
7.4.270.0040.00416.61
7.4.260.0080.00016.70
7.4.250.0000.00716.69
7.4.240.0020.00516.74
7.4.230.0070.00016.48
7.4.220.0030.01616.75
7.4.210.0080.00816.80
7.4.200.0070.00016.78
7.4.190.0050.00316.59
7.4.160.0140.00316.71
7.4.150.0070.01117.40
7.4.140.0100.00917.86
7.4.130.0080.00916.75
7.4.120.0100.00716.54
7.4.110.0110.00716.62
7.4.100.0060.01616.67
7.4.90.0080.00816.68
7.4.80.0130.00619.39
7.4.70.0060.01216.57
7.4.60.0090.00916.68
7.4.50.0080.00016.72
7.4.40.0070.01022.77
7.4.30.0130.00716.52
7.4.00.0060.00915.09
7.3.330.0050.00013.17
7.3.320.0020.00213.07
7.3.310.0040.00416.40
7.3.300.0000.00716.33
7.3.290.0100.01016.38
7.3.280.0080.00616.33
7.3.270.0150.00817.40
7.3.260.0090.00916.60
7.3.250.0120.00816.75
7.3.240.0060.01016.62
7.3.230.0110.00716.47
7.3.210.0060.00916.53
7.3.200.0100.01319.39
7.3.190.0060.00916.57
7.3.180.0040.01616.34
7.3.170.0130.00316.50
7.3.160.0080.00816.41
7.3.120.0090.00714.80
7.3.110.0070.01014.75
7.3.100.0060.00914.92
7.3.90.0150.00014.76
7.3.80.0100.00014.77
7.3.70.0000.01315.12
7.3.60.0030.00714.98
7.3.50.0030.01314.80
7.3.40.0100.00014.85
7.3.30.0070.01014.80
7.3.20.0060.01216.73
7.3.10.0030.01016.52
7.3.00.0070.00716.86
7.2.330.0100.01316.61
7.2.320.0040.01416.57
7.2.310.0070.01416.89
7.2.300.0170.00616.61
7.2.290.0140.00416.91
7.2.250.0070.01015.14
7.2.240.0040.01215.09
7.2.230.0060.01015.10
7.2.220.0130.00615.23
7.2.210.0040.01115.09
7.2.200.0030.00615.07
7.2.190.0030.01615.27
7.2.180.0110.00715.10
7.2.170.0060.00715.21
7.2.60.0070.00716.75
7.2.00.0040.01119.51
7.1.330.0060.00615.54
7.1.320.0030.00615.92
7.1.310.0040.01115.68
7.1.300.0040.01515.61
7.1.290.0070.00715.75
7.1.280.0070.00715.45
7.1.270.0040.00815.87
7.1.260.0040.00415.88
7.1.200.0100.00315.89
7.1.100.0000.01218.04
7.1.70.0000.00716.91
7.1.60.0110.01419.33
7.1.50.0100.00316.97
7.1.00.0100.07022.30
7.0.200.0040.00914.78
7.0.140.0070.07022.04
7.0.60.0070.07720.02
7.0.50.0070.05317.89
7.0.40.0070.04320.04
7.0.30.0230.07020.04
7.0.20.0270.07720.00
7.0.10.0000.04720.20
7.0.00.0170.04720.18
5.6.280.0100.06021.02
5.6.210.0030.08720.69
5.6.200.0130.08018.18
5.6.190.0030.09020.34
5.6.180.0070.03720.48
5.6.170.0300.05720.50
5.6.160.0000.07720.51
5.6.150.0070.05718.16
5.6.140.0000.04018.21
5.6.130.0070.06718.08
5.6.120.0070.08720.98
5.6.110.0070.08021.13
5.6.100.0100.08321.13
5.6.90.0000.05020.86
5.6.80.0070.08320.53
5.6.70.3170.02720.49
5.5.350.0130.07720.32
5.5.340.0130.07318.01
5.5.330.0130.05020.57
5.5.320.0230.07020.13
5.5.310.0230.03320.24
5.5.300.0130.07717.87
5.5.290.0130.07317.98
5.5.280.0070.05020.87
5.5.270.0170.07320.72
5.5.260.0070.08320.79
5.5.250.0030.09020.49
5.5.240.0200.07020.26
5.4.450.0230.05319.11
5.4.440.0270.06319.46
5.4.430.0330.06719.62
5.4.420.0300.07719.27
5.4.410.0230.07019.31
5.4.400.0300.07018.80
5.4.390.0200.05319.21
5.4.380.0300.05318.70
5.4.370.0270.07318.74
5.4.360.0300.04718.59
5.4.350.0270.06718.71
5.4.340.0170.05718.70
5.4.320.0060.04512.45
5.4.310.0040.04412.45
5.4.300.0070.04212.45
5.4.290.0060.03812.45
5.4.280.0130.04612.33
5.4.270.0100.05512.32
5.4.260.0110.05712.32
5.4.250.0120.05412.32
5.4.240.0140.04912.32
5.4.230.0090.06012.31
5.4.220.0100.05912.32
5.4.210.0100.05712.32
5.4.200.0120.05912.32
5.4.190.0140.05612.31
5.4.180.0120.05712.31
5.4.170.0120.05812.32
5.4.160.0110.05412.32
5.4.150.0150.05512.31
5.4.140.0130.05812.00
5.4.130.0120.05411.98
5.4.120.0170.05111.94
5.4.110.0110.05511.94
5.4.100.0110.05111.94
5.4.90.0100.05311.94
5.4.80.0110.05511.93
5.4.70.0080.05611.93
5.4.60.0120.05011.93
5.4.50.0110.05111.93
5.4.40.0120.04811.92
5.4.30.0100.04911.92
5.4.20.0090.05211.92
5.4.10.0100.05111.92
5.4.00.0100.05011.41
5.3.290.0050.03912.80
5.3.280.0090.05712.71
5.3.270.0120.05812.72
5.3.260.0160.05512.72
5.3.250.0110.05712.72
5.3.240.0120.05512.72
5.3.230.0120.04912.71
5.3.220.0080.05612.68
5.3.210.0120.05512.68
5.3.200.0110.05412.68
5.3.190.0150.05312.68
5.3.180.0070.05912.67
5.3.170.0100.05612.67
5.3.160.0080.05612.68
5.3.150.0140.05212.67
5.3.140.0180.04412.66
5.3.130.0100.04712.66
5.3.120.0080.05512.66
5.3.110.0090.05112.66
5.3.100.0080.05312.12
5.3.90.0150.04312.08
5.3.80.0180.04212.08
5.3.70.0100.05012.07
5.3.60.0090.04812.06
5.3.50.0140.04912.00
5.3.40.0150.04812.00
5.3.30.0260.08311.94
5.3.20.0110.04711.71
5.3.10.0130.04611.66
5.3.00.0090.05211.66
5.2.170.0110.0399.19
5.2.160.0100.0449.19
5.2.150.0080.0479.20
5.2.140.0190.0389.19
5.2.130.0080.0449.15
5.2.120.0140.0379.15
5.2.110.0090.0399.16
5.2.100.0090.0389.16
5.2.90.0080.0449.15
5.2.80.0060.0469.15
5.2.70.0110.0419.15
5.2.60.0120.0409.10
5.2.50.0110.0419.07
5.2.40.0080.0399.05
5.2.30.0050.0459.03
5.2.20.0070.0389.01
5.2.10.0100.0368.92
5.2.00.0100.0388.79
5.1.60.0090.0308.04
5.1.50.0050.0378.04
5.1.40.0100.0328.02
5.1.30.0070.0388.37
5.1.20.0080.0388.39
5.1.10.0110.0338.12
5.1.00.0080.0388.12
5.0.50.0070.0286.60
5.0.40.0100.0256.46
5.0.30.0070.0426.27
5.0.20.0060.0286.25
5.0.10.0070.0306.22
5.0.00.0050.0416.21
4.4.90.0080.0194.78
4.4.80.0040.0244.76
4.4.70.0040.0214.75
4.4.60.0090.0194.76
4.4.50.0030.0244.77
4.4.40.0060.0334.70
4.4.30.0100.0174.76
4.4.20.0060.0224.84
4.4.10.0090.0224.85
4.4.00.0060.0344.76
4.3.110.0060.0224.67
4.3.100.0060.0214.66
4.3.90.0050.0214.64
4.3.80.0060.0314.58
4.3.70.0040.0224.63
4.3.60.0060.0204.63
4.3.50.0060.0234.63
4.3.40.0070.0324.53
4.3.30.0060.0193.27
4.3.20.0040.0213.25
4.3.10.0020.0233.22
4.3.00.0070.0207.82

preferences:
41.64 ms | 401 KiB | 5 Q