3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xx = new DateTime('2000-01-01', new DateTimeZone('America/New_York')); $x = $xx->format('W'); $now = new DateTime('Sunday of week ' . $x); $y = $now->format('D'); echo $y;

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.0110.00716.75
8.3.50.0090.01121.98
8.3.40.0070.00718.95
8.3.30.0120.00319.15
8.3.20.0050.00320.34
8.3.10.0040.00421.64
8.3.00.0060.00319.63
8.2.180.0040.01116.60
8.2.170.0220.00022.96
8.2.160.0100.00319.46
8.2.150.0050.00524.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00917.75
8.2.110.0090.00020.65
8.2.100.0040.00818.16
8.2.90.0040.00419.20
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0040.00419.26
8.2.30.0000.00720.63
8.2.20.0060.00318.02
8.2.10.0000.00718.12
8.2.00.0040.00418.19
8.1.280.0100.01025.92
8.1.270.0030.00724.09
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00622.74
8.1.230.0080.00317.79
8.1.220.0000.00817.78
8.1.210.0050.00518.77
8.1.200.0030.00617.61
8.1.190.0000.00817.63
8.1.180.0060.00318.10
8.1.170.0060.00318.78
8.1.160.0000.00721.94
8.1.150.0000.00718.89
8.1.140.0040.00419.64
8.1.130.0070.00017.71
8.1.120.0070.00017.78
8.1.110.0040.00417.64
8.1.100.0000.00717.54
8.1.90.0050.00217.59
8.1.80.0000.00817.67
8.1.70.0030.00317.67
8.1.60.0070.00017.67
8.1.50.0030.00517.65
8.1.40.0040.00417.77
8.1.30.0030.00517.75
8.1.20.0000.00817.90
8.1.10.0040.00417.77
8.1.00.0040.00417.57
8.0.300.0070.00018.77
8.0.290.0040.00417.00
8.0.280.0000.00718.52
8.0.270.0040.00417.30
8.0.260.0000.00717.29
8.0.250.0040.00417.31
8.0.240.0040.00417.29
8.0.230.0030.00317.33
8.0.220.0000.00717.27
8.0.210.0000.00817.19
8.0.200.0030.00317.18
8.0.190.0000.00817.23
8.0.180.0060.00317.23
8.0.170.0040.00417.13
8.0.160.0060.00317.15
8.0.150.0000.00717.24
8.0.140.0000.00717.10
8.0.130.0000.00713.57
8.0.120.0000.00817.07
8.0.110.0000.00717.23
8.0.100.0050.00217.25
8.0.90.0040.00417.16
8.0.80.0120.00317.06
8.0.70.0000.00717.04
8.0.60.0050.00217.07
8.0.50.0070.00017.11
8.0.30.0080.01117.49
8.0.20.0080.01017.43
8.0.10.0040.00417.26
8.0.00.0080.01017.11
7.4.330.0020.00215.08
7.4.320.0000.00616.53
7.4.300.0060.00016.66
7.4.290.0040.00416.81
7.4.280.0030.00516.68
7.4.270.0000.00816.67
7.4.260.0040.00416.70
7.4.250.0030.00316.75
7.4.240.0050.00216.73
7.4.230.0040.00416.50
7.4.220.0100.00716.71
7.4.210.0140.00316.69
7.4.200.0030.00616.89
7.4.160.0030.01316.48
7.4.150.0090.00917.40
7.4.140.0050.01517.86
7.4.130.0100.00816.85
7.4.120.0120.00616.77
7.4.110.0100.01016.54
7.4.100.0070.01116.72
7.4.90.0130.00316.80
7.4.80.0070.01119.39
7.4.70.0130.00316.80
7.4.60.0070.01016.74
7.4.50.0050.00316.59
7.4.40.0040.01216.86
7.4.30.0070.01416.84
7.4.00.0100.00515.40
7.3.330.0000.00613.43
7.3.320.0030.00313.43
7.3.310.0030.00316.60
7.3.300.0000.00716.43
7.3.290.0080.00616.62
7.3.280.0070.01216.58
7.3.270.0070.01017.40
7.3.260.0120.00616.54
7.3.250.0140.00616.63
7.3.240.0140.00316.55
7.3.230.0130.00616.69
7.3.210.0130.00316.52
7.3.200.0070.01116.62
7.3.190.0070.01016.64
7.3.180.0030.01616.82
7.3.170.0090.00816.72
7.3.160.0060.00916.87
7.3.120.0070.01015.20
7.3.110.0100.00715.09
7.3.100.0110.00414.98
7.3.90.0090.00615.11
7.3.80.0090.00614.96
7.3.70.0000.01215.06
7.3.60.0090.00915.11
7.3.50.0060.00614.75
7.3.40.0040.01114.91
7.3.30.0080.00414.86
7.3.20.0030.01416.93
7.3.10.0070.00716.86
7.3.00.0050.00516.80
7.2.330.0070.01016.63
7.2.320.0070.01116.87
7.2.310.0060.01216.63
7.2.300.0190.00417.06
7.2.290.0030.01316.94
7.2.250.0100.01015.36
7.2.240.0130.00315.49
7.2.230.0040.01515.24
7.2.220.0080.00415.48
7.2.210.0120.00315.39
7.2.200.0060.00315.35
7.2.190.0060.00315.26
7.2.180.0140.00315.16
7.2.170.0080.00815.15
7.2.60.0040.01117.04
7.2.00.0060.00919.53
7.1.330.0070.00715.91
7.1.320.0100.00315.85
7.1.310.0090.00415.77
7.1.300.0030.00615.82
7.1.290.0000.00915.75
7.1.280.0080.00315.63
7.1.270.0030.01115.77
7.1.260.0060.00315.82
7.1.200.0040.01115.79
7.1.100.0030.01018.33
7.1.70.0000.01017.27
7.1.60.0070.01719.43
7.1.50.0030.01017.05
7.1.00.0100.07022.48
7.0.200.0000.00816.58
7.0.60.0070.07020.04
7.0.50.0030.06317.90
7.0.40.0100.07720.08
7.0.30.0170.04320.17
7.0.20.0330.08720.09
7.0.10.0030.07720.00
7.0.00.0030.04320.17
5.6.280.0000.03720.92
5.6.210.0030.07020.45
5.6.200.0170.07718.18
5.6.190.0130.07320.41
5.6.180.0300.04320.63
5.6.170.0170.04320.53
5.6.160.0030.07320.55
5.6.150.0130.06018.29
5.6.140.0000.04318.23
5.6.130.0030.06318.14
5.6.120.0070.05021.03
5.6.110.0030.08320.99
5.6.100.0030.09321.13
5.6.90.0030.08720.94
5.6.80.0070.03720.40
5.5.350.0330.07320.41
5.5.340.0100.06718.03
5.5.330.0170.08020.42
5.5.320.0270.05720.28
5.5.310.0230.08020.26
5.5.300.0100.07717.97
5.5.290.0070.08317.91
5.5.280.0070.06720.77
5.5.270.0100.04320.74
5.5.260.0130.03320.79
5.5.250.0170.07320.68
5.5.240.0000.08020.28
5.4.450.0230.05719.63
5.4.440.0130.06319.13
5.4.430.0200.06319.32
5.4.420.0230.06719.48
5.4.410.0300.06319.48
5.4.400.0230.04719.22
5.4.390.0200.07319.24
5.4.380.0130.06318.84
5.4.370.0170.06019.27
5.4.360.0170.06719.15
5.4.350.0130.06019.05
5.4.340.0170.07319.13
5.4.320.0330.04019.14
5.4.310.0170.05318.86
5.4.300.0200.05719.15
5.4.290.0330.04319.21
5.4.280.0270.05719.05
5.4.270.0200.07019.01
5.4.260.0130.06018.83
5.4.250.0130.05719.14
5.4.240.0230.05719.26
5.4.230.0230.04719.12
5.4.220.0230.05719.05
5.4.210.0170.05319.00
5.4.200.0100.06019.04
5.4.190.0130.05719.29
5.4.180.0130.05319.25
5.4.170.0330.04019.14
5.4.160.0170.05319.12
5.4.150.0170.05719.13
5.4.140.0130.05316.47
5.4.130.0170.05316.55
5.4.120.0270.05016.56
5.4.110.0130.06016.65
5.4.100.0230.05316.32
5.4.90.0170.05316.68
5.4.80.0170.05016.58
5.4.70.0300.05316.20
5.4.60.0200.05316.22
5.4.50.0270.04016.22
5.4.40.0200.04716.47
5.4.30.0200.04716.45
5.4.20.0130.05316.50
5.4.10.0300.05016.61
5.4.00.0100.06015.83

preferences:
57.06 ms | 401 KiB | 5 Q