3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("UTC"); $tijd_in_UTC = '2014-02-10 20:18'; // voorbeeld, dit komt uit de db $datetime = new DateTime($tijd_in_UTC); echo $datetime->format('Y-m-d H:i:sP') , PHP_EOL; $datetime->setTimezone(new DateTimeZone('Europe/Amsterdam')); // of misschien kan de user zijn eigen timezone instellen en komt die ook uit de database? echo $datetime->format('Y-m-d H:i:sP'), PHP_EOL;

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.20.0090.00917.80
8.4.10.0030.00617.79
8.3.150.0040.01518.86
8.3.140.0060.00318.76
8.3.130.0060.00318.43
8.3.120.0060.00319.10
8.3.110.0090.00616.41
8.3.100.0170.00324.06
8.3.90.0040.00426.77
8.3.80.0000.00817.97
8.3.70.0060.01018.55
8.3.60.0060.01518.55
8.3.50.0110.00722.05
8.3.40.0150.00418.88
8.3.30.0100.01020.13
8.3.20.0050.00320.07
8.3.10.0080.00621.92
8.3.00.0040.00422.45
8.2.260.0090.00916.60
8.2.250.0000.00818.61
8.2.240.0080.00817.16
8.2.230.0060.00320.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0040.00416.63
8.2.190.0070.01118.18
8.2.180.0070.01116.75
8.2.170.0170.00018.91
8.2.160.0080.00622.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00317.61
8.2.110.0040.00420.57
8.2.100.0080.00417.91
8.2.90.0050.00320.64
8.2.80.0090.00017.97
8.2.70.0040.00418.05
8.2.60.0000.00918.16
8.2.50.0000.00817.88
8.2.40.0080.00817.88
8.2.30.0000.00719.30
8.2.20.0000.00717.95
8.2.10.0000.00718.01
8.2.00.0050.00318.01
8.1.310.0060.00318.01
8.1.300.0090.00018.05
8.1.290.0000.00930.84
8.1.280.0180.00325.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0150.00323.46
8.1.230.0080.00420.90
8.1.220.0030.00617.74
8.1.210.0030.00719.14
8.1.200.0040.00417.48
8.1.190.0080.00017.48
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00718.81
8.1.150.0000.00818.64
8.1.140.0000.00717.45
8.1.130.0070.00017.95
8.1.120.0050.00217.57
8.1.110.0000.00817.58
8.1.100.0000.00717.61
8.1.90.0070.00017.57
8.1.80.0000.00717.67
8.1.70.0070.00017.54
8.1.60.0030.00617.55
8.1.50.0020.00517.47
8.1.40.0050.00317.61
8.1.30.0030.00617.68
8.1.20.0040.00417.63
8.1.10.0070.00017.74
8.1.00.0000.00717.55
8.0.300.0040.00420.04
8.0.290.0070.00416.75
8.0.280.0070.00018.62
8.0.270.0060.00318.20
8.0.260.0030.00317.01
8.0.250.0000.00817.14
8.0.240.0000.00817.11
8.0.230.0000.00717.01
8.0.220.0030.00316.89
8.0.210.0030.00317.02
8.0.200.0000.00716.95
8.0.190.0030.00317.08
8.0.180.0070.00017.05
8.0.170.0060.00316.94
8.0.160.0040.00416.99
8.0.150.0040.00416.87
8.0.140.0080.00017.02
8.0.130.0050.00013.46
8.0.120.0040.00416.96
8.0.110.0030.00517.00
8.0.100.0070.00017.09
8.0.90.0040.00416.88
8.0.80.0090.00616.98
8.0.70.0080.00017.08
8.0.60.0000.00717.02
8.0.50.0000.00716.97
8.0.30.0100.01017.16
8.0.20.0110.00817.40
8.0.10.0040.00417.02
8.0.00.0070.01116.88
7.4.330.0020.00215.00
7.4.320.0000.00616.44
7.4.300.0000.00616.65
7.4.290.0070.00016.57
7.4.280.0030.00316.66
7.4.270.0000.00716.54
7.4.260.0040.00413.27
7.4.250.0040.00416.57
7.4.240.0040.00416.53
7.4.230.0040.00416.51
7.4.220.0000.00716.79
7.4.210.0030.01716.63
7.4.200.0030.00316.32
7.4.190.0070.00016.81
7.4.160.0090.00616.42
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0160.00416.62
7.4.120.0110.00716.57
7.4.110.0100.00716.83
7.4.100.0170.00016.53
7.4.90.0110.00716.62
7.4.80.0040.01419.39
7.4.70.0040.01416.46
7.4.60.0100.00616.59
7.4.50.0050.00316.51
7.4.40.0050.00822.77
7.4.30.0040.01416.70
7.4.00.0000.01815.05
7.3.330.0050.00013.16
7.3.320.0050.00013.17
7.3.310.0070.00016.47
7.3.300.0030.00316.24
7.3.290.0060.00816.35
7.3.280.0090.00816.29
7.3.270.0080.00817.40
7.3.260.0120.00616.55
7.3.250.0140.00616.46
7.3.240.0140.00716.24
7.3.230.0100.00716.53
7.3.210.0090.00916.40
7.3.200.0130.01019.39
7.3.190.0110.01116.53
7.3.180.0110.00516.23
7.3.170.0120.00416.36
7.3.160.0120.00816.52
7.3.120.0090.00614.52
7.3.10.0050.00916.63
7.3.00.0110.00816.71
7.2.330.0120.00916.87
7.2.320.0090.01516.55
7.2.310.0100.00616.74
7.2.300.0030.01316.46
7.2.290.0080.00816.54
7.2.130.0080.00816.89
7.2.120.0090.00517.10
7.2.110.0060.00816.92
7.2.100.0080.00417.01
7.2.90.0070.00717.01
7.2.80.0070.00917.12
7.2.70.0040.01017.12
7.2.60.0060.00816.91
7.2.50.0070.00817.09
7.2.40.0050.00916.99
7.2.30.0100.00617.11
7.2.20.0050.00916.93
7.2.10.0080.01016.89
7.2.00.0080.00517.64
7.1.250.0050.00915.81
7.1.200.0090.00315.97
7.1.100.0120.00918.22
7.1.70.0090.00017.16
7.1.60.0060.00619.43
7.1.50.0040.01916.84
7.1.00.0030.07722.43
7.0.200.0030.00517.14
7.0.140.0000.07721.92
7.0.60.0170.07719.93
7.0.50.0100.03317.90
7.0.40.0030.04720.25
7.0.30.0630.05720.34
7.0.20.0300.08020.18
7.0.10.0300.07320.17
7.0.00.0170.04020.19
5.6.280.0100.06720.98
5.6.210.0070.03720.72
5.6.200.0030.08718.23
5.6.190.0070.05020.34
5.6.180.0270.05320.54
5.6.170.0370.08320.47
5.6.160.0030.05320.54
5.6.150.0030.07318.11
5.6.140.0070.05318.11
5.6.130.0100.05718.18
5.6.120.0030.04320.96
5.6.110.0100.07320.98
5.6.100.0170.07320.89
5.6.90.0130.06321.10
5.6.80.0170.07320.37
5.6.70.0230.02720.37
5.5.350.0230.06020.41
5.5.340.0100.07317.92
5.5.330.0100.05720.40
5.5.320.0200.05720.21
5.5.310.0370.06720.20
5.5.300.0030.09018.00
5.5.290.0030.04017.87
5.5.280.0000.09020.88
5.5.270.0030.04020.79
5.5.260.0030.06720.86
5.5.250.0100.07720.70
5.5.240.0030.05320.21
5.4.450.0330.05319.33
5.4.440.0170.06319.11
5.4.430.0200.05719.12
5.4.420.0400.04319.46
5.4.410.0130.05318.97
5.4.400.0330.05718.72
5.4.390.0430.07718.68
5.4.380.0270.05018.77
5.4.370.0170.05018.52
5.4.360.0130.05718.72
5.4.350.0110.04711.97
5.4.340.0090.03611.97
5.4.320.0040.03812.46
5.4.310.0110.04912.45
5.4.300.0100.04612.45
5.4.290.0070.03712.45
5.4.280.0050.03812.35
5.4.270.0060.03612.35
5.4.260.0050.04212.35
5.4.250.0130.05018.67
5.4.240.0130.05718.94
5.4.230.0170.06718.86
5.4.220.0200.04018.72
5.4.210.0130.05718.65
5.4.200.0030.05718.70
5.4.190.0230.04718.81
5.4.180.0130.05018.60
5.4.170.0230.04718.64
5.4.160.0070.06018.93
5.4.150.0070.05318.85
5.4.140.0100.04716.35
5.4.130.0100.05716.31
5.4.120.0070.05316.56
5.4.110.0130.06316.39
5.4.100.0130.04316.37
5.4.90.0230.03316.52
5.4.80.0030.05316.48
5.4.70.0170.04016.20
5.4.60.0130.05016.13
5.4.50.0130.04016.09
5.4.40.0130.04316.50
5.4.30.0030.05316.25
5.4.20.0200.03316.37
5.4.10.0100.05016.13
5.4.00.0170.03715.70
5.3.290.0060.04212.80
5.3.280.0070.06014.61
5.3.270.0100.05314.49
5.3.260.0100.04714.70
5.3.250.0130.05314.45
5.3.240.0030.05714.52
5.3.230.0130.04314.61
5.3.220.0100.05014.57
5.3.210.0100.05714.47
5.3.200.0170.04014.45
5.3.190.0100.04714.34
5.3.180.0070.05014.58
5.3.170.0130.04314.42
5.3.160.0100.04714.45
5.3.150.0100.04714.43
5.3.140.0070.06014.55
5.3.130.0100.05014.59
5.3.120.0100.05014.56
5.3.110.0100.04714.38
5.3.100.0130.04313.73
5.3.90.0100.04713.93
5.3.80.0100.05013.87
5.3.70.0030.05714.03
5.3.60.0070.04714.15
5.3.50.0030.05713.78
5.3.40.0070.05013.88
5.3.30.0000.05713.83
5.3.20.0100.05313.55
5.3.10.0170.06313.68
5.3.00.0170.04713.65
5.2.170.0100.04711.15
5.2.160.0000.05011.29
5.2.150.0030.05011.14
5.2.140.0100.05011.25
5.2.130.0000.05011.11
5.2.120.0070.04711.00
5.2.110.0100.05011.00
5.2.100.0070.04011.12
5.2.90.0070.03711.21
5.2.80.0130.05011.08
5.2.70.0030.04311.09
5.2.60.0100.04011.14
5.2.50.0100.03711.05
5.2.40.0100.05010.90
5.2.30.0030.04710.89
5.2.20.0030.04010.79
5.2.10.0000.04310.91
5.2.00.0000.04310.87
5.1.60.0030.0339.95
5.1.50.0000.03710.18
5.1.40.0030.0379.74
5.1.30.0070.03310.36
5.1.20.0030.03710.43
5.1.10.0030.03710.03
5.1.00.0030.03310.32
5.0.50.0030.0378.69
5.0.40.0000.0308.45
5.0.30.0030.0408.24
5.0.20.0000.0338.02
5.0.10.0030.0277.95
5.0.00.0030.0538.21
4.4.90.0070.0177.29
4.4.80.0000.0237.29
4.4.70.0070.0207.29
4.4.60.0030.0207.29
4.4.50.0000.0237.29
4.4.40.0070.0407.29
4.4.30.0000.0237.29
4.4.20.0000.0237.29
4.4.10.0030.0207.29
4.4.00.0030.0377.29
4.3.110.0030.0207.29
4.3.100.0070.0277.29
4.3.90.0000.0207.29
4.3.80.0000.0377.29
4.3.70.0000.0237.29
4.3.60.0030.0207.29
4.3.50.0070.0237.29
4.3.40.0070.0377.29
4.3.30.0030.0207.29
4.3.20.0000.0277.29
4.3.10.0030.0237.29
4.3.00.0100.0236.88

preferences:
37.03 ms | 403 KiB | 5 Q