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 = strtotime('2014-08-27 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 - $time1)/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.10.0100.00715.01
7.4.00.0060.01215.09
7.3.130.0080.00815.10
7.3.120.0100.00715.04
7.3.110.0030.01215.11
7.3.100.0030.00914.89
7.3.90.0090.00315.09
7.3.80.0030.00715.01
7.3.70.0070.00714.76
7.3.60.0040.01114.84
7.3.50.0080.00314.84
7.3.40.0060.00915.01
7.3.30.0100.00314.67
7.3.20.0040.00716.74
7.3.10.0060.00316.74
7.3.00.0060.00616.75
7.2.260.0110.00715.13
7.2.250.0070.01115.30
7.2.240.0040.01115.00
7.2.230.0040.01115.32
7.2.220.0090.00614.93
7.2.210.0100.00715.31
7.2.200.0060.01015.09
7.2.190.0030.01015.19
7.2.180.0040.00815.06
7.2.170.0100.00315.29
7.2.160.0000.00915.12
7.2.150.0060.00617.15
7.2.140.0110.00417.05
7.2.130.0060.00616.82
7.2.120.0080.00816.82
7.2.110.0070.00317.02
7.2.100.0040.01117.16
7.2.90.0090.00616.94
7.2.80.0030.01016.81
7.2.70.0000.01216.96
7.2.60.0080.00416.66
7.2.50.0030.00917.08
7.2.40.0030.00616.88
7.2.30.0000.01416.85
7.2.20.0100.00716.98
7.2.10.0060.01017.09
7.2.00.0040.01216.98
7.1.330.0130.00316.03
7.1.320.0040.01015.93
7.1.310.0120.00315.84
7.1.300.0000.01315.95
7.1.290.0070.00715.86
7.1.280.0080.00815.79
7.1.270.0120.00015.86
7.1.260.0040.00715.93
7.1.250.0100.00315.83
7.1.240.0000.01415.89
7.1.230.0070.01015.76
7.1.220.0040.01115.63
7.1.210.0000.01415.91
7.1.200.0060.00615.95
7.1.190.0090.00315.79
7.1.180.0070.00415.80
7.1.170.0060.00915.89
7.1.160.0030.00915.97
7.1.150.0080.00815.87
7.1.140.0060.00615.86
7.1.130.0030.00615.73
7.1.120.0060.00616.02
7.1.110.0000.01516.09
7.1.100.0030.01515.92
7.1.90.0070.00715.95
7.1.80.0060.00316.03
7.1.70.0040.00716.70
7.1.60.0040.01617.73
7.1.50.0060.00616.56
7.1.40.0030.00615.82
7.1.30.0030.00915.97
7.1.20.0030.00915.80
7.1.10.0090.00316.02
7.1.00.0070.03819.22
7.0.330.0030.01415.67
7.0.320.0040.00815.44
7.0.310.0030.00715.63
7.0.300.0040.00715.32
7.0.290.0080.00815.22
7.0.280.0000.00915.66
7.0.270.0070.00315.60
7.0.260.0090.00615.57
7.0.250.0120.00615.75
7.0.240.0040.00715.55
7.0.230.0000.01215.54
7.0.220.0030.00615.37
7.0.210.0030.00715.40
7.0.200.0380.01115.18
7.0.190.0040.01115.39
7.0.180.0090.00015.68
7.0.170.0040.00815.60
7.0.160.0090.00315.66
7.0.150.0000.00915.54
7.0.140.0030.04218.77
7.0.130.0110.00715.41
7.0.120.0000.01315.83
7.0.110.0060.00915.37
7.0.100.0050.04217.65
7.0.90.0050.03117.71
7.0.80.0130.04017.70
7.0.70.0080.04117.68
7.0.60.0120.03517.64
7.0.50.0080.03917.84
7.0.40.0150.03516.89
7.0.30.0040.03516.89
7.0.20.0050.04516.77
7.0.10.0110.04316.85
7.0.00.0100.02716.78
5.6.400.0070.01014.64
5.6.390.0000.01714.71
5.6.380.0040.00714.59
5.6.370.0100.00314.17
5.6.360.0070.00714.50
5.6.350.0000.01114.22
5.6.340.0040.01114.16
5.6.330.0000.01214.29
5.6.320.0070.01114.51
5.6.310.0120.00314.23
5.6.300.0030.01014.55
5.6.290.0070.00714.17
5.6.280.0010.04417.65
5.6.270.0070.01114.49
5.6.260.0000.01014.58
5.6.250.0070.03717.46
5.6.240.0050.04717.54
5.6.230.0080.03817.44
5.6.220.0050.04517.31
5.6.210.0110.03617.39
5.6.200.0120.04517.75
5.6.190.0090.04317.91
5.6.180.0070.02417.72
5.6.170.0080.03917.55
5.6.160.0020.04317.58
5.6.150.0030.03017.75
5.6.140.0090.04217.55
5.6.130.0100.04417.88
5.6.120.0050.04717.87
5.6.110.0060.04117.72
5.6.100.0060.04617.88
5.6.90.0060.04517.68
5.6.80.0030.03317.38
5.6.70.0110.04017.38
5.6.60.0050.04517.33
5.6.50.0070.02417.44
5.6.40.0040.03917.50
5.6.30.0020.02917.38
5.6.20.0100.02117.39
5.6.10.0030.02717.35
5.6.00.0030.02517.49
5.5.380.0080.03517.31
5.5.370.0040.04917.44
5.5.360.0030.04917.45
5.5.350.0110.03817.53
5.5.340.0110.03817.56
5.5.330.0050.04617.58
5.5.320.0090.04317.53
5.5.310.0070.04417.77
5.5.300.0080.04117.71
5.5.290.0150.02517.63
5.5.280.0020.03517.58
5.5.270.0110.03817.78
5.5.260.0050.02917.66
5.5.250.0070.04517.62
5.5.240.0050.02117.28
5.5.230.0120.02017.31
5.5.220.0070.03317.35
5.5.210.0070.02317.28
5.5.200.0050.04017.35
5.5.190.0050.04017.31
5.5.180.0090.03317.20
5.5.170.0120.00314.15
5.5.160.0060.02117.20
5.5.150.0070.02717.16
5.5.140.0110.01917.27
5.5.130.0100.03617.10
5.5.120.0090.02117.21
5.5.110.0080.02317.37
5.5.100.0030.04317.10
5.5.90.0030.04416.97
5.5.80.0030.04017.31
5.5.70.0070.04017.10
5.5.60.0100.03517.17
5.5.50.0020.03517.13
5.5.40.0080.04117.03
5.5.30.0030.04617.15
5.5.20.0060.02717.12
5.5.10.0080.02717.05
5.5.00.0080.02517.27
5.4.450.0070.03516.18
5.4.440.0050.04116.19
5.4.430.0090.03816.21
5.4.420.0050.02516.26
5.4.410.0070.04316.12
5.4.400.0030.02116.14
5.4.390.0000.02916.02
5.4.380.0080.04015.96
5.4.370.0050.04216.11
5.4.360.0090.03516.02
5.4.350.0060.02516.01
5.4.340.0070.03515.96
5.4.330.0000.01013.07
5.4.320.0030.02116.07
5.4.310.0040.03716.19
5.4.300.0050.04016.18
5.4.290.0020.02116.09
5.4.280.0000.02916.08
5.4.270.0050.03016.04
5.4.260.0030.04316.13
5.4.250.0060.02116.02
5.4.240.0080.03816.11
5.4.230.0020.02616.11
5.4.220.0080.03716.11
5.4.210.0070.03716.14
5.4.200.0100.03016.02
5.4.190.0070.03516.01
5.4.180.0050.02516.10
5.4.170.0050.03816.08
5.4.160.0060.02116.06
5.4.150.0090.03716.07
5.4.140.0020.02614.73
5.4.130.0050.04214.70
5.4.120.0180.01214.73
5.4.110.0070.03814.70
5.4.100.0070.03814.77
5.4.90.0080.03714.79
5.4.80.0030.02714.77
5.4.70.0110.03114.68
5.4.60.0070.03814.75
5.4.50.0020.03914.75
5.4.40.0100.03314.76
5.4.30.0100.02814.71
5.4.20.0080.03314.67
5.4.10.0050.04014.73
5.4.00.0050.03214.42
5.3.290.0100.04714.83
5.3.280.0070.04014.83
5.3.270.0100.06714.83
5.3.260.0070.03714.83
5.3.250.0230.06014.83
5.3.240.0070.07314.83
5.3.230.0070.07314.83
5.3.220.0100.07014.83
5.3.210.0070.07314.83
5.3.200.0170.04014.83
5.3.190.0000.05014.83
5.3.180.0100.06714.83
5.3.170.0130.06714.83
5.3.160.0100.06314.83
5.3.150.0170.06314.83
5.3.140.0070.07014.83
5.3.130.0030.07714.83
5.3.120.0070.07714.83
5.3.110.0030.08014.83
5.3.100.0100.07014.83
5.3.90.0100.06314.83
5.3.80.0100.06714.83
5.3.70.0130.07014.83
5.3.60.0130.06714.83
5.3.50.0100.06314.83
5.3.40.0070.07314.83
5.3.30.0130.05314.83
5.3.20.0030.04714.83
5.3.10.0030.04014.83
5.3.00.0030.07714.83
5.2.170.0070.06014.83
5.2.160.0030.06314.83
5.2.150.0070.04014.83
5.2.140.0070.05714.83
5.2.130.0070.05014.83
5.2.120.0100.05314.83
5.2.110.0030.06014.83
5.2.100.0030.04014.83
5.2.90.0100.05014.83
5.2.80.0000.06714.83
5.2.70.0000.06314.83
5.2.60.0000.06714.83
5.2.50.0070.06314.83
5.2.40.0030.06314.83
5.2.30.0070.06014.83
5.2.20.0030.05014.83
5.2.10.0100.05314.83
5.2.00.0030.06014.83
5.1.60.0030.03714.83
5.1.50.0030.05714.83
5.1.40.0000.05714.83
5.1.30.0030.04314.83
5.1.20.0070.03014.83
5.1.10.0070.04314.83
5.1.00.0030.06014.83
5.0.50.0070.03014.83
5.0.40.0070.04314.83
5.0.30.0000.06714.83
5.0.20.0070.04014.83
5.0.10.0030.04014.83
5.0.00.0070.04014.83
4.4.90.0030.03314.83
4.4.80.0000.02714.83
4.4.70.0000.04014.83
4.4.60.0070.03714.83
4.4.50.0070.03314.83
4.4.40.0000.04314.83
4.4.30.0000.02014.83
4.4.20.0030.03714.83
4.4.10.0000.03714.83
4.4.00.0030.05314.83
4.3.110.0030.02714.83
4.3.100.0000.02714.83
4.3.90.0070.03014.83
4.3.80.0030.02714.83
4.3.70.0000.02014.83
4.3.60.0030.02014.83
4.3.50.0070.03014.83
4.3.40.0100.04714.83
4.3.30.0000.04014.83
4.3.20.0000.03014.83
4.3.10.0030.02714.83
4.3.00.0000.03314.83

preferences:
40.34 ms | 400 KiB | 5 Q