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.4.10.0030.01314.89
7.4.00.0080.00714.72
7.3.130.0080.01114.79
7.3.120.0090.00914.75
7.3.110.0080.01014.60
7.3.100.0080.00714.75
7.3.90.0020.01214.63
7.3.80.0020.01014.73
7.3.70.0070.00914.70
7.3.60.0060.00714.77
7.3.50.0040.00814.56
7.3.40.0090.00414.43
7.3.30.0050.00714.63
7.3.20.0090.00716.62
7.3.10.0080.00716.57
7.3.00.0100.00416.46
7.2.260.0100.00814.97
7.2.250.0050.01014.79
7.2.240.0050.01214.87
7.2.230.0060.01014.87
7.2.220.0080.00515.10
7.2.210.0060.00614.97
7.2.200.0050.01014.87
7.2.190.0050.00714.78
7.2.180.0080.00614.92
7.2.170.0070.00815.02
7.2.160.0010.01014.90
7.2.150.0050.01016.83
7.2.140.0050.01116.85
7.2.130.0060.00716.74
7.2.120.0050.00816.82
7.2.110.0050.00916.73
7.2.100.0070.00716.66
7.2.90.0060.00916.88
7.2.80.0060.00716.83
7.2.70.0060.00816.72
7.2.60.0040.01116.83
7.2.50.0070.00516.66
7.2.40.0050.01216.88
7.2.30.0030.01116.90
7.2.20.0060.00716.89
7.2.10.0050.01116.80
7.2.00.0070.00816.78
7.1.330.0040.01115.80
7.1.320.0040.00915.84
7.1.310.0030.00915.71
7.1.300.0060.00715.80
7.1.290.0050.00715.57
7.1.280.0090.00515.77
7.1.270.0020.00915.72
7.1.260.0060.00615.68
7.1.250.0070.00715.66
7.1.240.0050.00815.71
7.1.230.0030.01015.59
7.1.220.0000.01115.85
7.1.210.0090.00515.80
7.1.200.0070.00715.65
7.1.190.0060.00715.82
7.1.180.0020.00815.72
7.1.170.0020.01215.66
7.1.160.0020.01115.73
7.1.150.0050.00715.58
7.1.140.0040.01115.88
7.1.130.0070.00815.58
7.1.120.0040.00415.60
7.1.110.0060.00515.88
7.1.100.0040.00716.36
7.1.90.0070.00315.77
7.1.80.0030.00915.68
7.1.70.0050.00916.34
7.1.60.0110.00616.71
7.1.50.0030.01115.92
7.1.40.0040.00915.69
7.1.30.0090.00615.73
7.1.20.0020.01215.57
7.1.10.0030.01115.53
7.1.00.0020.03317.92
7.0.330.0070.00715.31
7.0.320.0040.00715.21
7.0.310.0070.00515.20
7.0.300.0070.00515.33
7.0.290.0060.00615.29
7.0.280.0050.00915.28
7.0.270.0060.00715.24
7.0.260.0100.00015.35
7.0.250.0010.01015.28
7.0.240.0050.01015.21
7.0.230.0070.00715.43
7.0.220.0050.01015.33
7.0.210.0040.00815.36
7.0.200.0040.00915.02
7.0.190.0080.00615.44
7.0.180.0070.00715.22
7.0.170.0080.00515.24
7.0.160.0090.00515.33
7.0.150.0060.00515.37
7.0.140.0030.03017.45
7.0.130.0030.01215.45
7.0.120.0000.01215.48
7.0.110.0070.00515.22
7.0.100.0010.02716.92
7.0.90.0060.01916.94
7.0.80.0070.02916.87
7.0.70.0060.01916.92
7.0.60.0030.02216.85
7.0.50.0090.01716.91
7.0.40.0070.01715.63
7.0.30.0050.01915.60
7.0.20.0040.01915.72
7.0.10.0050.01815.59
7.0.00.0100.01415.62
5.6.400.0050.00714.33
5.6.390.0000.01114.24
5.6.380.0070.00814.15
5.6.370.0040.00814.24
5.6.360.0100.00514.17
5.6.350.0070.00714.07
5.6.340.0030.00814.24
5.6.330.0110.00314.33
5.6.320.0070.00614.22
5.6.310.0070.00514.24
5.6.300.0020.01114.29
5.6.290.0050.00814.37
5.6.280.0060.02716.50
5.6.270.0060.00714.23
5.6.260.0080.00514.11
5.6.250.0070.02816.44
5.6.240.0080.01816.46
5.6.230.0050.02316.37
5.6.220.0110.01416.25
5.6.210.0010.02316.53
5.6.200.0060.02216.65
5.6.190.0090.01716.39
5.6.180.0070.01816.36
5.6.170.0090.02116.62
5.6.160.0050.01716.37
5.6.150.0040.02216.53
5.6.140.0070.01716.53
5.6.130.0030.02216.40
5.6.120.0050.01816.43
5.6.110.0080.01916.67
5.6.100.0030.02616.58
5.6.90.0090.03116.53
5.6.80.0070.03016.20
5.6.70.0080.03116.27
5.6.60.0030.03116.27
5.6.50.0030.03416.18
5.6.40.0020.03316.41
5.6.30.0070.03016.19
5.6.20.0050.03216.15
5.6.10.0050.02416.22
5.6.00.0030.02916.40
5.5.380.0030.01816.12
5.5.370.0090.01316.27
5.5.360.0040.02216.23
5.5.350.0090.01616.20
5.5.340.0070.01716.40
5.5.330.0080.01616.43
5.5.320.0100.01716.38
5.5.310.0050.02216.47
5.5.300.0070.01616.29
5.5.290.0060.01916.37
5.5.280.0060.01816.24
5.5.270.0030.02316.47
5.5.260.0060.03416.37
5.5.250.0060.03216.31
5.5.240.0080.03116.17
5.5.230.0070.02216.25
5.5.220.0080.02316.12
5.5.210.0030.03315.95
5.5.200.0050.03216.09
5.5.190.0080.02916.11
5.5.180.0080.02416.22
5.5.170.0080.00513.92
5.5.160.0090.02716.13
5.5.150.0060.03216.17
5.5.140.0010.02416.04
5.5.130.0080.01916.12
5.5.120.0070.02916.17
5.5.110.0090.03116.13
5.5.100.0080.02916.17
5.5.90.0050.03216.16
5.5.80.0020.03116.12
5.5.70.0060.03016.17
5.5.60.0040.03316.08
5.5.50.0040.01816.09
5.5.40.0060.02915.90
5.5.30.0060.03216.03
5.5.20.0050.03016.13
5.5.10.0060.03015.82
5.5.00.0040.02116.08
5.4.450.0030.01614.06
5.4.440.0050.01514.06
5.4.430.0060.01614.04
5.4.420.0040.03114.01
5.4.410.0040.03013.90
5.4.400.0030.03213.81
5.4.390.0050.02613.95
5.4.380.0060.02713.92
5.4.370.0050.01813.88
5.4.360.0000.03613.80
5.4.350.0060.02613.93
5.4.340.0080.02413.94
5.4.330.0000.01211.30
5.4.320.0000.02513.86
5.4.310.0080.02413.84
5.4.300.0040.02713.92
5.4.290.0040.02413.86
5.4.280.0040.01513.85
5.4.270.0090.02613.94
5.4.260.0040.02813.80
5.4.250.0100.02813.88
5.4.240.0060.03113.89
5.4.230.0050.02013.92
5.4.220.0050.02813.93
5.4.210.0100.02313.93
5.4.200.0060.02213.73
5.4.190.0040.03113.89
5.4.180.0110.02413.92
5.4.170.0030.02713.87
5.4.160.0030.03313.90
5.4.150.0040.03313.94
5.4.140.0060.02012.86
5.4.130.0040.02912.94
5.4.120.0060.02412.97
5.4.110.0040.02512.97
5.4.100.0080.02613.05
5.4.90.0120.01912.97
5.4.80.0050.02413.10
5.4.70.0040.01913.00
5.4.60.0070.02713.03
5.4.50.0080.02712.89
5.4.40.0070.02612.87
5.4.30.0070.01412.92
5.4.20.0020.03113.02
5.4.10.0030.03313.07
5.4.00.0040.02812.82
5.3.290.0170.04714.52
5.3.280.0070.07714.41
5.3.270.0200.05314.44
5.3.260.0100.07314.59
5.3.250.0130.07314.58
5.3.240.0030.07714.46
5.3.230.0070.06714.50
5.3.220.0000.07014.42
5.3.210.0030.08014.52
5.3.200.0070.06014.47
5.3.190.0070.06714.40
5.3.180.0030.06714.42
5.3.170.0130.07014.39
5.3.160.0100.06714.55
5.3.150.0000.08014.54
5.3.140.0030.06714.54
5.3.130.0100.07314.49
5.3.120.0030.04714.40
5.3.110.0100.08014.52
5.3.100.0000.04714.04
5.3.90.0030.07713.96
5.3.80.0030.06713.87
5.3.70.0070.06314.00
5.3.60.0100.07313.87
5.3.50.0100.07713.94
5.3.40.0070.07013.88
5.3.30.0000.04713.90
5.3.20.0100.03713.45
5.3.10.0070.06713.41
5.3.00.0030.05013.64
5.2.170.0070.06311.41
5.2.160.0070.04011.41
5.2.150.0030.05311.41
5.2.140.0070.05711.41
5.2.130.0070.05311.41
5.2.120.0070.06011.41
5.2.110.0100.05011.41
5.2.100.0030.03711.41
5.2.90.0030.04311.41
5.2.80.0100.05011.41
5.2.70.0070.03311.41
5.2.60.0030.04011.41
5.2.50.0000.04011.41
5.2.40.0070.06011.41
5.2.30.0100.05311.41
5.2.20.0100.05311.41
5.2.10.0030.02711.41
5.2.00.0100.03311.41
5.1.60.0070.02311.41
5.1.50.0100.03011.41
5.1.40.0030.04311.41
5.1.30.0100.04311.41
5.1.20.0000.04711.41
5.1.10.0000.03711.41
5.1.00.0030.02711.41
5.0.50.0030.02011.41
5.0.40.0070.04011.41
5.0.30.0000.04311.41
5.0.20.0030.02311.41
5.0.10.0030.02311.41
5.0.00.0100.05711.41
4.4.90.0070.03011.41
4.4.80.0100.03011.41
4.4.70.0000.02711.41
4.4.60.0000.03711.41
4.4.50.0030.01711.41
4.4.40.0000.02711.41
4.4.30.0000.03711.41
4.4.20.0070.02311.41
4.4.10.0030.01311.41
4.4.00.0000.05711.41
4.3.110.0030.01711.41
4.3.100.0000.03011.41
4.3.90.0000.02311.41
4.3.80.0030.02311.41
4.3.70.0030.03011.41
4.3.60.0030.02711.41
4.3.50.0070.03311.41
4.3.40.0070.04011.41
4.3.30.0030.03011.41
4.3.20.0000.03311.41
4.3.10.0000.03711.41
4.3.00.0070.02011.41

preferences:
36.22 ms | 400 KiB | 5 Q