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; var_dump(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.3.10.0040.01116.75
7.3.00.0070.00716.85
7.2.130.0060.00317.07
7.2.120.0030.00617.24
7.2.110.0090.00317.07
7.2.100.0030.01217.07
7.2.90.0090.00617.12
7.2.80.0000.01617.25
7.2.70.0030.01017.16
7.2.60.0130.00914.91
7.2.50.0090.00616.75
7.2.40.0030.00917.13
7.2.30.0090.00616.98
7.2.20.0000.01417.11
7.2.10.0060.00916.76
7.2.00.0030.00717.20
7.1.250.0000.01515.98
7.1.240.0030.00915.88
7.1.230.0060.00915.98
7.1.220.0000.01615.94
7.1.210.0000.01715.91
7.1.200.0100.00315.75
7.1.190.0060.00915.92
7.1.180.0080.00615.70
7.1.170.0090.00615.76
7.1.160.0060.00615.86
7.1.150.0100.00015.70
7.1.140.0030.00715.98
7.1.130.0100.00315.90
7.1.120.0040.01115.80
7.1.110.0140.00015.72
7.1.100.0070.01015.84
7.1.90.0040.00415.89
7.1.80.0030.01015.98
7.1.70.0040.00516.48
7.1.60.0100.00817.74
7.1.50.0030.01316.48
7.1.40.0000.01416.07
7.1.30.0060.00616.00
7.1.20.0080.00816.03
7.1.10.0060.00316.04
7.1.00.0050.04319.20
7.0.330.0030.01015.39
7.0.320.0030.01015.49
7.0.310.0050.00315.47
7.0.300.0030.01215.22
7.0.290.0000.01415.50
7.0.280.0060.00915.31
7.0.270.0080.00315.59
7.0.260.0000.01315.25
7.0.250.0100.00315.34
7.0.240.0000.00815.80
7.0.230.0030.00915.51
7.0.220.0090.00415.44
7.0.210.0100.00315.56
7.0.200.0180.00515.49
7.0.190.0000.01615.57
7.0.180.0060.00615.48
7.0.170.0030.01315.38
7.0.160.0030.01015.52
7.0.150.0130.00315.41
7.0.140.0120.03718.78
7.0.130.0100.00315.25
7.0.120.0040.01115.66
7.0.110.0030.00915.64
7.0.100.0030.00715.61
7.0.90.0040.02917.76
7.0.80.0070.02317.71
7.0.70.0110.01517.80
7.0.60.0100.02017.77
7.0.50.0060.01917.82
7.0.40.0030.02116.91
7.0.30.0050.02116.84
7.0.20.0070.02216.87
7.0.10.0060.02016.89
7.0.00.0040.02616.81
5.6.380.0030.01014.29
5.6.370.0030.01014.45
5.6.360.0030.00614.75
5.6.350.0030.01014.61
5.6.340.0090.00614.53
5.6.330.0030.01214.39
5.6.320.0000.01214.46
5.6.310.0060.00614.28
5.6.300.0040.01114.33
5.6.290.0080.00514.14
5.6.280.0050.03817.82
5.6.270.0140.00014.29
5.6.260.0060.00914.66
5.6.250.0040.00814.29
5.6.240.0070.02117.51
5.6.230.0040.02317.41
5.6.220.0030.02517.69
5.6.210.0070.02217.53
5.6.200.0080.02017.69
5.6.190.0030.02517.62
5.6.180.0030.02417.73
5.6.170.0070.02117.79
5.6.160.0060.02117.63
5.6.150.0050.02117.70
5.6.140.0140.02517.70
5.6.130.0030.02917.78
5.6.120.0080.03017.66
5.6.110.0080.02517.65
5.6.100.0020.03717.69
5.6.90.0070.03117.80
5.6.80.0070.02717.29
5.6.70.0030.03017.34
5.6.60.0140.03717.40
5.6.50.0100.04217.48
5.6.40.0100.02917.42
5.6.30.0050.03417.35
5.6.20.0030.03917.49
5.6.10.0000.04917.50
5.6.00.0090.02917.44
5.5.380.0050.02315.85
5.5.370.0030.02515.91
5.5.360.0030.02415.77
5.5.350.0050.02315.72
5.5.340.0030.02215.94
5.5.330.0060.01615.97
5.5.320.0060.01816.12
5.5.310.0060.01716.10
5.5.300.0050.04516.08
5.5.290.0100.04015.94
5.5.280.0060.04515.89
5.5.270.0100.02615.97
5.5.260.0050.02715.96
5.5.250.0060.02715.98
5.5.240.0060.02515.43
5.5.230.0050.02515.66
5.5.220.0050.02615.70
5.5.210.0040.04315.77
5.5.200.0080.02515.62
5.5.190.0070.04215.67
5.5.180.0070.03815.59
5.5.170.0040.00411.16
5.5.160.0070.03215.62
5.5.150.0050.03115.55
5.5.140.0080.03815.71
5.5.130.0080.03815.71
5.5.120.0030.03915.77
5.5.110.0050.03615.54
5.5.100.0070.02815.54
5.5.90.0040.03015.57
5.5.80.0060.03515.48
5.5.70.0050.02915.51
5.5.60.0060.03915.49
5.5.50.0060.04015.56
5.5.40.0080.03915.47
5.5.30.0100.03815.70
5.5.20.0070.04015.63
5.5.10.0030.03915.63
5.5.00.0100.03215.70
5.4.450.0030.04615.30
5.4.440.0050.04215.40
5.4.430.0140.03515.38
5.4.420.0070.03315.30
5.4.410.0080.02315.10
5.4.400.0080.03615.04
5.4.390.0120.03514.93
5.4.380.0110.03315.16
5.4.370.0050.03915.02
5.4.360.0100.03615.03
5.4.350.0050.04115.08
5.4.340.0100.03614.97
5.4.330.0030.00911.09
5.4.320.0000.03215.06
5.4.310.0070.04215.04
5.4.300.0020.02814.85
5.4.290.0010.02615.08
5.4.280.0070.03915.24
5.4.270.0040.04015.06
5.4.260.0050.04015.17
5.4.250.0020.04515.08
5.4.240.0020.03615.00
5.4.230.0060.03515.14
5.4.220.0100.03814.95
5.4.210.0070.04014.87
5.4.200.0070.03515.11
5.4.190.0050.03715.11
5.4.180.0000.02815.16
5.4.170.0060.02314.95
5.4.160.0030.03315.17
5.4.150.0080.04014.96
5.4.140.0050.02613.76
5.4.130.0030.02613.71
5.4.120.0050.01913.64
5.4.110.0050.02613.62
5.4.100.0050.02213.60
5.4.90.0020.02013.76
5.4.80.0050.02013.60
5.4.70.0040.02113.74
5.4.60.0070.03213.59
5.4.50.0020.02313.65
5.4.40.0020.02013.71
5.4.30.0030.04113.64
5.4.20.0080.01913.69
5.4.10.0070.01813.70
5.4.00.0070.03213.50
5.3.290.0080.03812.67
5.3.280.0030.04212.63
5.3.270.0050.03012.70
5.3.260.0050.02312.55
5.3.250.0040.02712.42
5.3.240.0050.01612.46
5.3.230.0010.02112.52
5.3.220.0060.03712.40
5.3.210.0020.03812.50
5.3.200.0070.03712.55
5.3.190.0050.01912.54
5.3.180.0070.03212.55
5.3.170.0050.02212.47
5.3.160.0080.03712.57
5.3.150.0040.03712.55
5.3.140.0050.01712.56
5.3.130.0030.03812.49
5.3.120.0050.02812.53
5.3.110.0070.02312.50
5.3.100.0050.01712.31
5.3.90.0050.03912.26
5.3.80.0050.02112.17
5.3.70.0060.01812.17
5.3.60.0020.02212.30
5.3.50.0090.01812.14
5.3.40.0120.02812.16
5.3.30.0070.03012.24
5.3.20.0050.01811.96
5.3.10.0050.02811.97
5.3.00.0050.02011.88
5.2.170.0060.03310.36
5.2.160.0030.01510.24
5.2.150.0090.01010.33
5.2.140.0040.01710.31
5.2.130.0030.01910.34
5.2.120.0000.02510.29
5.2.110.0030.01710.36
5.2.100.0050.01610.25
5.2.90.0030.02710.24
5.2.80.0050.02810.22
5.2.70.0060.03010.26
5.2.60.0010.02610.31
5.2.50.0030.02010.23
5.2.40.0010.0309.96
5.2.30.0070.01310.21
5.2.20.0030.01810.16
5.2.10.0040.03110.18
5.2.00.0070.01310.07
5.1.60.0050.0259.68
5.1.50.0020.0309.68
5.1.40.0030.0149.68
5.1.30.0010.0189.68
5.1.20.0010.0339.68
5.1.10.0060.0239.68
5.1.00.0090.0189.68
5.0.50.0060.0089.68
5.0.40.0020.0129.68
5.0.30.0030.0159.68
5.0.20.0070.0189.68
5.0.10.0040.0089.68
5.0.00.0040.0129.68
4.4.90.0030.0149.68
4.4.80.0010.0159.68
4.4.70.0050.0149.68
4.4.60.0010.0139.68
4.4.50.0030.0179.68
4.4.40.0080.0229.68
4.4.30.0020.0159.68
4.4.20.0020.0109.68
4.4.10.0000.0149.68
4.4.00.0000.0229.68
4.3.110.0020.0149.68
4.3.100.0030.0109.68
4.3.90.0030.0189.68
4.3.80.0020.0139.68
4.3.70.0000.0109.68
4.3.60.0030.0179.68
4.3.50.0070.0089.68
4.3.40.0000.0129.68
4.3.30.0000.0139.68
4.3.20.0000.0179.68
4.3.10.0030.0109.68
4.3.00.0050.0079.68

preferences:
47.7 ms | 401 KiB | 5 Q