3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("Europe/London"); #date_default_timezone_set("Pacific/Auckland"); $date_format = 'Ymd'; $day = "Sunday 4 week ago"; $start_of_the_week = strtotime($day); $next_day = $start_of_the_week + (60 * 60 * 24 * 1); $next_day = date($date_format, $next_day); echo '<h1>'.$next_day.'</h1>';

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.5.10.0110.00819.58
8.5.00.0100.01120.14
8.4.150.0020.00014.05
8.4.140.0160.00517.68
8.4.130.0060.00318.76
8.4.120.0080.00823.79
8.4.110.0130.00819.21
8.4.100.0110.01017.99
8.4.90.0150.00520.40
8.4.80.0060.01418.92
8.4.70.0130.00620.57
8.4.60.0050.00420.84
8.4.50.0120.00819.66
8.4.40.0070.00719.59
8.4.30.0170.00320.35
8.4.20.0030.00719.67
8.4.10.0090.00917.84
8.3.280.0120.00720.66
8.3.270.0120.00916.66
8.3.260.0120.00716.50
8.3.250.0090.01018.73
8.3.240.0110.00717.15
8.3.230.0070.00516.76
8.3.220.0050.00719.04
8.3.210.0110.00816.70
8.3.200.0060.00616.64
8.3.190.0060.00218.87
8.3.180.0050.00218.66
8.3.170.0130.00619.02
8.3.160.0090.00916.72
8.3.150.0140.00417.09
8.3.140.0080.00016.77
8.3.130.0030.00617.07
8.3.120.0050.00318.67
8.3.110.0030.00620.94
8.3.100.0070.01116.62
8.3.90.0000.00826.77
8.3.80.0070.00316.63
8.3.70.0170.00316.63
8.3.60.0140.00718.20
8.3.50.0090.00424.61
8.3.40.0120.00619.09
8.3.30.0070.00718.84
8.3.20.0060.00322.48
8.3.10.0080.00022.09
8.3.00.0040.00420.67
8.2.290.0100.00916.57
8.2.280.0120.00718.29
8.2.270.0000.01517.00
8.2.260.0120.00618.91
8.2.250.0100.01018.43
8.2.240.0000.00817.30
8.2.230.0040.00722.58
8.2.220.0060.00324.06
8.2.210.0060.00326.77
8.2.200.0030.00616.50
8.2.190.0100.00616.58
8.2.180.0070.01118.31
8.2.170.0140.00322.96
8.2.160.0030.01022.23
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0090.00021.18
8.2.100.0090.00318.09
8.2.90.0060.00319.34
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0070.00018.34
8.2.50.0030.00718.10
8.2.40.0000.00819.42
8.2.30.0040.00419.31
8.2.20.0040.00418.07
8.2.10.0050.00319.09
8.2.00.0030.00619.46
8.1.330.0090.00921.84
8.1.320.0120.00718.17
8.1.310.0040.00416.76
8.1.300.0030.00616.36
8.1.290.0080.00030.84
8.1.280.0080.00825.92
8.1.270.0030.00622.19
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0040.00719.78
8.1.230.0070.00418.01
8.1.220.0060.00317.86
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0090.00317.38
8.1.180.0050.00318.10
8.1.170.0030.00618.76
8.1.160.0070.00020.31
8.1.150.0080.00018.98
8.1.140.0050.00220.64
8.1.130.0040.00417.69
8.1.120.0030.00317.72
8.1.110.0040.00417.69
8.1.100.0070.00017.57
8.1.90.0050.00217.68
8.1.80.0000.00717.67
8.1.70.0000.00717.57
8.1.60.0040.00417.76
8.1.50.0060.00617.62
8.1.40.0070.00317.66
8.1.30.0060.00317.75
8.1.20.0000.00817.73
8.1.10.0040.00417.61
8.1.00.0040.00417.60
8.0.300.0070.00018.77
8.0.290.0080.00017.00
8.0.280.0040.00418.61
8.0.270.0040.00416.98
8.0.260.0030.00316.99
8.0.250.0070.00017.18
8.0.240.0060.00317.12
8.0.230.0030.00317.14
8.0.220.0040.00417.05
8.0.210.0040.00417.07
8.0.200.0040.00417.17
8.0.190.0050.00317.25
8.0.180.0030.00617.09
8.0.170.0040.00417.17
8.0.160.0030.00317.20
8.0.150.0000.00817.04
8.0.140.0070.00017.12
8.0.130.0030.00313.50
8.0.120.0000.00817.06
8.0.110.0040.00417.06
8.0.100.0040.00417.16
8.0.90.0040.00417.02
8.0.80.0090.00617.13
8.0.70.0000.00717.12
8.0.60.0060.00316.95
8.0.50.0040.00417.07
8.0.30.0100.00717.04
8.0.20.0110.00817.45
8.0.10.0070.00017.09
8.0.00.0120.00616.93
7.4.330.0060.00015.55
7.4.320.0000.00616.72
7.4.300.0070.00016.59
7.4.290.0000.00816.63
7.4.280.0070.00416.62
7.4.270.0030.00316.64
7.4.260.0050.00013.35
7.4.250.0030.00316.68
7.4.240.0020.00616.66
7.4.230.0040.00416.81
7.4.220.0060.00116.72
7.4.210.0130.00716.73
7.4.200.0000.00716.74
7.4.130.0000.01716.82
7.4.120.0140.00316.75
7.4.110.0070.01016.65
7.4.100.0100.00616.64
7.4.90.0180.00016.85
7.4.80.0060.01219.39
7.4.70.0060.00916.81
7.4.60.0070.01016.63
7.4.50.0000.01516.55
7.4.40.0070.01516.63
7.4.00.0070.00715.32
7.3.330.0000.00916.46
7.3.320.0070.00013.34
7.3.310.0030.00316.45
7.3.300.0030.00316.48
7.3.290.0080.01016.44
7.3.260.0030.01516.81
7.3.240.0080.00816.59
7.3.230.0110.00616.39
7.3.210.0070.01016.71
7.3.200.0060.01116.52
7.3.190.0100.01016.72
7.3.180.0060.01116.43
7.3.170.0100.01016.51
7.3.160.0040.01216.50
7.3.120.0180.00414.90
7.3.110.0120.00914.74
7.3.100.0100.01014.55
7.3.90.0110.01414.90
7.3.80.0060.01214.54
7.3.70.0170.00315.06
7.3.60.0180.00715.04
7.3.50.0120.01514.76
7.3.40.0150.00814.72
7.3.30.0180.00514.75
7.3.20.0170.00314.78
7.3.10.0120.00915.18
7.3.00.0100.00614.85
7.2.330.0110.00717.05
7.2.320.0090.00916.67
7.2.310.0070.01316.79
7.2.300.0060.01616.80
7.2.290.0060.01216.80
7.2.240.0160.00815.34
7.2.230.0120.01315.48
7.2.220.0110.01115.11
7.2.210.0190.00415.25
7.2.200.0170.00315.13
7.2.190.0120.01215.25
7.2.180.0160.00815.34
7.2.170.0040.01815.33
7.2.160.0100.01015.16
7.2.150.0170.00715.07
7.2.140.0150.00615.11
7.2.130.0060.01915.32
7.2.120.0120.01215.09
7.2.110.0120.01215.33
7.2.100.0130.01015.16
7.2.90.0180.00415.08
7.2.80.0180.00915.04
7.2.70.0190.00615.32
7.2.60.0150.00815.21
7.2.50.0050.01415.33
7.2.40.0150.00515.29
7.2.30.0060.01515.26
7.2.20.0120.00915.22
7.2.10.0040.01715.27
7.2.00.0130.00315.12
7.1.330.0160.00514.21
7.1.320.0050.01414.18
7.1.310.0200.00314.15
7.1.300.0190.00514.13
7.1.290.0120.00913.92
7.1.280.0050.01613.82
7.1.270.0140.00314.12
7.1.260.0170.00313.96
7.1.250.0160.00813.96

preferences:
166.67 ms | 403 KiB | 5 Q