3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateWithTimezoneLocation = new \DateTime('now', new \DateTimeZone('Europe/Paris')); $dateWithTimezoneUTCDifference = new \DateTime($d->format(\DateTime::ISO8601)); var_dump($dateWithTimezoneLocation, $dateWithTimezoneUTCDifference, $dateWithTimezoneLocation->getLocation(), $dateWithTimezoneUTCDifference->getLocation()); var_dump($d2);

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.0070.00716.63
8.3.50.0110.00416.53
8.3.40.0100.01018.92
8.3.30.0070.00718.92
8.3.20.0070.00020.34
8.3.10.0050.00321.94
8.3.00.0100.00017.84
8.2.180.0100.00717.13
8.2.170.0150.00022.96
8.2.160.0070.00720.25
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00021.09
8.2.120.0070.00026.35
8.2.110.0030.00622.21
8.2.100.0040.00717.97
8.2.90.0050.00319.17
8.2.80.0060.00317.97
8.2.70.0050.00317.75
8.2.60.0030.00517.93
8.2.50.0000.00818.10
8.2.40.0050.00220.59
8.2.30.0050.00320.91
8.2.20.0060.00318.18
8.2.10.0040.00417.95
8.2.00.0040.00418.04
8.1.280.0150.00325.92
8.1.270.0030.00523.73
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.73
8.1.230.0070.00317.77
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0060.00317.47
8.1.180.0030.00518.10
8.1.170.0000.00818.70
8.1.160.0030.00318.96
8.1.150.0000.00818.90
8.1.140.0000.00719.59
8.1.130.0000.00718.90
8.1.120.0050.00317.68
8.1.110.0000.00917.57
8.1.100.0040.00417.52
8.1.90.0050.00317.65
8.1.80.0040.00417.62
8.1.70.0070.00017.57
8.1.60.0000.00717.66
8.1.50.0040.00417.66
8.1.40.0000.00817.54
8.1.30.0000.00817.68
8.1.20.0070.00017.76
8.1.10.0000.00917.71
8.1.00.0000.00717.50
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0040.00418.50
8.0.270.0030.00317.32
8.0.260.0030.00317.02
8.0.250.0030.00317.15
8.0.240.0000.00817.14
8.0.230.0000.01117.14
8.0.220.0030.00317.08
8.0.210.0020.00517.09
8.0.200.0000.00717.17
8.0.190.0040.00417.24
8.0.180.0000.00717.14
8.0.170.0040.00417.08
8.0.160.0000.00717.12
8.0.150.0000.00717.10
8.0.140.0040.00417.12
8.0.130.0000.00713.50
8.0.120.0080.00017.17
8.0.110.0030.00516.95
8.0.100.0040.00417.03
8.0.90.0050.00216.91
8.0.80.0100.00717.08
8.0.70.0030.00517.15
8.0.60.0070.00016.98
8.0.50.0000.00816.90
8.0.30.0080.01017.33
8.0.20.0120.00617.42
8.0.10.0000.00717.27
8.0.00.0070.01016.73
7.4.330.0060.00015.55
7.4.320.0050.00316.60
7.4.300.0000.00616.63
7.4.290.0070.00316.66
7.4.280.0040.00416.75
7.4.270.0040.00416.57
7.4.260.0000.00513.38
7.4.250.0050.00516.70
7.4.240.0000.00716.68
7.4.230.0070.00016.81
7.4.220.0150.00316.82
7.4.210.0040.01116.79
7.4.200.0000.00716.54
7.4.160.0090.00716.66
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0180.00616.67
7.4.120.0100.00716.72
7.4.110.0180.00016.65
7.4.100.0110.00716.79
7.4.90.0120.00616.80
7.4.80.0070.01119.39
7.4.70.0130.00316.75
7.4.60.0060.01016.92
7.4.50.0090.00316.39
7.4.40.0030.01316.68
7.4.30.0160.00016.75
7.4.00.0040.01415.21
7.3.330.0000.00513.40
7.3.320.0030.00313.20
7.3.310.0030.00316.39
7.3.300.0000.00716.36
7.3.290.0060.00916.40
7.3.280.0090.00716.37
7.3.270.0130.00717.40
7.3.260.0130.00316.43
7.3.250.0100.00816.60
7.3.240.0100.01116.49
7.3.230.0140.00316.50
7.3.210.0000.01816.53
7.3.200.0130.00416.76
7.3.190.0030.01316.52
7.3.180.0030.01316.68
7.3.170.0100.00716.46
7.3.160.0080.00816.58
7.3.120.0100.00314.93
7.3.110.0040.01114.82
7.3.100.0070.01015.08
7.3.90.0040.01114.97
7.3.80.0070.00715.11
7.3.70.0030.01215.07
7.3.60.0080.00815.16
7.3.50.0000.01615.09
7.3.40.0040.01414.91
7.3.30.0070.00714.60
7.3.20.0120.00316.91
7.3.10.0070.00516.66
7.3.00.0050.00816.60
7.2.330.0070.01116.55
7.2.320.0140.00716.97
7.2.310.0060.01016.70
7.2.300.0130.01016.71
7.2.290.0110.00516.86
7.2.250.0110.01115.23
7.2.240.0060.01315.25
7.2.230.0030.01315.40
7.2.220.0110.00715.11
7.2.210.0000.01714.96
7.2.200.0030.00814.80
7.2.190.0050.00515.10
7.2.180.0040.01515.15
7.2.170.0070.00315.20
7.2.130.0060.00317.06
7.2.120.0060.00616.92
7.2.110.0000.01016.82
7.2.100.0030.00716.73
7.2.90.0000.01416.86
7.2.80.0080.00516.75
7.2.70.0070.00417.04
7.2.60.0030.01116.99
7.2.50.0000.01016.93
7.2.40.0100.00016.75
7.2.30.0100.00317.00
7.2.20.0070.00716.98
7.2.10.0040.00416.91
7.2.00.0040.00918.27
7.1.330.0060.00615.85
7.1.320.0110.00015.90
7.1.310.0070.01015.62
7.1.300.0060.00615.63
7.1.290.0040.01115.93
7.1.280.0060.00915.76
7.1.270.0080.00815.65
7.1.260.0050.00815.79
7.1.250.0040.00415.50
7.1.200.0060.00815.91
7.1.100.0080.00517.92
7.1.70.0060.01017.34
7.1.60.0180.01435.05
7.1.50.0130.01834.74
7.1.40.0250.01334.66
7.1.30.0280.00834.78
7.1.20.0160.02034.57
7.1.10.0060.01116.73
7.1.00.0120.00316.78
7.0.200.0000.01616.82
7.0.190.0030.01316.83
7.0.180.0090.01016.21
7.0.170.0090.00916.22
7.0.160.0060.01216.19
7.0.150.0020.01416.20
7.0.140.0100.00716.25
7.0.130.0040.01116.48
7.0.120.0000.01416.63
7.0.110.0070.01016.46
7.0.100.0030.01616.45
7.0.90.0070.01316.39
7.0.80.0110.00516.34
7.0.70.0060.01316.47
7.0.60.0000.01716.02
7.0.50.0050.01316.34
7.0.40.0050.01416.41
7.0.30.0050.01516.51
7.0.20.0120.00616.45
7.0.10.0070.01116.54
7.0.00.0080.01116.53

preferences:
58.04 ms | 401 KiB | 5 Q