3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("Pacific/Auckland"); #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.0090.00819.52
8.5.00.0150.00920.22
8.4.150.0020.00014.05
8.4.140.0120.00917.69
8.4.130.0140.00718.00
8.4.120.0060.00920.62
8.4.110.0120.00818.66
8.4.100.0090.01217.96
8.4.90.0060.00320.61
8.4.80.0140.00517.91
8.4.70.0110.00918.11
8.4.60.0040.00418.85
8.4.50.0110.00619.46
8.4.40.0100.01019.75
8.4.30.0130.00620.46
8.4.20.0040.00419.62
8.4.10.0130.00617.60
8.3.280.0170.00518.66
8.3.270.0110.00816.54
8.3.260.0150.00316.40
8.3.250.0100.00818.76
8.3.240.0080.00816.71
8.3.230.0130.00616.57
8.3.220.0100.00818.88
8.3.210.0120.00816.46
8.3.200.0090.01016.84
8.3.190.0020.00617.17
8.3.180.0070.00818.27
8.3.170.0090.00918.72
8.3.160.0030.00616.58
8.3.150.0090.00920.76
8.3.140.0040.00416.78
8.3.130.0030.00518.58
8.3.120.0090.00018.95
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0040.00816.63
8.3.70.0160.00018.43
8.3.60.0080.00818.18
8.3.50.0070.00524.38
8.3.40.0150.00418.75
8.3.30.0110.00418.86
8.3.20.0060.00322.48
8.3.10.0000.00821.92
8.3.00.0080.00020.64
8.2.290.0070.01220.42
8.2.280.0100.00718.48
8.2.270.0110.00717.24
8.2.260.0000.01520.45
8.2.250.0050.00316.83
8.2.240.0030.01018.84
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0100.00026.77
8.2.200.0110.00516.36
8.2.190.0070.00716.58
8.2.180.0150.00318.29
8.2.170.0070.01022.96
8.2.160.0130.00322.30
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0110.00426.16
8.2.110.0060.00320.59
8.2.100.0060.00617.85
8.2.90.0000.00818.43
8.2.80.0030.00618.05
8.2.70.0060.00318.05
8.2.60.0060.00318.22
8.2.50.0070.00418.10
8.2.40.0090.00019.59
8.2.30.0000.00719.46
8.2.20.0040.00418.20
8.2.10.0040.00419.30
8.2.00.0080.00019.32
8.1.330.0120.00716.38
8.1.320.0120.00616.45
8.1.310.0080.00016.92
8.1.300.0120.00320.11
8.1.290.0060.00330.84
8.1.280.0160.00025.92
8.1.270.0000.00820.51
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0100.00019.51
8.1.230.0040.00821.03
8.1.220.0030.00518.02
8.1.210.0060.00319.04
8.1.200.0030.00617.50
8.1.190.0030.00717.48
8.1.180.0000.00818.10
8.1.170.0040.00418.63
8.1.160.0030.00520.25
8.1.150.0040.00418.84
8.1.140.0000.00720.61
8.1.130.0000.00720.21
8.1.120.0000.00717.74
8.1.110.0040.00417.64
8.1.100.0000.00717.71
8.1.90.0000.00717.69
8.1.80.0040.00417.58
8.1.70.0000.00717.48
8.1.60.0000.00817.61
8.1.50.0040.00417.63
8.1.40.0060.00317.54
8.1.30.0060.00317.73
8.1.20.0040.00417.62
8.1.10.0000.00717.54
8.1.00.0040.00417.44
8.0.300.0040.00419.71
8.0.290.0030.00516.88
8.0.280.0040.00418.47
8.0.270.0030.00516.99
8.0.260.0030.00320.15
8.0.250.0070.00017.14
8.0.240.0000.00817.20
8.0.230.0000.00617.16
8.0.220.0040.00417.15
8.0.210.0050.00217.11
8.0.200.0000.00717.17
8.0.190.0020.00517.10
8.0.180.0040.00417.21
8.0.170.0000.00917.11
8.0.160.0040.00417.10
8.0.150.0070.00016.97
8.0.140.0070.00017.02
8.0.130.0030.00313.61
8.0.120.0040.00417.11
8.0.110.0000.00717.16
8.0.100.0000.00816.94
8.0.90.0090.00016.97
8.0.80.0110.00617.18
8.0.70.0040.00417.13
8.0.60.0050.00217.10
8.0.50.0000.00716.94
8.0.30.0100.00917.41
8.0.20.0140.00317.45
8.0.10.0040.00417.12
8.0.00.0090.01016.97
7.4.330.0000.00415.55
7.4.320.0000.00616.67
7.4.300.0000.00716.55
7.4.290.0080.00016.57
7.4.280.0040.00716.57
7.4.270.0030.00316.62
7.4.260.0030.00313.32
7.4.250.0030.00316.66
7.4.240.0040.00416.56
7.4.230.0000.00716.84
7.4.220.0020.00516.69
7.4.210.0120.00316.65
7.4.200.0040.00416.75
7.4.130.0080.01116.55
7.4.120.0090.00916.54
7.4.110.0030.01516.46
7.4.100.0050.01116.54
7.4.90.0080.01116.76
7.4.80.0060.01019.39
7.4.70.0070.01116.67
7.4.60.0110.00516.77
7.4.50.0090.00616.34
7.4.40.0130.01016.61
7.4.00.0060.01015.07
7.3.330.0000.00816.29
7.3.320.0080.00013.30
7.3.310.0070.00016.43
7.3.300.0000.00716.30
7.3.290.0080.01016.49
7.3.280.0060.00916.39
7.3.260.0060.01616.68
7.3.240.0120.00516.60
7.3.230.0090.00916.41
7.3.210.0090.00616.65
7.3.200.0090.00616.55
7.3.190.0080.00816.71
7.3.180.0060.01016.77
7.3.170.0060.00916.76
7.3.160.0040.01416.51
7.3.120.0050.01114.86
7.3.110.0070.01014.90
7.3.100.0050.01215.17
7.3.90.0030.01015.00
7.3.80.0110.00314.94
7.3.70.0030.01014.96
7.3.60.0070.00514.91
7.3.50.0060.00714.78
7.3.40.0060.00715.03
7.3.30.0080.00614.85
7.3.20.0110.00516.00
7.3.10.0030.00915.83
7.3.00.0090.00515.87
7.2.330.0090.00916.98
7.2.320.0070.01016.85
7.2.310.0100.01716.89
7.2.300.0080.00816.99
7.2.290.0100.00716.66
7.2.250.0070.01314.98
7.2.240.0110.00615.30
7.2.230.0070.01014.83
7.2.220.0050.01015.28
7.2.210.0090.00615.07
7.2.200.0060.00915.17
7.2.190.0050.00915.21
7.2.180.0050.00715.25
7.2.170.0080.00715.09
7.2.160.0040.01015.06
7.2.150.0090.00416.09
7.2.140.0030.01016.12
7.2.130.0090.00516.17
7.2.120.0090.00816.07
7.2.110.0080.01016.23
7.2.100.0170.01016.01
7.2.90.0040.01215.95
7.2.80.0100.00516.16
7.2.70.0080.00816.26
7.2.60.0110.00316.10
7.2.50.0100.00516.09
7.2.40.0070.00716.13
7.2.30.0080.00816.07
7.2.20.0050.01316.00
7.2.10.0050.00916.17
7.2.00.0070.00516.16
7.1.330.0030.01214.83
7.1.320.0090.00514.97
7.1.310.0070.00514.91
7.1.300.0040.00915.06
7.1.290.0040.00814.95
7.1.280.0050.00815.02
7.1.270.0050.00614.86
7.1.260.0090.00514.97
7.1.250.0040.01015.03
7.1.240.0120.00315.96
7.1.230.0090.00916.04
7.1.220.0090.00316.10
7.1.210.0030.01015.83
7.1.200.0070.00715.96
7.1.190.0000.00815.71
7.1.180.0030.01315.59
7.1.170.0050.00515.73
7.1.160.0040.00815.89
7.1.150.0000.01115.59
7.1.140.0120.00315.69
7.1.130.0050.00815.99
7.1.120.0000.01016.08
7.1.110.0030.00715.90
7.1.100.0030.00715.94
7.1.90.0100.00315.80
7.1.80.0030.00915.89
7.1.70.0060.00616.11
7.1.60.0030.01315.83
7.1.50.0040.01115.73
7.1.40.0060.00615.80
7.1.30.0000.00815.58
7.1.20.0030.00615.90
7.1.10.0040.00715.84
7.1.00.0060.00615.91

preferences:
188.14 ms | 403 KiB | 5 Q