3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstDay = new DateTime('first day of this month'); $lastDay = new DateTime('last day of this month'); echo $firstDay->format(DateTime::RFC2822); echo "<br/>"; echo $lastDay->format(DateTime::RFC2822);

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.0180.00316.75
8.3.50.0140.00722.14
8.3.40.0110.00719.01
8.3.30.0040.01118.97
8.3.20.0040.00420.34
8.3.10.0000.00823.56
8.3.00.0050.00319.25
8.2.180.0090.00616.88
8.2.170.0140.00022.96
8.2.160.0140.00022.13
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0030.00519.50
8.2.120.0040.00426.35
8.2.110.0040.00420.49
8.2.100.0080.00417.93
8.2.90.0040.00419.31
8.2.80.0040.00417.97
8.2.70.0090.00317.36
8.2.60.0050.00318.16
8.2.50.0080.00018.07
8.2.40.0000.00719.58
8.2.30.0040.00420.70
8.2.20.0030.00617.86
8.2.10.0020.00518.15
8.2.00.0030.00518.22
8.1.280.0070.00725.92
8.1.270.0090.00023.95
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0090.00022.69
8.1.230.0150.00017.78
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0080.00017.48
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0060.00320.46
8.1.160.0070.00021.92
8.1.150.0040.00418.90
8.1.140.0080.00019.68
8.1.130.0000.00717.80
8.1.120.0000.00717.64
8.1.110.0030.00417.64
8.1.100.0040.00417.72
8.1.90.0070.00017.62
8.1.80.0040.00417.54
8.1.70.0040.00417.63
8.1.60.0080.00017.59
8.1.50.0000.00817.63
8.1.40.0000.00817.54
8.1.30.0000.00817.73
8.1.20.0040.00417.85
8.1.10.0000.00717.77
8.1.00.0080.00017.73
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0040.00418.58
8.0.270.0000.00717.40
8.0.260.0000.00617.30
8.0.250.0020.00517.15
8.0.240.0000.00817.13
8.0.230.0000.00717.21
8.0.220.0070.00017.02
8.0.210.0030.00317.00
8.0.200.0060.00017.14
8.0.190.0100.00017.13
8.0.180.0030.00517.13
8.0.170.0000.00817.14
8.0.160.0080.00017.16
8.0.150.0050.00316.99
8.0.140.0060.00317.04
8.0.130.0030.00313.52
8.0.120.0000.00817.09
8.0.110.0060.00317.14
8.0.100.0070.00017.13
8.0.90.0030.00317.12
8.0.80.0140.00717.06
8.0.70.0040.00416.92
8.0.60.0040.00416.96
8.0.50.0000.00717.03
8.0.30.0110.00517.20
8.0.20.0110.00917.41
8.0.10.0040.00417.12
8.0.00.0100.00716.93
7.4.330.0030.00316.75
7.4.320.0000.00616.59
7.4.300.0030.00316.62
7.4.290.0030.00316.63
7.4.280.0000.00716.68
7.4.270.0070.00016.64
7.4.260.0030.00316.74
7.4.250.0030.00516.59
7.4.240.0040.00316.57
7.4.230.0030.00316.58
7.4.220.0100.01716.75
7.4.210.0130.00316.61
7.4.200.0070.00016.53
7.4.160.0120.00416.53
7.4.150.0060.01217.40
7.4.140.0130.00917.86
7.4.130.0090.00816.61
7.4.120.0100.00816.57
7.4.110.0130.00416.62
7.4.100.0140.00516.74
7.4.90.0100.00716.61
7.4.80.0100.01619.39
7.4.70.0080.01116.71
7.4.60.0100.00616.63
7.4.50.0040.00816.59
7.4.40.0030.01516.62
7.4.30.0060.01216.37
7.4.00.0170.00014.99
7.3.330.0000.00513.26
7.3.320.0050.00013.21
7.3.310.0070.00016.26
7.3.300.0030.00316.22
7.3.290.0090.00916.31
7.3.280.0120.00716.32
7.3.270.0120.00617.40
7.3.260.0000.01716.57
7.3.250.0110.01016.45
7.3.240.0130.00716.53
7.3.230.0070.01016.59
7.3.210.0030.01416.57
7.3.200.0000.01616.36
7.3.190.0040.01216.33
7.3.180.0170.00016.73
7.3.170.0130.00316.36
7.3.160.0120.00316.73
7.3.10.0120.00016.82
7.3.00.0140.00316.90
7.2.330.0110.00716.96
7.2.320.0160.00616.82
7.2.310.0040.01116.77
7.2.300.0080.00816.69
7.2.290.0080.01216.80
7.2.130.0000.01417.10
7.2.120.0030.01016.78
7.2.110.0070.00716.95
7.2.100.0110.00417.20
7.2.90.0000.01117.14
7.2.80.0060.00616.93
7.2.70.0030.00617.01
7.2.60.0090.00517.09
7.2.50.0050.00817.18
7.2.40.0030.01016.95
7.2.30.0100.00316.91
7.2.20.0060.00917.20
7.2.10.0080.00717.07
7.2.00.0080.00818.17
7.1.250.0030.01015.84
7.1.200.0090.00315.49
7.1.100.0040.00718.30
7.1.70.0060.00316.87
7.1.60.0090.01619.48
7.1.50.0040.01116.96
7.1.00.0070.07322.35
7.0.200.0340.00314.87
7.0.60.0030.04720.05
7.0.50.0130.03317.80
7.0.40.0070.04020.08
7.0.30.0030.09020.09
7.0.20.0430.06320.16
7.0.10.0030.09020.16
7.0.00.0100.08020.33
5.6.280.0000.03720.91
5.6.210.0000.07320.51
5.6.200.0030.09018.23
5.6.190.0030.07320.27
5.6.180.0200.08720.43
5.6.170.0270.05020.52
5.6.160.0100.03720.54
5.6.150.0030.05018.22
5.6.140.0070.04718.08
5.6.130.0030.05018.21
5.6.120.0070.04721.14
5.6.110.0170.06321.08
5.6.100.0100.05021.07
5.6.90.0100.07021.10
5.6.80.0070.07720.43
5.5.350.2200.06320.36
5.5.340.0070.05017.91
5.5.330.0070.08320.40
5.5.320.0230.03320.31
5.5.310.0330.05320.28
5.5.300.0100.05317.98
5.5.290.0100.03717.92
5.5.280.0100.08020.77
5.5.270.0070.05720.86
5.5.260.0100.08020.67
5.5.250.0130.04720.70
5.5.240.0100.07720.27

preferences:
58.72 ms | 401 KiB | 5 Q