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($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.3.10.0030.00916.68
7.3.00.0080.00616.54
7.2.130.0050.00916.81
7.2.120.0070.00716.82
7.2.110.0090.00816.90
7.2.100.0050.00516.87
7.2.90.0080.00816.76
7.2.80.0080.00516.60
7.2.70.0080.00616.76
7.2.60.0010.01116.76
7.2.50.0080.00516.87
7.2.40.0060.01016.86
7.2.30.0080.00716.72
7.2.20.0090.00516.78
7.2.10.0110.00316.82
7.2.00.0060.00917.51
7.1.250.0060.00515.60
7.1.100.0080.00518.27
7.1.70.0030.00717.07
7.1.60.0120.01219.40
7.1.50.0130.00016.83
7.1.00.0130.06722.57
7.0.200.0140.00314.82
7.0.140.0030.07022.11
7.0.100.0130.08319.93
7.0.90.0100.06320.00
7.0.80.0070.07719.98
7.0.70.0070.05019.92
7.0.60.0100.08319.95
7.0.50.0170.08320.39
7.0.40.0130.07320.18
7.0.30.0070.08720.23
7.0.20.0130.08020.04
7.0.10.0100.08320.09
7.0.00.0170.08320.02
5.6.280.0030.07320.77
5.6.250.0030.07320.72
5.6.240.0100.07720.70
5.6.230.0100.08020.53
5.6.220.0230.06020.61
5.6.210.0100.07720.59
5.6.200.0030.08720.99
5.6.190.0070.07721.03
5.6.180.0100.07021.09
5.6.170.0100.08721.00
5.6.160.0100.07321.05
5.6.150.0170.07021.10
5.6.140.0100.06321.03
5.6.130.0130.08320.92
5.6.120.0030.08721.07
5.6.110.0000.09021.05
5.6.100.0070.09320.91
5.6.90.0200.07320.99
5.6.80.0100.06020.32
5.6.70.0070.08320.39
5.6.60.0200.03720.38
5.6.50.0030.07720.50
5.6.40.0100.03720.42
5.6.30.0000.07720.34
5.6.20.0000.06720.39
5.6.10.0030.05720.28
5.6.00.0030.04020.44
5.5.380.0100.04320.30
5.5.370.0030.09020.54
5.5.360.0030.08020.43
5.5.350.0170.06720.45
5.5.340.0170.07320.86
5.5.330.0100.08320.64
5.5.320.0070.08020.64
5.5.310.0170.05320.63
5.5.300.0130.06720.91
5.5.290.0070.07320.92
5.5.280.0070.06020.87
5.5.270.0000.08720.74
5.5.260.0070.07020.91
5.5.250.0130.07020.69
5.5.240.0070.07720.24
5.5.230.0100.05320.01
5.5.220.0070.05720.20
5.5.210.0030.05320.10
5.5.200.0070.04020.11
5.5.190.0030.04720.17
5.5.180.0070.04019.95
5.5.160.0070.04320.12
5.5.150.0030.04019.98
5.5.140.0070.03720.13
5.5.130.0030.04020.13
5.5.120.0070.08719.98
5.5.110.0070.03720.13
5.5.100.0070.06019.98
5.5.90.0000.04020.08
5.5.80.0000.04320.12
5.5.70.0070.03319.95
5.5.60.0100.03320.08
5.5.50.0000.04320.09
5.5.40.0100.03019.99
5.5.30.0030.04720.08
5.5.20.0100.03020.10
5.5.10.0070.03720.02
5.5.00.0000.04320.11
5.4.450.0100.07019.45
5.4.440.0100.08019.55
5.4.430.0030.07719.39
5.4.420.0100.07719.13
5.4.410.0030.08719.21
5.4.400.0200.06719.03
5.4.390.0130.07019.23
5.4.380.0100.07018.79
5.4.370.0100.07319.19
5.4.360.0030.06019.24
5.4.350.0030.06718.78
5.4.340.0030.04018.97
5.4.320.0000.04318.84
5.4.310.0070.03019.07
5.4.300.0030.04319.07
5.4.290.0000.04019.07
5.4.280.0030.06019.06
5.4.270.0100.06719.09
5.4.260.0100.03719.14
5.4.250.0100.03018.94
5.4.240.0000.04019.06
5.4.230.0070.03319.04
5.4.220.0070.03719.11
5.4.210.0000.04018.97
5.4.200.0030.05719.04
5.4.190.0000.04318.95
5.4.180.0030.03719.06
5.4.170.0070.05019.05
5.4.160.0030.03319.08
5.4.150.0030.03718.96
5.4.140.0030.03316.35
5.4.130.0100.03016.28
5.4.120.0070.03716.34
5.4.110.0030.03316.21
5.4.100.0070.03716.30
5.4.90.0000.04016.32
5.4.80.0030.03316.36
5.4.70.0000.04716.36
5.4.60.0100.03316.21
5.4.50.0000.03716.33
5.4.40.0030.03716.43
5.4.30.0030.05016.41
5.4.20.0030.07716.37
5.4.10.0100.03316.23
5.4.00.0000.04015.80
5.3.290.0030.04314.52
5.3.280.0070.03714.43
5.3.270.0000.04014.59
5.3.260.0000.03714.51
5.3.250.0000.04014.56
5.3.240.0070.04014.46
5.3.230.0030.04014.61
5.3.220.0030.03714.42
5.3.210.0030.03314.55
5.3.200.0000.04014.52
5.3.190.0000.04014.57
5.3.180.0070.03314.50
5.3.170.0030.06314.54
5.3.160.0000.04014.41
5.3.150.0030.07714.54
5.3.140.0030.03314.49
5.3.130.0070.03314.38
5.3.120.0070.03014.36
5.3.110.0030.04714.45
5.3.100.0000.05314.02
5.3.90.0130.02714.00
5.3.80.0100.07313.95
5.3.70.0100.03713.96
5.3.60.0100.07313.96
5.3.50.0070.02713.92
5.3.40.0130.06713.92
5.3.30.0130.06313.77
5.3.20.0100.03013.67
5.3.10.0130.03713.64
5.3.00.0070.07013.62
5.2.170.0100.05711.43
5.2.160.0070.06711.43
5.2.150.0070.06311.43
5.2.140.0070.06011.43
5.2.130.0100.02311.43
5.2.120.0000.06311.43
5.2.110.0030.06011.43
5.2.100.0030.05711.43
5.2.90.0200.03311.43
5.2.80.0070.05711.43
5.2.70.0030.06311.43
5.2.60.0070.04311.43
5.2.50.0000.07011.43
5.2.40.0030.06011.43
5.2.30.0030.06011.43
5.2.20.0030.05011.43
5.2.10.0100.05711.43
5.2.00.0070.05311.43
5.1.60.0000.03711.43
5.1.50.0000.05311.43
5.1.40.0100.05011.43
5.1.30.0030.04711.43
5.1.20.0030.06011.43
5.1.10.0070.05011.43
5.1.00.0070.05311.43
5.0.50.0070.04311.43
5.0.40.0030.04311.43
5.0.30.0070.05711.43
5.0.20.0030.04311.43
5.0.10.0070.04011.43
5.0.00.0030.06311.43
4.4.90.0000.03711.43
4.4.80.0030.03011.43
4.4.70.0030.03011.43
4.4.60.0000.02311.43
4.4.50.0030.03711.43
4.4.40.0000.03311.43
4.4.30.0030.01711.43
4.4.20.0070.02711.43
4.4.10.0030.03011.43
4.4.00.0030.05311.43
4.3.110.0030.03311.43
4.3.100.0000.03011.43
4.3.90.0070.02711.43
4.3.80.0030.05011.43
4.3.70.0070.03011.43
4.3.60.0030.02711.43
4.3.50.0030.02711.43
4.3.40.0100.03311.43
4.3.30.0030.03711.43
4.3.20.0030.02711.43
4.3.10.0000.02711.43
4.3.00.0030.03711.43

preferences:
36.11 ms | 401 KiB | 5 Q