3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Berlin'); function GmtTimeToLocalTime($time) { //date_default_timezone_set('UTC'); $new_date = new DateTime($time); $new_date->setTimeZone(new DateTimeZone('Europe/Berlin')); return $new_date->format("Y-m-d H:i:s"); } var_dump(GmtTimeToLocalTime('2016-11-21 00:00:04 GMT'));

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.70.0090.00618.27
8.3.60.0110.00416.63
8.3.50.0070.00921.97
8.3.40.0110.00418.87
8.3.30.0100.00518.67
8.3.20.0040.00419.12
8.3.10.0040.00421.91
8.3.00.0000.00819.02
8.2.190.0110.00716.88
8.2.180.0140.00016.63
8.2.170.0040.01522.96
8.2.160.0100.00320.34
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0060.00321.20
8.2.120.0040.00426.35
8.2.110.0060.00320.52
8.2.100.0060.00617.64
8.2.90.0050.00317.75
8.2.80.0030.00517.97
8.2.70.0040.00417.80
8.2.60.0060.00317.93
8.2.50.0050.00318.10
8.2.40.0000.00820.54
8.2.30.0000.00819.26
8.2.20.0050.00218.02
8.2.10.0050.00218.08
8.2.00.0080.00017.88
8.1.280.0110.00725.92
8.1.270.0000.00823.91
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0070.00322.00
8.1.230.0040.00720.85
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0030.00717.36
8.1.180.0000.00818.10
8.1.170.0060.00318.77
8.1.160.0000.00718.95
8.1.150.0000.00720.14
8.1.140.0040.00419.66
8.1.130.0000.00717.72
8.1.120.0030.00317.54
8.1.110.0000.00717.46
8.1.100.0030.00617.57
8.1.90.0000.00717.62
8.1.80.0040.00417.57
8.1.70.0070.00017.53
8.1.60.0000.00817.64
8.1.50.0030.00617.52
8.1.40.0030.00617.71
8.1.30.0000.00817.73
8.1.20.0040.00417.86
8.1.10.0020.00517.55
8.1.00.0050.00317.61
8.0.300.0000.00818.77
8.0.290.0000.00816.88
8.0.280.0000.00718.52
8.0.270.0040.00417.18
8.0.260.0000.00717.14
8.0.250.0000.00717.00
8.0.240.0040.00417.00
8.0.230.0030.00317.01
8.0.220.0040.00417.10
8.0.210.0030.00316.91
8.0.200.0050.00217.11
8.0.190.0080.00017.14
8.0.180.0030.00517.05
8.0.170.0070.00016.96
8.0.160.0030.00316.98
8.0.150.0000.00716.95
8.0.140.0040.00416.99
8.0.130.0050.00013.50
8.0.120.0040.00416.99
8.0.110.0040.00416.96
8.0.100.0000.00716.81
8.0.90.0030.00316.98
8.0.80.0110.01116.99
8.0.70.0040.00417.00
8.0.60.0000.00716.93
8.0.50.0000.00717.06
8.0.30.0110.00717.21
8.0.20.0090.00917.40
8.0.10.0040.00417.14
8.0.00.0030.01416.90
7.4.330.0000.00515.55
7.4.320.0000.00716.66
7.4.300.0030.00316.65
7.4.290.0040.00416.64
7.4.280.0040.00416.65
7.4.270.0000.00716.67
7.4.260.0000.00716.62
7.4.250.0000.00716.53
7.4.240.0030.00316.66
7.4.230.0030.00316.76
7.4.220.0100.00916.69
7.4.210.0130.01016.82
7.4.200.0000.00716.68
7.4.160.0130.00616.58
7.4.150.0110.01417.40
7.4.140.0130.00517.86
7.4.130.0110.00716.70
7.4.120.0090.00916.54
7.4.110.0120.00616.74
7.4.100.0130.00716.45
7.4.90.0100.01316.46
7.4.80.0050.01419.39
7.4.70.0130.00316.61
7.4.60.0080.00816.47
7.4.50.0030.01016.71
7.4.40.0080.00916.61
7.4.30.0110.01016.66
7.4.00.0070.00715.02
7.3.330.0030.00313.39
7.3.320.0050.00013.23
7.3.310.0040.00416.42
7.3.300.0070.00016.24
7.3.290.0060.01016.35
7.3.280.0100.00616.39
7.3.270.0100.00717.40
7.3.260.0130.00516.36
7.3.250.0130.00716.51
7.3.240.0120.00716.50
7.3.230.0060.01216.62
7.3.210.0070.01016.60
7.3.200.0080.00916.46
7.3.190.0040.01016.49
7.3.180.0110.00416.48
7.3.170.0180.00316.52
7.3.160.0160.00816.70
7.3.10.0060.00816.56
7.3.00.0060.01116.74
7.2.330.0090.00916.82
7.2.320.0070.01016.66
7.2.310.0080.01016.76
7.2.300.0140.00616.48
7.2.290.0060.01116.57
7.2.130.0130.00316.76
7.2.120.0100.00616.78
7.2.110.0050.01016.77
7.2.100.0070.00916.90
7.2.90.0120.00516.95
7.2.80.0050.01316.82
7.2.70.0080.00916.82
7.2.60.0070.01016.71
7.2.50.0080.00816.92
7.2.40.0070.00716.93
7.2.30.0090.00616.63
7.2.20.0100.00716.79
7.2.10.0080.00816.84
7.2.00.0080.00616.98
7.1.250.0050.00915.78
7.1.200.0060.00615.41
7.1.70.0020.00517.09
7.1.60.0000.01117.34
7.1.00.0000.08022.30
7.0.200.0100.00615.03
7.0.130.0030.07722.11
7.0.120.0070.06021.97
7.0.110.0070.06322.14
7.0.100.0200.06021.97
7.0.90.0070.07722.07
7.0.80.0130.07722.11
7.0.70.0070.06022.11
7.0.60.0200.06022.00
7.0.50.0130.05322.13
7.0.40.0170.05022.12
7.0.30.0200.04722.12
7.0.20.0100.05722.07
7.0.10.0200.04322.15
7.0.00.0170.05022.13
5.6.280.0200.06321.08
5.6.270.0130.07020.88
5.6.260.0200.05020.88
5.6.250.0100.05720.79
5.6.240.0100.06320.88
5.6.230.0070.05721.10
5.6.220.0170.06720.73
5.6.210.0170.04720.98
5.6.200.0070.06020.84
5.6.190.0130.05320.84
5.6.180.0130.05320.95
5.6.170.0130.05721.03
5.6.160.0100.05720.86
5.6.150.0100.05721.01
5.6.140.0030.07720.97
5.6.130.0100.05720.82
5.6.120.0130.05320.79
5.6.110.0030.06321.02
5.6.100.0170.05021.05
5.6.90.0070.06021.05
5.6.80.0000.06020.33
5.6.70.0030.05720.13
5.6.60.0030.06020.13
5.6.50.0100.05020.22
5.6.40.0130.05020.20
5.6.30.0070.05720.38
5.6.20.0130.06020.19
5.6.10.0100.05320.29
5.6.00.0130.04720.19

preferences:
54.5 ms | 401 KiB | 5 Q