3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Check dates //$curDateTime = time(); $oldDateTime = $customerLock[0]['change_date']; $oldDateTime = 1443530876;//This is the output from the above one, just for this Example. $date1 = new DateTime(); $date1->createFromFormat('H:i:s d/m/Y', Date('H:i:s d/m/Y', $curDateTime)); $date2 = new DateTime(); $date2->createFromFormat('H:i:s d/m/Y', Date('H:i:s d/m/Y', $oldDateTime)); $unix_to_date = Date('H:i:s d/m/Y', $oldDateTime); //to check the valid timestamp //die(var_dump($unix_to_date)); //outputs: string(19) "14:47:56 29/09/2015" //die(var_dump($date1)); //outputs: object(DateTime)#3 (3) { ["date"]=> string(26) "2015-09-30 12:31:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } //valid object as it's the currentDate earlier set. die(var_dump($date2)); //outputs: object(DateTime)#4 (3) { ["date"]=> string(26) "2015-09-30 12:32:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } //Which is wrong as it's the current date time. ?> }

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.0040.01518.53
8.3.60.0070.01118.55
8.3.50.0100.01221.20
8.3.40.0140.00018.93
8.3.30.0100.00318.96
8.3.20.0040.00420.28
8.3.10.0040.00423.66
8.3.00.0050.00319.80
8.2.180.0160.00316.75
8.2.170.0120.00322.96
8.2.160.0090.00620.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.88
8.2.110.0060.00322.27
8.2.100.0120.00017.75
8.2.90.0000.00719.17
8.2.80.0040.00417.97
8.2.70.0040.00817.88
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0030.00719.34
8.2.30.0030.00719.91
8.2.20.0030.00517.76
8.2.10.0050.00218.11
8.2.00.0000.00718.00
8.1.280.0110.00425.92
8.1.270.0070.00720.37
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0120.00922.79
8.1.230.0060.00617.48
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0000.01017.60
8.1.190.0000.00917.48
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0000.00721.90
8.1.150.0000.00718.79
8.1.140.0060.00317.59
8.1.130.0000.00717.58
8.1.120.0000.00717.64
8.1.110.0090.00017.57
8.1.100.0000.00817.54
8.1.90.0030.00317.54
8.1.80.0050.00317.59
8.1.70.0050.00317.61
8.1.60.0000.00817.57
8.1.50.0060.00317.67
8.1.40.0080.00017.61
8.1.30.0030.00517.78
8.1.20.0000.00817.81
8.1.10.0050.00217.75
8.1.00.0030.00617.72
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0070.00018.34
8.0.270.0000.00717.25
8.0.260.0070.00017.13
8.0.250.0040.00417.04
8.0.240.0040.00417.13
8.0.230.0000.00717.05
8.0.220.0030.00317.11
8.0.210.0040.00416.98
8.0.200.0000.00717.15
8.0.190.0110.00017.16
8.0.180.0000.00817.17
8.0.170.0040.00417.14
8.0.160.0000.00717.16
8.0.150.0030.00517.10
8.0.140.0040.00417.05
8.0.130.0050.00313.45
8.0.120.0080.00017.09
8.0.110.0040.00417.09
8.0.100.0030.00516.95
8.0.90.0040.00417.13
8.0.80.0060.01617.08
8.0.70.0030.00517.05
8.0.60.0050.00217.04
8.0.50.0040.00416.95
8.0.30.0100.00617.17
8.0.20.0110.01117.40
8.0.10.0080.00017.23
8.0.00.0070.01016.98
7.4.330.0000.00815.08
7.4.320.0030.00316.57
7.4.300.0000.00616.67
7.4.290.0000.01116.60
7.4.280.0070.00016.71
7.4.270.0040.00416.65
7.4.260.0000.00716.65
7.4.250.0040.00416.49
7.4.240.0030.00416.59
7.4.230.0070.00016.55
7.4.220.0100.01316.54
7.4.210.0100.00716.61
7.4.200.0040.00416.66
7.4.160.0080.00816.68
7.4.150.0060.01317.40
7.4.140.0120.00817.86
7.4.130.0100.01116.61
7.4.120.0070.01016.54
7.4.110.0090.01216.67
7.4.100.0090.01216.54
7.4.90.0110.00616.35
7.4.80.0140.00319.39
7.4.70.0100.00816.55
7.4.60.0110.00716.86
7.4.50.0040.00416.72
7.4.40.0180.00016.79
7.4.30.0000.01816.72
7.4.00.0040.01115.17
7.3.330.0000.00613.09
7.3.320.0000.00513.12
7.3.310.0000.00716.45
7.3.300.0030.00416.43
7.3.290.0100.00716.40
7.3.280.0090.01016.48
7.3.270.0110.00617.40
7.3.260.0150.00316.58
7.3.240.0040.01216.78
7.3.230.0060.01316.39
7.3.210.0110.00816.59
7.3.200.0100.00716.82
7.3.190.0060.01216.31
7.3.180.0050.01016.65
7.3.170.0060.01016.68
7.3.160.0120.00616.45
7.2.330.0030.01516.96
7.2.320.0120.00916.40
7.2.310.0060.01016.78
7.2.300.0150.00616.66
7.2.290.0000.01816.69
7.2.60.0060.00617.05
7.2.00.0000.01119.51
7.1.200.0060.00615.98
7.1.100.0090.00918.24
7.1.70.0040.00717.35
7.1.60.0100.01419.12
7.1.50.0040.00717.13
7.1.00.0030.07722.31
7.0.200.0070.00717.07
7.0.90.0070.08720.05
7.0.80.0070.08320.00
7.0.70.0100.07019.90
7.0.60.0070.07719.96
7.0.50.0100.04720.35
7.0.40.0130.07320.11
7.0.30.0130.07020.04
7.0.20.0070.05320.14
7.0.10.0070.04320.16
7.0.00.0000.09020.12
5.6.280.0000.05720.98
5.6.240.0130.07720.68
5.6.230.0100.04020.63
5.6.220.0130.07720.52
5.6.210.0100.05020.57
5.6.200.0070.06321.02
5.6.190.0100.06721.16
5.6.180.0100.08321.02
5.6.170.0000.06021.16
5.6.160.0170.07321.03
5.6.150.0030.08021.04
5.6.140.0030.05021.00
5.6.130.0000.08721.16
5.6.120.0070.07721.11
5.6.110.0100.08021.16
5.6.100.0070.07720.93
5.6.90.0170.07021.09
5.6.80.0070.07720.52
5.6.70.0070.07720.40
5.6.60.0070.08320.53
5.6.50.0070.05020.40
5.6.40.0070.04720.31
5.6.30.0070.05320.43
5.6.20.0030.08720.29
5.6.10.0200.06320.37
5.6.00.0170.06720.36
5.5.380.0130.08320.41
5.5.370.0070.08320.40
5.5.360.0200.07020.55
5.5.350.0130.08020.38
5.5.340.0070.07720.88
5.5.330.0030.05720.83
5.5.320.0130.08020.75
5.5.310.0170.04020.77
5.5.300.0130.06720.88
5.5.290.0000.05020.75
5.5.280.0030.06320.81
5.5.270.0070.05720.89
5.5.260.0130.08720.76
5.5.250.0130.09020.64
5.5.240.0030.07320.14
5.5.230.0070.08020.29
5.5.220.0100.05020.08
5.5.210.0070.05320.14
5.5.200.0070.07720.21
5.5.190.0030.06320.08
5.5.180.0000.05319.97
5.5.160.0200.06720.17
5.5.150.0030.05720.10
5.5.140.0100.07020.17
5.5.130.0130.04720.23
5.5.120.0100.07720.17
5.5.110.0000.08320.13
5.5.100.0030.08320.01
5.5.90.0000.07020.15
5.5.80.0130.05320.06
5.5.70.0100.07720.14
5.5.60.0070.07720.09
5.5.50.0000.06020.08
5.5.40.0070.07020.04
5.5.30.0070.08320.07
5.5.20.0030.08320.02
5.5.10.0100.07719.99
5.5.00.0030.08020.08
5.4.450.0070.05019.20
5.4.440.0070.04719.11
5.4.430.0100.04319.47
5.4.420.0100.07319.22
5.4.410.0130.03319.16
5.4.400.0130.06719.13
5.4.390.0070.07019.05
5.4.380.0170.06718.81
5.4.370.0070.08318.97
5.4.360.0100.06019.23
5.4.350.0070.03719.02
5.4.340.0130.06719.23
5.4.320.0100.05018.90
5.4.310.0100.07319.12
5.4.300.0100.04019.07
5.4.290.0030.08019.02
5.4.280.0070.04019.00
5.4.270.0070.06319.14
5.4.260.0070.04319.12
5.4.250.0070.06018.89
5.4.240.0100.05318.97
5.4.230.0130.04719.11
5.4.220.0100.07319.11
5.4.210.0130.07019.02
5.4.200.0100.05719.09
5.4.190.0070.05718.77
5.4.180.0100.03719.11
5.4.170.0070.07319.01
5.4.160.0030.07019.07
5.4.150.0100.07318.76
5.4.140.0000.06316.34
5.4.130.0130.05716.33
5.4.120.0170.06716.43
5.4.110.0000.05316.27
5.4.100.0030.07016.48
5.4.90.0200.05316.33
5.4.80.0070.07016.37
5.4.70.0030.07716.24
5.4.60.0130.04716.16
5.4.50.0130.06316.14
5.4.40.0100.07016.34
5.4.30.0070.05316.29
5.4.20.0070.07316.43
5.4.10.0030.08016.18
5.4.00.0030.07715.71

preferences:
59.9 ms | 401 KiB | 5 Q