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(); echo strtotime("now"); echo "\n"; 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.00.0000.01715.05
7.3.120.0070.01015.01
7.3.110.0060.00614.66
7.3.100.0090.00614.89
7.3.90.0080.00614.57
7.3.80.0070.01114.68
7.3.70.0090.00914.77
7.3.60.0060.00314.60
7.3.50.0090.00614.52
7.3.40.0040.01114.84
7.3.30.0040.00414.73
7.3.20.0030.00816.63
7.3.10.0090.00316.68
7.3.00.0060.00816.64
7.2.250.0180.00014.88
7.2.240.0070.01315.08
7.2.230.0120.00615.11
7.2.220.0040.00715.06
7.2.210.0040.01514.86
7.2.200.0070.01014.94
7.2.190.0030.01314.82
7.2.180.0030.01415.11
7.2.170.0070.00715.02
7.2.130.0100.00016.73
7.2.120.0070.00716.79
7.2.110.0100.00016.62
7.2.100.0070.00616.68
7.2.90.0050.00916.74
7.2.80.0060.00516.71
7.2.70.0040.00816.74
7.2.60.0090.00616.71
7.2.50.0050.00816.83
7.2.40.0050.00816.76
7.2.30.0030.00816.71
7.2.20.0090.00616.87
7.2.10.0020.00816.70
7.2.00.0030.00917.48
7.1.330.0030.00915.78
7.1.320.0030.00615.63
7.1.310.0110.00315.70
7.1.300.0000.01515.54
7.1.290.0030.00715.64
7.1.280.0030.00615.68
7.1.270.0000.00915.72
7.1.260.0030.01015.69
7.1.250.0050.00515.77
7.1.240.0070.00415.54
7.1.230.0110.00015.53
7.1.220.0070.00315.50
7.1.210.0030.00615.62
7.1.200.0090.00015.57
7.1.190.0030.00915.74
7.1.180.0030.00715.83
7.1.170.0040.00815.50
7.1.160.0080.00515.43
7.1.150.0050.00315.79
7.1.140.0060.00615.75
7.1.130.0090.00615.43
7.1.120.0120.00015.71
7.1.110.0060.00615.61
7.1.100.0030.00816.92
7.1.90.0130.00015.56
7.1.80.0070.00415.59
7.1.70.0040.00716.41
7.1.60.0110.00617.59
7.1.50.0100.00316.33
7.1.40.0030.00915.71
7.1.30.0070.00715.70
7.1.20.0060.00615.47
7.1.10.0060.00315.74
7.1.00.0030.03918.96
7.0.320.0030.01015.36
7.0.310.0080.00015.05
7.0.300.0040.00415.12
7.0.290.0000.00715.38
7.0.280.0030.00915.29
7.0.270.0120.00315.29
7.0.260.0040.00415.28
7.0.250.0060.00615.39
7.0.240.0030.00915.33
7.0.230.0060.00615.20
7.0.220.0070.00015.46
7.0.210.0040.00815.21
7.0.200.0090.00415.08
7.0.190.0060.00615.27
7.0.180.0000.01415.10
7.0.170.0030.00615.20
7.0.160.0000.00715.30
7.0.150.0070.00715.36
7.0.140.0090.03518.69
7.0.130.0040.00715.16
7.0.120.0060.00615.29
7.0.110.0090.00315.16
7.0.100.0290.04217.57
7.0.90.0280.02117.39
7.0.80.0280.03517.63
7.0.70.0050.04317.75
7.0.60.0060.02217.57
7.0.50.0100.02017.81
7.0.40.0020.03516.79
7.0.30.0060.02316.80
7.0.20.0080.02516.74
7.0.10.0050.02016.61
7.0.00.0030.02016.65
5.6.380.0060.00614.30
5.6.370.0110.00414.23
5.6.360.0100.00313.88
5.6.350.0080.00814.46
5.6.340.0160.00013.96
5.6.330.0080.00814.23
5.6.320.0050.00814.39
5.6.310.0080.00614.30
5.6.300.0130.00014.25
5.6.290.0030.01014.19
5.6.280.0100.00714.34
5.6.270.0070.00713.87
5.6.260.0100.01014.27
5.6.250.0160.03817.34
5.6.240.0100.03817.43
5.6.230.0110.04117.35
5.6.220.0130.03917.58
5.6.210.0060.02817.43
5.6.200.0050.02717.72
5.6.190.0120.02317.52
5.6.180.0070.02517.64
5.6.170.0100.03217.63
5.6.160.0040.03117.49
5.6.150.0060.02417.73
5.6.140.0050.02417.66
5.6.130.0060.02517.54
5.6.120.0060.04617.54
5.6.110.0080.04317.46
5.6.100.0080.03517.48
5.6.90.0110.02217.69
5.6.80.0030.03217.44
5.6.70.0060.02017.21
5.6.60.0090.03617.36
5.6.50.0100.01717.17
5.6.40.0080.02217.29
5.6.30.0070.02217.11
5.6.20.0070.02217.27
5.6.10.0090.02317.18
5.6.00.0110.03217.14
5.5.380.0110.03715.62
5.5.370.0090.03315.70
5.5.360.0090.02015.63
5.5.350.0120.04215.57
5.5.340.0080.04315.97
5.5.330.0080.02315.80
5.5.320.0100.02215.90
5.5.310.0040.02615.86
5.5.300.0020.03215.87
5.5.290.0000.03115.94
5.5.280.0070.02215.78
5.5.270.0060.04215.82
5.5.260.0080.04115.83
5.5.250.0060.02315.62
5.5.240.0030.02115.50
5.5.230.0080.01915.61
5.5.220.0040.03715.46
5.5.210.0050.02015.37
5.5.200.0060.01915.62
5.5.190.0030.02815.47
5.5.180.0130.02015.55
5.5.170.0150.00414.09
5.5.160.0060.02215.48
5.5.150.0060.02415.56
5.5.140.0080.02015.63
5.5.130.0070.02215.50
5.5.120.0020.02215.37
5.5.110.0000.03215.49
5.5.100.0070.02015.38
5.5.90.0020.03715.44
5.5.80.0030.02215.39
5.5.70.0040.02315.39
5.5.60.0000.02415.22
5.5.50.0000.02415.23
5.5.40.0110.03815.45
5.5.30.0070.03215.31
5.5.20.0030.02115.41
5.5.10.0030.04315.49
5.5.00.0070.03015.31
5.4.450.0050.02115.11
5.4.440.0050.02615.16
5.4.430.0050.02515.05
5.4.420.0060.04315.24
5.4.410.0070.02015.20
5.4.400.0020.02115.02
5.4.390.0100.02514.76
5.4.380.0040.02414.81
5.4.370.0030.02214.96
5.4.360.0100.02214.90
5.4.350.0050.02314.93
5.4.340.0040.02214.95
5.4.330.0080.00410.76
5.4.320.0080.02114.83
5.4.310.0060.02114.96
5.4.300.0050.03314.72
5.4.290.0060.03014.80
5.4.280.0040.02514.90
5.4.270.0050.03015.03
5.4.260.0050.02114.98
5.4.250.0040.02215.00
5.4.240.0000.02314.91
5.4.230.0070.02514.86
5.4.220.0050.01914.92
5.4.210.0110.02514.90
5.4.200.0080.03814.94
5.4.190.0010.03614.95
5.4.180.0070.03314.84
5.4.170.0110.03615.00
5.4.160.0100.03114.98
5.4.150.0080.03914.88
5.4.140.0080.03513.58
5.4.130.0100.02013.39
5.4.120.0090.03713.63
5.4.110.0070.02513.47
5.4.100.0060.04113.61
5.4.90.0060.02513.53
5.4.80.0110.03513.52
5.4.70.0070.04113.50
5.4.60.0040.04113.56
5.4.50.0050.03713.43
5.4.40.0090.03313.42
5.4.30.0030.02813.56
5.4.20.0060.02513.59
5.4.10.0070.04013.43
5.4.00.0080.03313.33
5.3.290.0040.02512.60
5.3.280.0030.02512.41
5.3.270.0080.03812.41
5.3.260.0050.02512.46
5.3.250.0040.03112.43
5.3.240.0020.04112.38
5.3.230.0050.04112.38
5.3.220.0100.03012.44
5.3.210.0060.03812.44
5.3.200.0050.02212.40
5.3.190.0100.03612.37
5.3.180.0020.02712.44
5.3.170.0100.02112.37
5.3.160.0070.02412.56
5.3.150.0090.02912.53
5.3.140.0110.03212.42
5.3.130.0110.03712.40
5.3.120.0060.04212.45
5.3.110.0100.03712.42
5.3.100.0070.04412.15
5.3.90.0050.02812.25
5.3.80.0030.03812.13
5.3.70.0100.02012.20
5.3.60.0030.02712.12
5.3.50.0070.04012.13
5.3.40.0090.03512.02
5.3.30.0080.03812.04
5.3.20.0110.02712.00
5.3.10.0060.02211.95
5.3.00.0060.03611.86
5.2.170.0050.02010.68
5.2.160.0020.02110.72
5.2.150.0020.02210.64
5.2.140.0040.03210.74
5.2.130.0080.01810.69
5.2.120.0110.02110.60
5.2.110.0070.03210.68
5.2.100.0070.03210.66
5.2.90.0070.03210.68
5.2.80.0000.02310.61
5.2.70.0100.02810.62
5.2.60.0040.03210.70
5.2.50.0050.03310.68
5.2.40.0070.01810.65
5.2.30.0040.03510.60
5.2.20.0090.02710.53
5.2.10.0070.02510.54
5.2.00.0080.03110.47
5.1.60.0020.01710.15
5.1.50.0050.02810.14
5.1.40.0060.02210.18
5.1.30.0020.02210.35
5.1.20.0080.02510.35
5.1.10.0030.02710.19
5.1.00.0030.01610.13
5.0.50.0070.0229.42
5.0.40.0060.0159.28
5.0.30.0030.0289.30
5.0.20.0020.0249.28
5.0.10.0030.0149.28
5.0.00.0040.0349.27
4.4.90.0050.0198.66
4.4.80.0020.0138.66
4.4.70.0010.0118.66
4.4.60.0030.0198.66
4.4.50.0060.0068.66
4.4.40.0020.0308.66
4.4.30.0020.0098.66
4.4.20.0050.0178.66
4.4.10.0020.0218.66
4.4.00.0020.0308.66
4.3.110.0020.0228.66
4.3.100.0030.0178.66
4.3.90.0020.0208.66
4.3.80.0020.0158.66
4.3.70.0020.0188.66
4.3.60.0060.0158.66
4.3.50.0030.0178.66
4.3.40.0030.0138.66
4.3.30.0030.0188.66
4.3.20.0000.0228.66
4.3.10.0000.0208.66
4.3.00.0030.0108.66

preferences:
36.72 ms | 401 KiB | 5 Q