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(); $strtotime1 = strtotime($time1); //$strtotime2 = strtotime($time2); //var_dump($strtotime1 );"\n"; //var_dump($time2);exit; //$hourdiff = round((strtotime($strtotime2) - strtotime($strtotime1))/3600, 1); //echo $hourdiff; exit; //echo $strtotime1; //var_dump(new DateTime()); //echo $strtotime2; echo "\n"; echo round(($time2 - $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.4.00.0050.01315.11
7.3.120.0120.00315.16
7.3.110.0070.01014.88
7.3.100.0080.00814.86
7.3.90.0030.01014.61
7.3.80.0080.00414.70
7.3.70.0060.00614.79
7.3.60.0070.00715.09
7.3.50.0100.00015.13
7.3.40.0100.00314.74
7.3.30.0070.00415.04
7.3.20.0070.00716.80
7.3.10.0110.00316.54
7.3.00.0040.00416.73
7.2.250.0060.01215.13
7.2.240.0070.01314.72
7.2.230.0090.00315.02
7.2.220.0060.01214.87
7.2.210.0070.00715.39
7.2.200.0060.00915.25
7.2.190.0000.01415.06
7.2.180.0030.00715.26
7.2.170.0090.00615.19
7.1.330.0030.01015.77
7.1.320.0040.00415.92
7.1.310.0080.00416.03
7.1.300.0030.01215.82
7.1.290.0070.00716.00
7.1.280.0030.01115.89
7.1.270.0080.00415.93
7.1.260.0060.00315.66
7.1.200.0030.01315.88
7.1.70.0080.00317.41
7.1.60.0070.01819.40
7.1.50.0060.00617.17
7.1.00.0030.07722.41
7.0.200.0090.00315.31
7.0.140.0000.07722.06
7.0.110.0530.09020.04
7.0.100.0400.03719.94
7.0.90.0600.07319.83
7.0.80.0670.07719.91
7.0.70.0600.04019.82
7.0.60.0630.08319.93
7.0.50.0600.04019.89
7.0.40.0130.07319.66
7.0.30.0200.06719.75
7.0.20.0030.06019.67
7.0.10.0100.06719.71
7.0.00.0070.03719.73
5.6.280.0030.07021.01
5.6.260.0100.08020.69
5.6.250.0130.08020.58
5.6.240.0100.07720.68
5.6.230.0130.08020.55
5.6.220.0070.06020.64
5.6.210.0070.08020.34
5.6.200.0070.08320.68
5.6.190.0100.08020.64
5.6.180.0100.07320.55
5.6.170.0130.07720.70
5.6.160.0000.07720.69
5.6.150.0130.07720.65
5.6.140.0100.07720.60
5.6.130.0100.07720.69
5.6.120.0070.04720.64
5.6.110.0070.05720.52
5.6.100.0070.08020.59
5.6.90.0170.06720.59
5.6.80.0170.07019.96
5.6.70.0100.08020.01
5.6.60.0100.08020.22
5.6.50.0130.07320.02
5.6.40.0070.07320.21
5.6.30.0100.07719.97
5.6.20.0030.07719.98
5.6.10.0030.04019.94
5.6.00.0000.05019.97
5.5.380.0070.07317.55
5.5.370.0130.08017.50
5.5.360.0070.04317.39
5.5.350.0100.07717.60
5.5.340.0200.06018.03
5.5.330.0000.08018.16
5.5.320.0100.03318.12
5.5.310.0100.07317.85
5.5.300.0030.08317.86
5.5.290.0030.08318.25
5.5.280.0070.07718.00
5.5.270.0030.07718.16
5.5.260.0070.08717.97
5.5.250.0070.07017.80
5.5.240.0100.07317.64
5.5.230.0070.07317.25
5.5.220.0130.07317.46
5.5.210.0100.07717.23
5.5.200.0070.07717.34
5.5.190.0100.03717.21
5.5.180.0100.07017.45
5.5.160.0070.07017.52
5.5.150.0000.07717.19
5.5.140.0130.07017.60
5.5.130.0030.03317.33
5.5.120.0170.06717.51
5.5.110.0030.06717.23
5.5.100.0000.05317.36
5.5.90.0100.07317.25
5.5.80.0070.07317.26
5.5.70.0070.07317.40
5.5.60.0070.07317.27
5.5.50.0100.06017.41
5.5.40.0000.04317.22
5.5.30.0130.04317.36
5.5.20.0030.07717.22
5.5.10.0000.08017.00
5.5.00.0030.07317.08
5.4.450.0170.07019.34
5.4.440.0030.08319.28
5.4.430.0070.08719.40
5.4.420.0070.07319.49
5.4.410.0130.07019.30
5.4.400.0130.06719.10
5.4.390.0000.08019.27
5.4.380.0130.04018.99
5.4.370.0070.08019.01
5.4.360.0000.08719.16
5.4.350.0130.06719.01
5.4.340.0070.06719.25
5.4.320.0070.06019.01
5.4.310.0070.07719.12
5.4.300.0030.04319.16
5.4.290.0100.05319.10
5.4.280.0030.07719.01
5.4.270.0070.07719.00
5.4.260.0070.07319.01
5.4.250.0070.07019.05
5.4.240.0130.06719.08
5.4.230.0100.07319.13
5.4.220.0170.05319.15
5.4.210.0030.05019.24
5.4.200.0030.07019.09
5.4.190.0000.08319.15
5.4.180.0070.04019.08
5.4.170.0070.07719.00
5.4.160.0170.06319.25
5.4.150.0070.08018.97
5.4.140.0130.06316.55
5.4.130.0100.06716.30
5.4.120.0130.06316.50
5.4.110.0170.06316.46
5.4.100.0070.07716.35
5.4.90.0070.07316.58
5.4.80.0000.07016.23
5.4.70.0070.05016.53
5.4.60.0000.04716.47
5.4.50.0130.07316.47
5.4.40.0170.06016.47
5.4.30.0000.08016.40
5.4.20.0130.06716.46
5.4.10.0100.06716.31
5.4.00.0100.07015.93
5.3.290.0100.06714.67
5.3.280.0100.07014.68
5.3.270.0100.07714.69
5.3.260.0170.07314.73
5.3.250.0170.06714.49
5.3.240.0070.07314.60
5.3.230.0130.07014.47
5.3.220.0070.07714.52
5.3.210.0070.08014.55
5.3.200.0070.07014.64
5.3.190.0000.08714.41
5.3.180.0100.06714.57
5.3.170.0000.04014.41
5.3.160.0000.08014.68
5.3.150.0100.07014.40
5.3.140.0100.06714.44
5.3.130.0100.07314.64
5.3.120.0100.06714.64
5.3.110.0170.06714.61
5.3.100.0070.08014.02
5.3.90.0030.07714.02
5.3.80.0100.06314.01
5.3.70.0030.08014.03
5.3.60.0070.07314.07
5.3.50.0100.07313.82
5.3.40.0070.07713.95
5.3.30.0130.06713.92
5.3.20.0100.06313.70
5.3.10.0100.06713.53
5.3.00.0000.07713.46
5.2.170.0100.05711.25
5.2.160.0070.06311.25
5.2.150.0130.05311.48
5.2.140.0030.06311.19
5.2.130.0030.06011.36
5.2.120.0070.06011.36
5.2.110.0030.04711.32
5.2.100.0100.05711.15
5.2.90.0100.05711.12
5.2.80.0030.06711.11
5.2.70.0030.04311.22
5.2.60.0030.06711.12
5.2.50.0130.05311.11
5.2.40.0030.06011.05
5.2.30.0030.06711.31
5.2.20.0070.05311.05
5.2.10.0130.05311.05
5.2.00.0100.05311.05
5.1.60.0000.05711.05
5.1.50.0030.05311.05
5.1.40.0030.04311.05
5.1.30.0100.05011.05
5.1.20.0000.05311.05
5.1.10.0000.04311.05
5.1.00.0070.04311.05
5.0.50.0070.02011.05
5.0.40.0070.04011.05
5.0.30.0070.06311.05
5.0.20.0030.04311.05
5.0.10.0100.04011.05
5.0.00.0070.06011.05
4.4.90.0100.01711.05
4.4.80.0030.03711.05
4.4.70.0000.03711.05
4.4.60.0030.03711.05
4.4.50.0070.02711.05
4.4.40.0000.04711.05
4.4.30.0070.01711.05
4.4.20.0030.03711.05
4.4.10.0000.02311.05
4.4.00.0070.05011.05
4.3.110.0070.02711.05
4.3.100.0070.03011.05
4.3.90.0070.03011.05
4.3.80.0000.04011.05
4.3.70.0170.02011.05
4.3.60.0100.01711.05
4.3.50.0000.03711.05
4.3.40.0000.05311.05
4.3.30.0000.03711.05
4.3.20.0000.03711.05
4.3.10.0000.03011.05
4.3.00.0000.03711.05

preferences:
38.76 ms | 400 KiB | 5 Q