3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('America/Denver'); $now = new DateTime('August 31', $tz); echo 'today ' . $now->format('M-d'); $now->modify('first day this month'); echo 'first ' .$now->format('M-d'); $now->modify('last day this month'); $now->modify('first day this month'); echo 'first after last ' .$now->format('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.60.0090.00616.75
8.3.50.0120.00622.97
8.3.40.0140.00019.00
8.3.30.0000.01419.18
8.3.20.0000.00720.14
8.3.10.0080.00021.86
8.3.00.0100.00017.80
8.2.180.0140.00317.13
8.2.170.0060.01122.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0100.00726.16
8.2.120.0050.00321.04
8.2.110.0090.00021.18
8.2.100.0080.00420.61
8.2.90.0040.00418.15
8.2.80.0080.00017.97
8.2.70.0090.00017.88
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0040.00418.28
8.2.30.0000.00718.13
8.2.20.0080.00017.88
8.2.10.0070.00018.11
8.2.00.0040.00418.02
8.1.280.0030.01025.92
8.1.270.0040.00423.98
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0090.00020.81
8.1.230.0060.00620.95
8.1.220.0040.00417.79
8.1.210.0030.00619.10
8.1.200.0090.00017.60
8.1.190.0090.00017.60
8.1.180.0030.00518.10
8.1.170.0000.00918.76
8.1.160.0040.00422.09
8.1.150.0080.00019.00
8.1.140.0000.00919.03
8.1.130.0000.00617.97
8.1.120.0030.00517.75
8.1.110.0080.00017.71
8.1.100.0000.00717.67
8.1.90.0000.00717.75
8.1.80.0020.00517.71
8.1.70.0000.00817.62
8.1.60.0040.00417.69
8.1.50.0040.00417.58
8.1.40.0050.00317.69
8.1.30.0050.00317.77
8.1.20.0060.00317.66
8.1.10.0050.00317.78
8.1.00.0030.00517.61
8.0.300.0080.00021.49
8.0.290.0050.00217.00
8.0.280.0030.00318.50
8.0.270.0040.00418.28
8.0.260.0000.00717.45
8.0.250.0030.00317.14
8.0.240.0060.00317.24
8.0.230.0000.00717.23
8.0.220.0070.00017.11
8.0.210.0000.00817.06
8.0.200.0060.00017.18
8.0.190.0000.00917.27
8.0.180.0000.00817.07
8.0.170.0040.00417.21
8.0.160.0040.00717.14
8.0.150.0040.00416.99
8.0.140.0000.00816.99
8.0.130.0000.00513.47
8.0.120.0040.00417.15
8.0.110.0070.00017.00
8.0.100.0050.00317.00
8.0.90.0070.00017.01
8.0.80.0100.00717.14
8.0.70.0040.00417.09
8.0.60.0000.00717.13
8.0.50.0000.00717.08
8.0.30.0130.00717.28
8.0.20.0140.00717.40
8.0.10.0050.00217.00
8.0.00.0150.00816.84
7.4.330.0050.00015.21
7.4.320.0030.00316.68
7.4.300.0060.00016.66
7.4.290.0040.00416.64
7.4.280.0070.00016.76
7.4.270.0030.00316.66
7.4.260.0040.00816.65
7.4.250.0080.00016.51
7.4.240.0000.00716.66
7.4.230.0000.00716.45
7.4.220.0070.01016.77
7.4.210.0140.00716.68
7.4.200.0030.00316.64
7.4.160.0090.00616.59
7.4.150.0150.00317.40
7.4.140.0130.00717.86
7.4.130.0080.01416.62
7.4.120.0140.00716.81
7.4.110.0060.01616.55
7.4.100.0100.00716.79
7.4.90.0130.00616.69
7.4.80.0140.00319.39
7.4.70.0130.00916.68
7.4.60.0090.00616.66
7.4.50.0000.00816.75
7.4.40.0060.01216.66
7.4.30.0090.01416.66
7.4.00.0090.00615.13
7.3.330.0020.00513.33
7.3.320.0030.00313.14
7.3.310.0070.00016.42
7.3.300.0030.00516.29
7.3.290.0030.01316.36
7.3.280.0110.00616.39
7.3.270.0060.01217.40
7.3.260.0220.00016.55
7.3.250.0070.01216.72
7.3.240.0060.01316.45
7.3.230.0060.01016.61
7.3.210.0000.01716.30
7.3.200.0160.00319.39
7.3.190.0120.00916.73
7.3.180.0060.01616.56
7.3.170.0060.01316.72
7.3.160.0100.00716.58
7.3.10.0070.00716.82
7.3.00.0060.00616.64
7.2.330.0110.00616.70
7.2.320.0090.01316.69
7.2.310.0060.00916.81
7.2.300.0060.00916.52
7.2.290.0120.00816.55
7.2.130.0100.00717.04
7.2.120.0080.00817.17
7.2.110.0070.00816.63
7.2.100.0070.00717.28
7.2.90.0070.01017.24
7.2.80.0060.00316.99
7.2.70.0040.01116.96
7.2.60.0100.00317.13
7.2.50.0070.01017.05
7.2.40.0060.01117.04
7.2.30.0040.01517.02
7.2.20.0060.01317.02
7.2.10.0090.00617.12
7.2.00.0050.00918.37
7.1.250.0060.00916.10
7.1.200.0060.00915.87
7.1.100.0030.00918.43
7.1.70.0000.00717.07
7.1.60.0090.01519.40
7.1.50.0000.01517.07
7.1.00.0070.07022.36
7.0.200.0000.00816.94
7.0.140.0030.07322.09
7.0.60.0170.07319.91
7.0.50.0030.05717.80
7.0.40.0100.03720.05
7.0.30.0330.07020.18
7.0.20.0200.04320.09
7.0.10.0030.05020.02
7.0.00.0100.08720.01
5.6.280.0100.06721.04
5.6.210.0070.05320.50
5.6.200.0130.07318.13
5.6.190.0100.05720.60
5.6.180.4100.04020.77
5.6.170.0230.04020.46
5.6.160.0030.08020.46
5.6.150.0100.07718.21
5.6.140.0030.05018.20
5.6.130.0130.07318.13
5.6.120.0000.05321.00
5.6.110.0100.08020.89
5.6.100.0070.08021.02
5.6.90.0130.05721.10
5.6.80.0170.07320.37
5.6.70.4000.03720.52
5.5.350.0030.08320.38
5.5.340.0030.05017.92
5.5.330.0100.04720.19
5.5.320.0270.07320.27
5.5.310.0200.03720.18
5.5.300.0030.05317.98
5.5.290.0030.04317.92
5.5.280.0130.05720.80
5.5.270.0030.04320.75
5.5.260.0030.07320.84
5.5.250.0170.07320.66
5.5.240.0370.06020.36
5.4.450.0100.04719.55
5.4.440.0230.04719.26
5.4.430.0270.04019.43
5.4.420.0330.04319.09
5.4.410.0200.05319.44
5.4.400.0130.04019.08
5.4.390.0300.04718.78
5.4.380.0430.04718.50
5.4.370.1000.06318.70
5.4.360.0530.06718.50
5.4.350.0470.07018.53
5.4.340.0270.05718.68
5.4.320.0100.03212.45
5.4.310.0060.03812.45
5.4.300.0090.03912.46
5.4.290.0060.04412.45
5.4.280.0040.03712.35
5.4.270.0100.04712.35
5.4.260.0070.04412.35
5.4.250.0070.03712.35
5.4.240.0070.03612.35
5.4.230.0060.03812.34
5.4.220.0080.03612.34
5.4.210.0070.03712.34
5.4.200.0100.03612.34
5.4.190.0080.03512.34
5.4.180.0060.03712.34
5.4.170.0080.03712.35
5.4.160.0070.03612.35
5.4.150.0050.03812.34
5.4.140.0060.03812.03
5.4.130.0090.03212.01
5.4.120.0060.03511.97
5.4.110.0050.03611.97
5.4.100.0060.03511.96
5.4.90.0050.03811.97
5.4.80.0040.03811.96
5.4.70.0070.04611.96
5.4.60.0120.03111.96
5.4.50.0070.03511.96
5.4.40.0060.04011.95
5.4.30.0090.05111.95
5.4.20.0080.03711.95
5.4.10.0040.03611.95
5.4.00.0060.03911.44
5.3.290.0040.04112.80
5.3.280.0080.04212.70
5.3.270.0060.03912.72
5.3.260.0030.04312.71
5.3.250.0060.03812.72
5.3.240.0040.04112.72
5.3.230.0060.03712.71
5.3.220.0080.03512.68
5.3.210.0040.04112.68
5.3.200.0060.03712.68
5.3.190.0070.04412.68
5.3.180.0030.04012.67
5.3.170.0040.03912.67
5.3.160.0060.04012.67
5.3.150.0080.03612.68
5.3.140.0070.03812.66
5.3.130.0080.04012.66
5.3.120.0100.03612.66
5.3.110.0080.04012.66
5.3.100.0040.04412.12
5.3.90.0050.04112.08
5.3.80.0040.04012.07
5.3.70.0030.03812.08
5.3.60.0050.03812.06
5.3.50.0040.03812.00
5.3.40.0060.03612.00
5.3.30.0090.03811.95
5.3.20.0060.03511.73
5.3.10.0070.03511.69
5.3.00.0050.04111.68
5.2.170.0050.0309.18
5.2.160.0070.0279.18
5.2.150.0060.0299.18
5.2.140.0040.0379.18
5.2.130.0050.0369.14
5.2.120.0030.0309.14
5.2.110.0040.0299.14
5.2.100.0020.0309.14
5.2.90.0060.0279.14
5.2.80.0050.0299.14
5.2.70.0040.0319.14
5.2.60.0050.0309.09
5.2.50.0080.0289.06
5.2.40.0070.0259.04
5.2.30.0060.0309.01
5.2.20.0050.0349.00
5.2.10.0100.0268.93
5.2.00.0050.0308.78
5.1.60.0040.0338.07
5.1.50.0060.0248.07
5.1.40.0030.0308.04
5.1.30.0040.0268.40
5.1.20.0050.0258.41
5.1.10.0070.0238.14
5.1.00.0080.0268.14
5.0.50.0050.0206.62
5.0.40.0050.0186.48
5.0.30.0030.0336.29
5.0.20.0030.0206.26
5.0.10.0010.0226.24
5.0.00.0050.0326.23
4.4.90.0040.0144.77
4.4.80.0030.0154.75
4.4.70.0020.0164.75
4.4.60.0030.0154.75
4.4.50.0060.0134.77
4.4.40.0010.0274.71
4.4.30.0020.0214.76
4.4.20.0020.0154.84
4.4.10.0030.0214.85
4.4.00.0030.0274.76
4.3.110.0070.0174.67
4.3.100.0050.0174.66
4.3.90.0000.0174.63
4.3.80.0050.0294.58
4.3.70.0030.0144.63
4.3.60.0020.0144.63
4.3.50.0020.0154.63
4.3.40.0030.0314.54
4.3.30.0030.0203.28
4.3.20.0020.0163.26
4.3.10.0030.0143.22
4.3.00.0070.01315.90

preferences:
42.01 ms | 401 KiB | 5 Q