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');

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.0150.00316.73
8.3.50.0030.01719.94
8.3.40.0080.00618.87
8.3.30.0100.00719.04
8.3.20.0040.00420.30
8.3.10.0050.00221.56
8.3.00.0070.00318.00
8.2.180.0130.00616.63
8.2.170.0170.00322.96
8.2.160.0070.01120.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00720.97
8.2.110.0070.00322.20
8.2.100.0030.01018.10
8.2.90.0070.00019.17
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0000.00718.05
8.2.50.0070.00318.07
8.2.40.0030.00618.34
8.2.30.0030.00618.25
8.2.20.0080.00017.92
8.2.10.0000.00718.07
8.2.00.0040.00417.94
8.1.270.0060.00323.97
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00324.04
8.1.230.0110.00019.28
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00717.61
8.1.190.0050.00317.48
8.1.180.0090.00018.10
8.1.170.0040.00418.64
8.1.160.0070.00021.96
8.1.150.0070.00018.87
8.1.140.0000.00717.71
8.1.130.0000.00717.95
8.1.120.0030.00317.57
8.1.110.0050.00317.68
8.1.100.0000.00717.55
8.1.90.0000.00717.55
8.1.80.0000.00817.53
8.1.70.0070.00017.64
8.1.60.0000.00717.69
8.1.50.0000.00817.64
8.1.40.0040.00517.64
8.1.30.0000.00917.65
8.1.20.0050.00317.77
8.1.10.0000.00817.78
8.1.00.0050.00217.56
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.50
8.0.270.0000.00717.45
8.0.260.0000.00717.32
8.0.250.0040.00417.20
8.0.240.0040.00417.17
8.0.230.0070.00017.11
8.0.220.0030.00317.14
8.0.210.0030.00317.02
8.0.200.0000.00617.20
8.0.190.0050.00317.15
8.0.180.0040.00417.08
8.0.170.0080.00017.11
8.0.160.0040.00417.13
8.0.150.0040.00417.07
8.0.140.0040.00417.09
8.0.130.0030.00313.61
8.0.120.0030.00617.11
8.0.110.0040.00417.11
8.0.100.0000.00716.96
8.0.90.0000.00816.91
8.0.80.0040.01117.11
8.0.70.0000.00716.96
8.0.60.0000.00816.93
8.0.50.0040.00417.11
8.0.30.0100.01217.15
8.0.20.0100.01017.40
8.0.10.0040.00417.25
8.0.00.0140.00816.94
7.4.330.0000.00615.16
7.4.320.0000.00616.61
7.4.300.0000.00616.71
7.4.290.0030.00316.54
7.4.280.0050.00316.65
7.4.270.0030.00316.61
7.4.260.0000.00716.68
7.4.250.0030.00316.59
7.4.240.0020.00516.63
7.4.230.0050.00316.83
7.4.220.0090.01016.61
7.4.210.0140.00016.59
7.4.200.0040.00416.43
7.4.160.0080.00816.68
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0160.00216.59
7.4.120.0110.00716.73
7.4.110.0160.00016.73
7.4.100.0110.00516.57
7.4.90.0090.01016.59
7.4.80.0060.01319.39
7.4.70.0100.00716.78
7.4.60.0060.00916.51
7.4.50.0000.00916.67
7.4.40.0090.00916.76
7.4.30.0100.01316.84
7.4.00.0070.00714.98
7.3.330.0040.00213.30
7.3.320.0030.00313.13
7.3.310.0030.00316.46
7.3.300.0050.00316.42
7.3.290.0120.00316.44
7.3.280.0080.00916.40
7.3.270.0090.00917.40
7.3.260.0130.01316.84
7.3.250.0090.00916.54
7.3.240.0040.01516.39
7.3.230.0130.00616.45
7.3.210.0110.00716.76
7.3.200.0140.00819.39
7.3.190.0100.00616.64
7.3.180.0130.00316.80
7.3.170.0080.01116.63
7.3.160.0070.01116.50
7.3.10.0090.00617.02
7.3.00.0060.00616.68
7.2.330.0080.00816.69
7.2.320.0110.01116.95
7.2.310.0040.01216.66
7.2.300.0060.01016.94
7.2.290.0100.00717.03
7.2.130.0050.00817.11
7.2.120.0000.01317.09
7.2.110.0080.00617.07
7.2.100.0070.00917.02
7.2.90.0070.00617.20
7.2.80.0080.00517.06
7.2.70.0020.01517.01
7.2.60.0090.00717.00
7.2.50.0040.00617.07
7.2.40.0080.00617.10
7.2.30.0070.00517.22
7.2.20.0050.01017.16
7.2.10.0030.01317.15
7.2.00.0080.00717.95
7.1.250.0050.00715.87
7.1.100.0030.00918.36
7.1.70.0000.00817.39
7.1.60.0150.00619.40
7.1.50.0000.01117.12
7.1.00.0070.07022.33
7.0.200.0030.00617.10
7.0.140.0030.07322.18
7.0.60.0070.07019.87
7.0.50.0070.07317.91
7.0.40.0070.08719.96
7.0.30.0170.05320.09
7.0.20.0300.05720.17
7.0.10.0000.05320.09
7.0.00.0070.05020.13
5.6.280.0070.07020.88
5.6.210.0000.09020.62
5.6.200.0070.08018.18
5.6.190.0100.06020.35
5.6.180.0200.04720.21
5.6.170.0200.08020.41
5.6.160.0070.08320.44
5.6.150.0030.08718.21
5.6.140.0200.04318.07
5.6.130.0070.08718.18
5.6.120.0070.04320.88
5.6.110.0070.08720.97
5.6.100.0070.08320.88
5.6.90.0030.05320.98
5.6.80.0070.06320.40
5.5.350.3070.03720.42
5.5.340.0100.06717.97
5.5.330.0130.07720.37
5.5.320.0300.07020.33
5.5.310.0230.08320.46
5.5.300.0030.05317.91
5.5.290.0070.06017.95
5.5.280.0130.07720.87
5.5.270.0130.08020.97
5.5.260.0100.08320.97
5.5.250.0130.07320.79
5.5.240.0400.04720.03
5.4.450.0370.07019.53
5.4.440.0430.06319.25
5.4.430.0330.04019.20
5.4.420.0200.04719.40
5.4.410.0200.04719.13
5.4.400.0400.06719.07
5.4.390.0230.04018.91
5.4.380.0200.04019.08
5.4.370.0270.03319.16
5.4.360.0330.05319.06
5.4.350.0230.03719.13
5.4.340.0300.03318.80
5.4.320.0330.02718.88
5.4.310.0230.03718.93
5.4.300.0230.03719.07
5.4.290.0230.05318.91
5.4.280.0270.04019.13
5.4.270.0300.03319.09
5.4.260.0200.04019.06
5.4.250.0270.03319.08
5.4.240.0400.03318.77
5.4.230.0230.03719.09
5.4.220.0230.04319.08
5.4.210.0230.03719.13
5.4.200.0200.04018.91
5.4.190.0200.05318.87
5.4.180.0300.04718.91
5.4.170.0400.04719.20
5.4.160.0300.05719.08
5.4.150.0330.06318.88
5.4.140.0200.04016.40
5.4.130.0300.05716.34
5.4.120.0400.04316.29
5.4.110.0200.03716.28
5.4.100.0330.06316.51
5.4.90.0270.06316.41
5.4.80.0230.07016.42
5.4.70.0430.05316.26
5.4.60.0370.03716.19
5.4.50.0330.06316.28
5.4.40.0300.04716.38
5.4.30.0300.04716.40
5.4.20.0270.03716.45
5.4.10.0400.02716.38
5.4.00.0400.05715.67
5.3.290.0230.03714.71
5.3.280.0200.04014.43
5.3.270.0370.05014.55
5.3.260.0300.06014.44
5.3.250.0370.05714.46
5.3.240.0270.06314.65
5.3.230.0330.06714.45
5.3.220.0200.04014.51
5.3.210.0270.04314.40
5.3.200.0300.06314.47
5.3.190.0300.05714.51
5.3.180.0270.06714.44
5.3.170.0330.04014.52
5.3.160.0300.04314.45
5.3.150.0400.05014.35
5.3.140.0400.06314.64
5.3.130.0400.03714.53
5.3.120.0300.04014.52
5.3.110.0230.04714.38
5.3.100.0370.07013.98
5.3.90.0330.04013.96
5.3.80.0330.03713.92
5.3.70.0370.07013.89
5.3.60.0400.06713.91
5.3.50.0330.04013.79
5.3.40.0300.03713.90
5.3.30.0500.05013.68
5.3.20.0400.02713.80
5.3.10.0330.05713.50
5.3.00.0230.06713.59
5.2.170.0230.03311.00
5.2.160.0270.03311.16
5.2.150.0270.02711.19
5.2.140.0330.05310.98
5.2.130.0230.06311.11
5.2.120.0300.05710.96
5.2.110.0200.03710.94
5.2.100.0200.03711.15
5.2.90.0270.05710.99
5.2.80.0300.03310.94
5.2.70.0330.05310.93
5.2.60.0270.03311.22
5.2.50.0300.04711.04
5.2.40.0130.04311.09
5.2.30.0230.05310.84
5.2.20.0230.05710.86
5.2.10.0300.05710.81
5.2.00.0270.03310.63
5.1.60.0270.0239.88
5.1.50.0270.0439.92
5.1.40.0100.03310.06
5.1.30.0270.05010.25
5.1.20.0270.03310.24
5.1.10.0230.0439.96
5.1.00.0270.02710.04
5.0.50.0170.0479.83
5.0.40.0130.0339.83
5.0.30.0130.0309.83
5.0.20.0200.0379.83
5.0.10.0100.0239.83
5.0.00.0170.0339.83
4.4.90.0130.0239.83
4.4.80.0100.0179.83
4.4.70.0170.0179.83
4.4.60.0230.0279.83
4.4.50.0100.0209.83
4.4.40.0070.0279.83
4.4.30.0100.0239.83
4.4.20.0170.0339.83
4.4.10.0130.0139.83
4.4.00.0100.0479.83
4.3.110.0130.0179.83
4.3.100.0130.0109.83
4.3.90.0100.0309.83
4.3.80.0130.0509.83
4.3.70.0130.0309.83
4.3.60.0230.0239.83
4.3.50.0130.0239.83
4.3.40.0130.0309.83
4.3.30.0070.0379.83
4.3.20.0100.0239.83
4.3.10.0100.0179.83
4.3.00.0100.0209.83

preferences:
52.18 ms | 400 KiB | 5 Q