3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time1 = '2014-08-26 14:35:29'; $time2 = '2014-08-26 15:35:29'; $time1 = '2014-08-26 14:35:29'; $time2 = time(); var_dump(new DateTime($time2));var_dump($time2 );exit; $strtotime1 = strtotime($time1); $strtotime2 = strtotime($time2); //$hourdiff = round((strtotime($strtotime2) - strtotime($strtotime1))/3600, 1); //echo $hourdiff; exit; //echo $strtotime1; //var_dump(new DateTime()); //echo $strtotime2; echo "\n"; echo round(($strtotime2 - $strtotime1)/3600);

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)
7.2.60.0250.00512.77
7.1.200.0040.00415.93
7.1.70.0040.00416.98
7.1.60.0070.01719.40
7.1.50.0080.00417.05
7.1.00.0030.07722.36
7.0.200.0120.00315.11
7.0.140.0070.06722.08
7.0.100.0000.06019.96
7.0.90.0070.07719.89
7.0.80.0070.04719.93
7.0.70.0070.04319.93
7.0.60.0170.06319.87
7.0.50.0000.04720.31
7.0.40.0070.08320.17
7.0.30.0130.07320.11
7.0.20.0070.07020.14
7.0.10.0100.03720.04
7.0.00.0100.05320.04
5.6.280.0030.07320.84
5.6.250.0070.04020.59
5.6.240.0070.05320.48
5.6.230.0100.08020.65
5.6.220.0030.04320.57
5.6.210.0170.06320.68
5.6.200.0130.04321.07
5.6.190.0030.04320.95
5.6.180.0130.07321.07
5.6.170.0130.08020.88
5.6.160.0070.08321.05
5.6.150.0130.06720.94
5.6.140.0070.04720.95
5.6.130.0070.06021.03
5.6.120.0100.08021.10
5.6.110.0100.08021.04
5.6.100.0100.07320.99
5.6.90.0070.08320.96
5.6.80.0070.04320.46
5.6.70.0030.08020.39
5.6.60.0030.07320.36
5.6.50.0030.06320.43
5.6.40.0070.05020.49
5.6.30.0030.04020.49
5.6.20.0030.05720.48
5.6.10.0000.06320.51
5.6.00.0070.08320.38
5.5.380.0070.06720.56
5.5.370.0070.08020.39
5.5.360.0200.07020.34
5.5.350.0030.06020.43
5.5.340.0100.08320.86
5.5.330.0000.05020.82
5.5.320.0100.07720.77
5.5.310.0100.07720.75
5.5.300.0130.07720.92
5.5.290.0030.06020.86
5.5.280.0170.07720.91
5.5.270.0070.08020.76
5.5.260.0070.05020.78
5.5.250.0100.07720.66
5.5.240.0030.05020.27
5.5.230.0070.07720.10
5.5.220.0130.07320.16
5.5.210.0030.05720.25
5.5.200.0130.06020.18
5.5.190.0030.04320.21
5.5.180.0100.04020.23
5.5.160.0200.06320.08
5.5.150.0030.05319.98
5.5.140.0030.07020.12
5.5.130.0130.04020.20
5.5.120.0000.07720.10
5.5.110.0070.07720.17
5.5.100.0130.07320.07
5.5.90.0030.04020.04
5.5.80.0070.07720.16
5.5.70.0100.07320.15
5.5.60.0070.07020.00
5.5.50.0070.05719.93
5.5.40.0030.06720.08
5.5.30.0100.08019.98
5.5.20.0070.07320.04
5.5.10.0070.07320.03
5.5.00.0100.07720.04
5.4.450.0100.07719.17
5.4.440.0170.07319.35
5.4.430.0070.06019.46
5.4.420.0070.04719.36
5.4.410.0070.04719.28
5.4.400.0100.07019.18
5.4.390.0130.05318.87
5.4.380.0130.06719.05
5.4.370.0070.06319.23
5.4.360.0130.07719.09
5.4.350.0130.04319.04
5.4.340.0130.07318.84
5.4.320.0070.04719.04
5.4.310.0130.07319.09
5.4.300.0030.05719.04
5.4.290.0030.08019.03
5.4.280.0100.07019.13
5.4.270.0030.05319.14
5.4.260.0030.08019.12
5.4.250.0030.07319.06
5.4.240.0100.06718.93
5.4.230.0070.07319.17
5.4.220.0070.06319.08
5.4.210.0030.08319.12
5.4.200.0100.04319.11
5.4.190.0070.06718.89
5.4.180.0100.07019.11
5.4.170.0200.06019.07
5.4.160.0100.07019.07
5.4.150.0030.07319.20
5.4.140.0070.07316.41
5.4.130.0000.05016.48
5.4.120.0030.07016.29
5.4.110.0070.03316.29
5.4.100.0030.04716.46
5.4.90.0100.07016.42
5.4.80.0070.07716.34
5.4.70.0130.06716.25
5.4.60.0000.07016.36
5.4.50.0030.06716.50
5.4.40.0030.04316.50
5.4.30.0030.07716.31
5.4.20.0030.04316.33
5.4.10.0130.07016.24
5.4.00.0100.06015.89
5.3.290.0070.06314.69
5.3.280.0000.08014.71
5.3.270.0030.06714.57
5.3.260.0100.04714.61
5.3.250.0100.07714.66
5.3.240.0100.05314.66
5.3.230.0070.08014.52
5.3.220.0100.06714.68
5.3.210.0030.04714.68
5.3.200.0070.05314.56
5.3.190.0130.05314.51
5.3.180.0100.07314.58
5.3.170.0100.07014.66
5.3.160.0030.06014.67
5.3.150.0130.06314.59
5.3.140.0070.07314.48
5.3.130.0070.06714.58
5.3.120.0070.06314.53
5.3.110.0070.07314.52
5.3.100.0000.04013.91
5.3.90.0000.04714.11
5.3.80.0100.07314.13
5.3.70.0000.05014.12
5.3.60.0100.06014.05
5.3.50.0070.04013.97
5.3.40.0100.07313.96
5.3.30.0070.07713.83
5.3.20.0130.07013.66
5.3.10.0030.07313.57
5.3.00.0070.07313.75
5.2.170.0070.03311.24
5.2.160.0030.06011.04
5.2.150.0030.07311.16
5.2.140.0100.05711.20
5.2.130.0100.04311.21
5.2.120.0030.06311.11
5.2.110.0070.03311.20
5.2.100.0030.05711.01
5.2.90.0000.07011.16
5.2.80.0070.04311.15
5.2.70.0070.06011.15
5.2.60.0030.04011.11
5.2.50.0070.05010.95
5.2.40.0000.04311.07
5.2.30.0070.05711.06
5.2.20.0030.06311.00
5.2.10.0030.05010.76
5.2.00.0100.02710.82
5.1.60.0000.02710.71
5.1.50.0000.04010.71
5.1.40.0070.05010.71
5.1.30.0070.05310.71
5.1.20.0070.05010.71
5.1.10.0070.04310.71
5.1.00.0100.05010.71
5.0.50.0000.04710.71
5.0.40.0070.03710.71
5.0.30.0000.03310.71
5.0.20.0030.03010.71
5.0.10.0070.04010.71
5.0.00.0030.05310.71
4.4.90.0000.02010.71
4.4.80.0000.03310.71
4.4.70.0000.03710.71
4.4.60.0000.03010.71
4.4.50.0030.03310.71
4.4.40.0000.04310.71
4.4.30.0100.01710.71
4.4.20.0000.03010.71
4.4.10.0000.03310.71
4.4.00.0000.05010.71
4.3.110.0000.02310.71
4.3.100.0030.02710.71
4.3.90.0000.02010.71
4.3.80.0070.04310.71
4.3.70.0000.02310.71
4.3.60.0070.03010.71
4.3.50.0000.03710.71
4.3.40.0000.05710.71
4.3.30.0030.02710.71
4.3.20.0070.03310.71
4.3.10.0000.01710.71
4.3.00.0000.03710.71

preferences:
34.99 ms | 401 KiB | 5 Q