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); //$hourdiff = round((strtotime($strtotime2) - strtotime($strtotime1))/3600, 1); //echo $hourdiff; exit; //echo $strtotime1; echo new DateTime(); //echo $strtotime2; echo "\n"; echo ($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.4.10.0110.00714.98
7.4.00.0030.01315.07
7.3.130.0100.01015.04
7.3.120.0070.01014.87
7.3.110.0100.01014.82
7.3.100.0110.00414.79
7.3.90.0060.00314.98
7.3.80.0000.01114.91
7.3.70.0090.00615.07
7.3.60.0030.00914.75
7.3.50.0070.01014.57
7.3.40.0030.00614.80
7.3.30.0030.01114.96
7.3.20.0030.01016.61
7.3.10.0090.00616.66
7.3.00.0050.01116.69
7.2.260.0070.01415.02
7.2.250.0030.01614.86
7.2.240.0040.01115.10
7.2.230.0080.00815.32
7.2.220.0050.01015.13
7.2.210.0090.00615.00
7.2.200.0090.00615.23
7.2.190.0040.00815.23
7.2.180.0110.00714.82
7.2.170.0130.00315.25
7.2.160.0040.01415.14
7.2.150.0090.00316.96
7.2.140.0070.00716.74
7.2.130.0030.01016.92
7.2.120.0050.00816.77
7.2.110.0060.00616.86
7.2.100.0110.00016.90
7.2.90.0070.00716.99
7.2.80.0090.00517.08
7.2.70.0050.00816.93
7.2.60.0060.00917.07
7.2.50.0070.00617.00
7.2.40.0090.00416.75
7.2.30.0080.00517.15
7.2.20.0080.00517.05
7.2.10.0070.00716.85
7.2.00.0040.00917.80
7.1.330.0040.01115.95
7.1.320.0060.00916.09
7.1.310.0030.01015.94
7.1.300.0000.01415.96
7.1.290.0090.00315.98
7.1.280.0150.00015.98
7.1.270.0060.01015.50
7.1.260.0040.00715.45
7.1.250.0060.00815.81
7.1.240.0060.00815.97
7.1.230.0080.00515.94
7.1.220.0080.00515.93
7.1.210.0030.00815.61
7.1.200.0070.00515.74
7.1.190.0050.00815.78
7.1.180.0050.00515.89
7.1.170.0070.00715.92
7.1.160.0030.00615.84
7.1.150.0050.00915.77
7.1.140.0070.00715.87
7.1.130.0100.00315.85
7.1.120.0050.00615.83
7.1.110.0020.01415.81
7.1.100.0040.00815.77
7.1.90.0020.01015.80
7.1.80.0070.00515.71
7.1.70.0050.00716.31
7.1.60.0050.00816.30
7.1.50.0070.00916.10
7.1.40.0030.00815.74
7.1.30.0070.00615.83
7.1.20.0060.00715.66
7.1.10.0090.00315.62
7.1.00.0060.02817.92
7.0.330.0020.01015.54
7.0.320.0030.00715.51
7.0.310.0030.00815.22
7.0.300.0080.00415.43
7.0.290.0050.00815.31
7.0.280.0070.00415.41
7.0.270.0020.01115.45
7.0.260.0030.00915.37
7.0.250.0030.00815.45
7.0.240.0070.00715.57
7.0.230.0060.00815.60
7.0.220.0030.00515.59
7.0.210.0090.00515.23
7.0.200.0080.00716.06
7.0.190.0070.00715.33
7.0.180.0020.00715.32
7.0.170.0040.00815.54
7.0.160.0050.00815.54
7.0.150.0060.00915.55
7.0.140.0050.02817.63
7.0.130.0050.00615.51
7.0.120.0030.00515.47
7.0.110.0050.00515.37
7.0.100.0040.02616.92
7.0.90.0140.02816.90
7.0.80.0050.02917.00
7.0.70.0100.03016.99
7.0.60.0050.03016.95
7.0.50.0100.03517.26
7.0.40.0070.03115.69
7.0.30.0030.03715.62
7.0.20.0060.02615.78
7.0.10.0080.02315.80
7.0.00.0100.02915.72
5.6.400.0100.00014.16
5.6.390.0080.00814.70
5.6.380.0110.00314.30
5.6.370.0040.00714.57
5.6.360.0090.00514.37
5.6.350.0080.00214.46
5.6.340.0080.00514.27
5.6.330.0030.00914.29
5.6.320.0060.00514.30
5.6.310.0050.01014.34
5.6.300.0040.01114.53
5.6.290.0050.01014.47
5.6.280.0030.03216.63
5.6.270.0010.01214.23
5.6.260.0050.00814.37
5.6.250.0060.02616.46
5.6.240.0080.02316.34
5.6.230.0080.02716.45
5.6.220.0100.02916.42
5.6.210.0040.03116.37
5.6.200.0070.03016.48
5.6.190.0040.03316.66
5.6.180.0080.02516.44
5.6.170.0070.02916.59
5.6.160.0070.02516.50
5.6.150.0120.02416.61
5.6.140.0050.03016.61
5.6.130.0080.02816.59
5.6.120.0060.03516.76
5.6.110.0090.02516.59
5.6.100.0030.02516.58
5.6.90.0050.03116.58
5.6.80.0050.02216.39
5.6.70.0070.03116.29
5.6.60.0110.02016.31
5.6.50.0140.03116.45
5.6.40.0050.03616.23
5.6.30.0040.02016.31
5.6.20.0070.02316.37
5.6.10.0100.02216.33
5.6.00.0050.02316.33
5.5.380.0030.03715.36
5.5.370.0070.03015.36
5.5.360.0070.03015.30
5.5.350.0050.02715.38
5.5.340.0060.02915.39
5.5.330.0060.02615.51
5.5.320.0060.03215.48
5.5.310.0080.02715.43
5.5.300.0110.02615.45
5.5.290.0080.03115.40
5.5.280.0050.02415.46
5.5.270.0040.02215.45
5.5.260.0070.03015.35
5.5.250.0080.02315.29
5.5.240.0090.02815.15
5.5.230.0050.02815.08
5.5.220.0040.02115.15
5.5.210.0060.03215.09
5.5.200.0060.02415.12
5.5.190.0040.03215.16
5.5.180.0040.03315.30
5.5.170.0070.00712.82
5.5.160.0010.02115.23
5.5.150.0020.03215.16
5.5.140.0080.03215.20
5.5.130.0040.03315.20
5.5.120.0060.02915.21
5.5.110.0080.01815.16
5.5.100.0070.03014.99
5.5.90.0060.02215.20
5.5.80.0040.02415.16
5.5.70.0060.02015.04
5.5.60.0080.02615.16
5.5.50.0090.02815.20
5.5.40.0040.02415.18
5.5.30.0050.03215.15
5.5.20.0060.02114.99
5.5.10.0060.02115.06
5.5.00.0050.02015.19
5.4.450.0090.02814.13
5.4.440.0070.02814.16
5.4.430.0050.03014.16
5.4.420.0020.02014.13
5.4.410.0040.03014.09
5.4.400.0080.02714.00
5.4.390.0050.02014.05
5.4.380.0020.02413.97
5.4.370.0050.02514.02
5.4.360.0030.03014.09
5.4.350.0080.02814.08
5.4.340.0090.01313.99
5.4.330.0020.00811.51
5.4.320.0060.03114.04
5.4.310.0090.02613.93
5.4.300.0100.02213.94
5.4.290.0090.02814.05
5.4.280.0070.02614.00
5.4.270.0080.02614.05
5.4.260.0100.02413.97
5.4.250.0070.02914.04
5.4.240.0040.02514.02
5.4.230.0020.03113.94
5.4.220.0070.02314.03
5.4.210.0060.03013.97
5.4.200.0070.01714.01
5.4.190.0090.02614.03
5.4.180.0080.02614.02
5.4.170.0030.03314.01
5.4.160.0040.02813.98
5.4.150.0040.02714.01
5.4.140.0110.02313.13
5.4.130.0060.02513.12
5.4.120.0070.02013.10
5.4.110.0040.02613.11
5.4.100.0080.02813.14
5.4.90.0070.02513.22
5.4.80.0020.02113.09
5.4.70.0020.01513.12
5.4.60.0040.01613.13
5.4.50.0090.01013.07
5.4.40.0010.01813.15
5.4.30.0050.01613.06
5.4.20.0060.01413.11
5.4.10.0060.01313.10
5.4.00.0000.01812.92
5.3.290.0100.02612.88
5.3.280.0090.03912.88
5.3.270.0030.02712.80
5.3.260.0020.04412.89
5.3.250.0030.04012.88
5.3.240.0070.02312.88
5.3.230.0030.04212.87
5.3.220.0080.04012.88
5.3.210.0050.03012.85
5.3.200.0050.04212.87
5.3.190.0050.04212.79
5.3.180.0030.04212.85
5.3.170.0020.02412.79
5.3.160.0040.02412.85
5.3.150.0000.02512.86
5.3.140.0040.02612.79
5.3.130.0050.02212.77
5.3.120.0000.02612.78
5.3.110.0000.02512.84
5.3.100.0030.02112.60
5.3.90.0050.02812.58
5.3.80.0020.02312.59
5.3.70.0030.02012.57
5.3.60.0030.03912.59
5.3.50.0050.02112.49
5.3.40.0060.01812.52
5.3.30.0090.01512.53
5.3.20.0020.02012.32
5.3.10.0040.02312.38
5.3.00.0050.03512.33
5.2.170.0060.01311.13
5.2.160.0020.01711.05
5.2.150.0040.02511.18
5.2.140.0030.02711.13
5.2.130.0040.01711.14
5.2.120.0080.01311.05
5.2.110.0020.01611.13
5.2.100.0090.02311.11
5.2.90.0020.02211.14
5.2.80.0070.02711.13
5.2.70.0020.02911.17
5.2.60.0020.03311.09
5.2.50.0050.01311.08
5.2.40.0030.02111.12
5.2.30.0030.01611.09
5.2.20.0050.01710.96
5.2.10.0020.01710.99
5.2.00.0030.01610.87
5.1.60.0030.01910.61
5.1.50.0030.02010.58
5.1.40.0050.02110.57
5.1.30.0030.01610.68
5.1.20.0030.01510.79
5.1.10.0010.01610.68
5.1.00.0050.01210.56
5.0.50.0000.01710.19
5.0.40.0020.01210.19
5.0.30.0010.01810.19
5.0.20.0050.00810.19
5.0.10.0020.01210.19
5.0.00.0000.01910.19
4.4.90.0030.01710.19
4.4.80.0050.01310.19
4.4.70.0020.01910.19
4.4.60.0030.01310.19
4.4.50.0000.01110.19
4.4.40.0000.03210.19
4.4.30.0030.01610.19
4.4.20.0020.01310.19
4.4.10.0020.01010.19
4.4.00.0020.01310.19
4.3.110.0010.00810.19
4.3.100.0080.00310.19
4.3.90.0030.00810.19
4.3.80.0010.01310.19
4.3.70.0000.01210.19
4.3.60.0030.01010.19
4.3.50.0020.00910.19
4.3.40.0020.01210.19
4.3.30.0000.01810.19
4.3.20.0000.01310.19
4.3.10.0020.01010.19
4.3.00.0010.00810.19

preferences:
31.62 ms | 400 KiB | 5 Q