3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = "2016-05-25 09:30:00"; // This is the expected timestamp considering $time is in UTC. $timestamp = 1464168600; $format = "Y-m-d H:i:s"; $date = \DateTime::createFromFormat($format, $time, new \DateTimeZone('America/Tegucigalpa')); $t = $date->format('U'); //1464190200 var_dump($timestamp, $t); if ($t !== $timestamp) { throw new \Exception('¿??¿?¿'); }

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.80.0090.00018.56
8.3.70.0150.00416.50
8.3.60.0110.00718.56
8.3.50.0140.00722.09
8.3.40.0120.00318.95
8.3.30.0160.00319.09
8.3.20.0070.00020.20
8.3.10.0030.00521.90
8.3.00.0030.00519.02
8.2.200.0090.00018.41
8.2.190.0090.00616.59
8.2.180.0140.00716.88
8.2.170.0060.00922.96
8.2.160.0110.00419.21
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00420.43
8.2.120.0040.00426.35
8.2.110.0000.00921.02
8.2.100.0090.00318.05
8.2.90.0000.00819.04
8.2.80.0050.00317.97
8.2.70.0000.00818.00
8.2.60.0030.00618.16
8.2.50.0080.00018.10
8.2.40.0000.00820.64
8.2.30.0000.00719.22
8.2.20.0040.00417.81
8.2.10.0050.00318.24
8.2.00.0000.00818.18
8.1.290.0040.00430.84
8.1.280.0100.00325.92
8.1.270.0000.00723.83
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0000.00822.61
8.1.230.0100.00017.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0040.00417.48
8.1.180.0050.00318.10
8.1.170.0040.00418.70
8.1.160.0000.00722.10
8.1.150.0000.00718.87
8.1.140.0040.00419.64
8.1.130.0000.00717.68
8.1.120.0040.00417.56
8.1.110.0000.00717.48
8.1.100.0050.00317.54
8.1.90.0060.00317.63
8.1.80.0040.00417.46
8.1.70.0000.00717.55
8.1.60.0000.00817.65
8.1.50.0030.00617.60
8.1.40.0000.00917.61
8.1.30.0070.00317.64
8.1.20.0040.00417.73
8.1.10.0040.00417.54
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0050.00216.84
8.0.280.0070.00018.39
8.0.270.0030.00317.30
8.0.260.0070.00017.27
8.0.250.0000.00717.13
8.0.240.0070.00017.01
8.0.230.0070.00017.14
8.0.220.0030.00717.10
8.0.210.0000.00817.04
8.0.200.0060.00017.06
8.0.190.0030.00617.12
8.0.180.0000.00816.99
8.0.170.0000.00717.06
8.0.160.0000.00717.10
8.0.150.0030.00317.07
8.0.140.0040.00417.01
8.0.130.0000.00613.52
8.0.120.0060.00317.03
8.0.110.0040.00417.03
8.0.100.0000.00816.98
8.0.90.0030.00517.22
8.0.80.0090.00617.13
8.0.70.0030.00617.25
8.0.60.0040.00417.09
8.0.50.0000.00816.98
8.0.30.0100.01017.05
8.0.20.0090.01117.40
8.0.10.0030.00617.27
8.0.00.0070.02016.77
7.4.330.0080.00015.08
7.4.320.0030.00316.46
7.4.300.0040.00416.49
7.4.290.0040.00416.64
7.4.280.0030.00516.55
7.4.270.0040.00416.52
7.4.260.0030.00316.41
7.4.250.0040.00416.61
7.4.240.0000.00716.60
7.4.230.0000.00716.48
7.4.220.0100.00716.74
7.4.210.0060.01116.71
7.4.200.0070.00016.51
7.4.160.0100.00516.59
7.4.150.0110.00617.40
7.4.140.0120.00517.86
7.4.130.0060.01116.57
7.4.120.0120.00616.63
7.4.110.0130.00416.66
7.4.100.0100.00716.91
7.4.90.0070.01016.75
7.4.80.0140.00619.39
7.4.70.0110.00716.54
7.4.60.0100.00716.73
7.4.50.0030.01116.61
7.4.40.0060.01016.66
7.4.30.0130.00716.50
7.4.00.0060.01215.18
7.3.330.0000.00613.38
7.3.320.0030.00313.35
7.3.310.0050.00316.54
7.3.300.0040.00416.44
7.3.290.0060.00016.47
7.3.280.0100.00916.47
7.3.270.0070.01417.40
7.3.260.0130.00716.73
7.3.250.0100.01016.60
7.3.240.0090.00816.53
7.3.230.0050.01116.43
7.3.210.0090.00616.75
7.3.200.0110.01116.64
7.3.190.0160.00016.54
7.3.180.0070.01616.32
7.3.170.0120.00616.58
7.3.160.0130.00316.52
7.2.330.0040.01516.44
7.2.320.0000.01716.57
7.2.310.0100.01316.67
7.2.300.0120.01016.71
7.2.290.0090.00916.63
7.2.60.0040.01116.81
7.2.00.0100.00319.27
7.1.200.0100.00316.07
7.1.100.0030.00918.22
7.1.70.0000.00717.22
7.1.60.0040.01119.87
7.1.50.0070.01417.06
7.1.00.0000.08022.42
7.0.200.0260.00915.13
7.0.80.0130.06319.92
7.0.70.0300.05719.90
7.0.60.0470.04719.99
7.0.50.0770.06320.44
7.0.40.0630.05320.35
7.0.30.0500.05720.38
7.0.20.0530.05720.39
7.0.10.0500.07320.34
7.0.00.0500.08320.30
5.6.280.0130.06021.11
5.6.220.0330.06320.73
5.6.210.0430.05320.58
5.6.200.0470.05721.09
5.6.190.0600.06321.03
5.6.180.0470.05021.17
5.6.170.2930.06321.05
5.6.160.0370.07021.09
5.6.150.0330.06721.09
5.6.140.0400.05721.16
5.6.130.0400.08321.07
5.6.120.0370.06721.06
5.6.110.0230.07021.05
5.6.100.0300.08321.10
5.6.90.0770.06721.07
5.6.80.0370.06320.39
5.6.70.0470.05320.45
5.6.60.0570.06320.45
5.6.50.0430.06020.46
5.6.40.0430.06020.44
5.6.30.0270.06020.45
5.6.20.0430.07020.52
5.6.10.0600.06320.42
5.6.00.0370.07320.39
5.5.360.0400.07320.41
5.5.350.0230.07320.39
5.5.340.0570.05020.88
5.5.330.0370.08320.67
5.5.320.0230.07720.89
5.5.310.1570.07020.79
5.5.300.0500.06320.84
5.5.290.0330.05720.95
5.5.280.0300.06020.89
5.5.270.0330.06020.92
5.5.260.1830.06720.86
5.5.250.0600.04720.74
5.5.240.7300.07320.05
5.5.230.0400.05720.21
5.5.220.0600.05020.33
5.5.210.0530.05320.31
5.5.200.0530.06720.23
5.5.190.0230.05320.28
5.5.180.0300.06020.18
5.5.160.0370.07720.27
5.5.150.0830.05320.18
5.5.140.1470.07020.27
5.5.130.0370.08020.23
5.5.120.0170.07320.28
5.5.110.0230.06020.19
5.5.100.0430.06720.18
5.5.90.0300.06720.17
5.5.80.0030.07720.01
5.5.70.0200.08020.17
5.5.60.0270.06720.20
5.5.50.0230.07320.13
5.5.40.0200.07720.10
5.5.30.0170.08020.21
5.5.20.0270.05320.11
5.5.10.0130.06320.13
5.5.00.0100.06720.18

preferences:
27.42 ms | 401 KiB | 5 Q