3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_format = 'Y-m-d H:i:s'; $day = "Sunday 4 week ago"; date_default_timezone_set("Europe/London"); $date = new DateTime($day); $date->modify('+1 day'); echo $date->format($date_format) . "\n"; date_default_timezone_set("Pacific/Auckland"); $date = new DateTime($day); $date->modify('+1 day'); echo $date->format($date_format) . "\n";

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.4.120.0100.00620.80
8.4.110.0110.01222.53
8.4.100.0050.00418.85
8.4.90.0070.00218.84
8.4.80.0090.00319.05
8.4.70.0090.00918.21
8.4.60.0060.00320.54
8.4.50.0100.01020.38
8.4.40.0060.01019.62
8.4.30.0100.01020.55
8.4.20.0070.00319.81
8.4.10.0090.00017.79
8.3.250.0120.00718.85
8.3.240.0080.01117.03
8.3.230.0120.00616.68
8.3.220.0040.00319.08
8.3.210.0120.00716.66
8.3.200.0040.00516.95
8.3.190.0130.00517.19
8.3.180.0110.00816.46
8.3.170.0090.00917.30
8.3.160.0160.00318.30
8.3.150.0090.00617.00
8.3.140.0080.00017.41
8.3.130.0070.00718.38
8.3.120.0090.00020.60
8.3.110.0060.01320.94
8.3.100.0070.00316.75
8.3.90.0080.00026.77
8.3.80.0030.00616.63
8.3.70.0120.00416.88
8.3.60.0150.00318.31
8.3.50.0070.00524.57
8.3.40.0060.00918.84
8.3.30.0170.00318.79
8.3.20.0030.00620.89
8.3.10.0080.00021.83
8.3.00.0040.00420.80
8.2.290.0130.00520.34
8.2.280.0160.00618.36
8.2.270.0060.01217.33
8.2.260.0090.00918.29
8.2.250.0060.00317.00
8.2.240.0070.00317.62
8.2.230.0000.00822.58
8.2.220.0060.00324.06
8.2.210.0140.00026.77
8.2.200.0000.01016.50
8.2.190.0090.00616.58
8.2.180.0180.00018.41
8.2.170.0110.00418.88
8.2.160.0140.00022.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.17
8.2.110.0040.00422.20
8.2.100.0100.00317.97
8.2.90.0000.00818.03
8.2.80.0090.00019.17
8.2.70.0030.00617.93
8.2.60.0040.00418.28
8.2.50.0030.00718.10
8.2.40.0050.00321.18
8.2.30.0000.00719.52
8.2.20.0050.00318.20
8.2.10.0000.00819.23
8.2.00.0040.00419.33
8.1.330.0110.00922.09
8.1.320.0110.01016.53
8.1.310.0070.00018.76
8.1.300.0150.00019.78
8.1.290.0110.00030.84
8.1.280.0150.00025.92
8.1.270.0050.00320.88
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0030.00721.10
8.1.220.0080.00017.91
8.1.210.0030.00618.77
8.1.200.0100.00017.60
8.1.190.0000.00817.38
8.1.180.0050.00318.10
8.1.170.0000.00818.75
8.1.160.0000.00720.27
8.1.150.0040.00419.04
8.1.140.0080.00020.77
8.1.130.0050.00320.23
8.1.120.0040.00417.76
8.1.110.0040.00417.74
8.1.100.0060.00317.71
8.1.90.0000.00717.74
8.1.80.0040.00417.72
8.1.70.0070.00017.67
8.1.60.0050.00317.71
8.1.50.0030.00517.78
8.1.40.0050.00317.75
8.1.30.0040.00417.83
8.1.20.0000.00817.71
8.1.10.0000.00717.77
8.1.00.0000.00717.65
8.0.300.0040.00420.04
8.0.290.0050.00317.00
8.0.280.0040.00418.56
8.0.270.0020.00517.02
8.0.260.0000.00720.07
8.0.250.0000.00717.25
8.0.240.0040.00417.27
8.0.230.0000.00717.31
8.0.220.0040.00417.19
8.0.210.0000.00717.17
8.0.200.0030.00317.16
8.0.190.0040.00417.30
8.0.180.0020.00517.24
8.0.170.0050.00517.20
8.0.160.0040.00417.23
8.0.150.0040.00417.20
8.0.140.0050.00517.07
8.0.130.0000.00513.66
8.0.120.0000.00717.14
8.0.110.0030.00617.16
8.0.100.0040.00417.22
8.0.90.0000.00917.26
8.0.80.0090.00617.18
8.0.70.0000.00717.16
8.0.60.0000.00717.22
8.0.50.0080.00017.01
8.0.30.0140.00717.36
8.0.20.0110.00717.19
8.0.10.0000.00817.14
8.0.00.0130.00717.03
7.4.330.0020.00215.55
7.4.320.0000.00616.73
7.4.300.0040.00416.63
7.4.290.0070.00016.64
7.4.280.0070.00016.64
7.4.270.0040.00416.74
7.4.260.0000.00513.52
7.4.250.0070.00016.72
7.4.240.0010.00616.70
7.4.230.0060.00316.52
7.4.220.0030.00316.69
7.4.210.0070.00716.58
7.4.200.0080.00016.91
7.4.140.0160.00417.86
7.4.130.0140.01016.66
7.4.120.0120.01116.61
7.4.110.0110.00916.66
7.4.100.0090.00916.71
7.4.90.0080.01116.63
7.4.80.0120.00319.39
7.4.70.0110.00716.67
7.4.60.0050.01516.77
7.4.50.0100.00316.67
7.4.40.0070.01016.73
7.4.00.0100.00615.30
7.3.330.0000.00716.29
7.3.320.0030.00313.37
7.3.310.0000.00716.54
7.3.300.0000.00716.44
7.3.290.0120.00616.49
7.3.280.0070.01116.44
7.3.260.0070.01116.77
7.3.230.0150.00916.65
7.3.210.0100.01016.41
7.3.200.0070.01016.71
7.3.190.0180.00316.73
7.3.180.0060.00916.47
7.3.170.0040.01416.70
7.3.160.0040.01216.65
7.3.120.0120.00614.98
7.3.110.0060.01315.13
7.3.100.0080.01114.73
7.3.90.0070.00714.92
7.3.80.0000.01314.74
7.3.70.0000.01614.96
7.3.60.0090.01115.06
7.3.50.0030.01614.94
7.3.40.0000.01514.72
7.3.30.0090.00415.15
7.3.20.0060.00814.98
7.3.10.0110.00314.87
7.3.00.0080.00515.00
7.2.330.0090.00917.00
7.2.320.0080.00817.05
7.2.310.0030.01316.80
7.2.300.0130.00416.81
7.2.290.0100.00616.98
7.2.240.0120.00414.88
7.2.230.0100.00515.18
7.2.220.0110.00415.46
7.2.210.0000.01415.45
7.2.200.0030.01215.31
7.2.190.0130.00815.18
7.2.180.0120.00315.26
7.2.170.0030.01215.31
7.2.160.0040.01015.17
7.2.150.0090.00515.29
7.2.140.0030.01015.11
7.2.130.0120.00315.32
7.2.120.0200.00015.15
7.2.110.0000.01815.10
7.2.100.0070.00715.18
7.2.90.0050.01115.51
7.2.80.0030.01215.37
7.2.70.0080.00515.03
7.2.60.0130.00915.33
7.2.50.0070.01415.44
7.2.40.0080.01315.40
7.2.30.0120.00915.29
7.2.20.0050.01015.34
7.2.10.0120.00915.39
7.2.00.0130.00415.14
7.1.330.0060.00914.35
7.1.320.0030.01014.28
7.1.310.0100.00314.09
7.1.300.0080.01114.18
7.1.290.0080.00614.03
7.1.280.0060.00813.86
7.1.270.0040.00814.11
7.1.260.0060.00614.32
7.1.250.0070.00714.16

preferences:
19.41 ms | 403 KiB | 5 Q