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($time1);"\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.0090.01014.77
7.3.120.0090.00714.81
7.3.110.0030.01214.83
7.3.100.0050.01014.74
7.3.90.0090.00514.65
7.3.80.0060.00714.78
7.3.70.0040.00714.65
7.3.60.0040.00814.72
7.3.50.0070.00614.67
7.3.40.0060.01014.70
7.3.30.0060.00914.63
7.3.20.0050.00916.43
7.3.10.0100.00416.40
7.3.00.0100.00316.40
7.2.250.0080.01014.98
7.2.240.0070.01014.91
7.2.230.0050.00715.02
7.2.220.0050.00714.90
7.2.210.0030.01114.86
7.2.200.0070.00514.81
7.2.190.0060.00714.90
7.2.180.0030.01214.86
7.2.170.0060.00714.95
7.2.160.0080.00614.83
7.2.150.0060.00816.83
7.2.140.0060.00616.73
7.2.130.0110.00516.83
7.2.120.0050.01016.71
7.2.110.0050.00916.70
7.2.100.0020.01516.76
7.2.90.0070.00616.89
7.2.80.0100.00716.91
7.2.70.0050.00916.97
7.2.60.0040.01016.77
7.2.50.0050.01016.74
7.2.40.0030.01216.72
7.2.30.0120.00416.96
7.2.20.0120.00316.66
7.2.10.0030.01016.84
7.2.00.0060.00817.52
7.1.330.0070.00615.75
7.1.320.0040.00915.74
7.1.310.0080.00415.66
7.1.300.0090.00415.63
7.1.290.0040.00915.57
7.1.280.0060.00715.61
7.1.270.0070.00515.71
7.1.260.0050.00815.82
7.1.250.0060.00815.68
7.1.240.0000.01215.51
7.1.230.0040.01015.46
7.1.220.0000.01115.64
7.1.210.0070.00715.58
7.1.200.0060.00715.82
7.1.190.0060.00315.68
7.1.180.0090.00615.79
7.1.170.0000.01415.51
7.1.160.0090.00315.79
7.1.150.0070.01015.71
7.1.140.0040.01115.59
7.1.130.0050.00515.90
7.1.120.0030.01015.69
7.1.110.0060.00915.46
7.1.100.0040.00816.72
7.1.90.0120.00615.58
7.1.80.0030.01215.61
7.1.70.0050.00816.24
7.1.60.0110.00717.42
7.1.50.0060.00916.44
7.1.40.0100.00015.65
7.1.30.0090.00315.60
7.1.20.0040.01215.71
7.1.10.0060.00315.64
7.1.00.0060.04019.20
7.0.330.0040.01115.32
7.0.320.0040.01115.21
7.0.310.0070.01115.37
7.0.300.0160.00015.42
7.0.290.0070.00715.47
7.0.280.0040.01015.23
7.0.270.0060.00615.27
7.0.260.0040.01115.25
7.0.250.0040.00415.34
7.0.240.0030.01015.39
7.0.230.0120.00315.29
7.0.220.0140.00315.51
7.0.210.0030.00515.27
7.0.200.0100.00415.04
7.0.190.0060.00315.34
7.0.180.0030.00715.18
7.0.170.0070.00715.24
7.0.160.0000.01215.38
7.0.150.0040.00815.25
7.0.140.0060.03818.67
7.0.130.0100.00615.47
7.0.120.0070.00715.35
7.0.110.0060.00315.50
7.0.100.0070.01015.14
7.0.90.0080.04717.60
7.0.80.0020.04617.64
7.0.70.0070.04517.63
7.0.60.0120.03817.72
7.0.50.0070.03917.93
7.0.40.0090.04416.72
7.0.30.0080.03716.91
7.0.20.0140.04016.74
7.0.10.0030.04716.82
7.0.00.0070.04416.81
5.6.400.0080.00014.06
5.6.390.0090.00014.30
5.6.380.0060.00614.02
5.6.370.0100.00314.11
5.6.360.0040.01114.43
5.6.350.0110.00314.30
5.6.340.0000.01214.30
5.6.330.0030.01314.38
5.6.320.0040.00414.44
5.6.310.0060.00914.39
5.6.300.0040.00814.18
5.6.290.0040.01114.62
5.6.280.0080.03717.66
5.6.270.0070.00714.19
5.6.260.0030.00914.19
5.6.250.0040.01414.23
5.6.240.0110.04317.41
5.6.230.0120.04517.58
5.6.220.0030.04517.45
5.6.210.0080.04017.43
5.6.200.0020.04817.73
5.6.190.0110.04517.72
5.6.180.0040.04217.68
5.6.170.0120.03717.65
5.6.160.0130.03917.60
5.6.150.0090.04017.63
5.6.140.0060.04117.62
5.6.130.0080.04317.68
5.6.120.0120.04017.76
5.6.110.0020.04717.62
5.6.100.0090.04417.64
5.6.90.0120.04117.79
5.6.80.0060.03817.18
5.6.70.0150.04117.30
5.6.60.0100.04217.20
5.6.50.0020.04317.49
5.6.40.0050.04517.39
5.6.30.0090.03617.26
5.6.20.0030.03017.29
5.6.10.0030.03117.26
5.6.00.0070.02217.22
5.5.380.0050.04517.32
5.5.370.0030.04517.21
5.5.360.0070.03017.22
5.5.350.0050.04417.23
5.5.340.0080.03917.59
5.5.330.0070.04717.52
5.5.320.0080.03817.56
5.5.310.0050.04817.52
5.5.300.0030.04617.40
5.5.290.0070.04317.49
5.5.280.0050.04717.37
5.5.270.0120.04217.40
5.5.260.0030.05017.31
5.5.250.0020.04917.40
5.5.240.0050.04317.19
5.5.230.0080.02717.15
5.5.220.0110.03817.16
5.5.210.0120.03417.21
5.5.200.0120.03317.18
5.5.190.0050.04817.16
5.5.180.0050.03516.97
5.5.170.0040.00714.04
5.5.160.0070.02417.25
5.5.150.0080.02817.12
5.5.140.0030.02817.21
5.5.130.0090.03117.03
5.5.120.0070.02917.15
5.5.110.0080.02317.15
5.5.100.0070.02517.06
5.5.90.0080.04217.13
5.5.80.0070.04016.99
5.5.70.0050.04617.04
5.5.60.0080.03816.95
5.5.50.0080.02517.09
5.5.40.0090.02216.94
5.5.30.0070.02516.91
5.5.20.0040.02517.00
5.5.10.0040.03716.84
5.5.00.0070.02717.01
5.4.450.0060.04315.16
5.4.440.0110.03815.10
5.4.430.0070.04115.24
5.4.420.0050.04315.15
5.4.410.0070.04215.11
5.4.400.0150.03514.86
5.4.390.0080.03514.93
5.4.380.0100.03214.95
5.4.370.0080.03814.84
5.4.360.0060.04014.72
5.4.350.0070.04214.94
5.4.340.0030.02714.85
5.4.330.0040.00710.47
5.4.320.0070.04314.98
5.4.310.0020.04614.77
5.4.300.0100.01814.93
5.4.290.0060.03614.97
5.4.280.0050.04214.92
5.4.270.0080.03815.00
5.4.260.0030.03714.85
5.4.250.0050.02414.94
5.4.240.0080.02714.90
5.4.230.0080.03714.67
5.4.220.0100.02014.99
5.4.210.0100.03815.06
5.4.200.0050.02114.81
5.4.190.0060.03015.02
5.4.180.0020.02314.90
5.4.170.0060.03114.96
5.4.160.0090.03814.80
5.4.150.0030.03014.98
5.4.140.0040.03613.38
5.4.130.0050.02313.67
5.4.120.0050.02413.62
5.4.110.0050.04213.58
5.4.100.0040.04013.41
5.4.90.0070.04013.63
5.4.80.0040.04113.78
5.4.70.0060.03813.54
5.4.60.0040.02513.50
5.4.50.0070.03913.51
5.4.40.0100.03613.58
5.4.30.0120.03313.69
5.4.20.0100.03713.50
5.4.10.0060.04113.56
5.4.00.0050.04013.37
5.3.290.0170.06714.48
5.3.280.0070.07714.60
5.3.270.0030.07314.59
5.3.260.0000.05014.56
5.3.250.0000.03714.54
5.3.240.0100.07014.56
5.3.230.0070.08014.53
5.3.220.0070.05714.55
5.3.210.0030.08314.55
5.3.200.0130.06314.54
5.3.190.0170.07014.47
5.3.180.0000.04314.39
5.3.170.0030.07714.57
5.3.160.0130.07014.47
5.3.150.0130.06714.56
5.3.140.0130.06714.41
5.3.130.0030.08014.52
5.3.120.0070.08014.53
5.3.110.0000.07314.39
5.3.100.0030.07713.98
5.3.90.0170.06313.89
5.3.80.0070.07014.02
5.3.70.0030.07713.88
5.3.60.0030.06714.00
5.3.50.0000.08013.79
5.3.40.0070.07013.93
5.3.30.0070.07313.76
5.3.20.0030.07313.59
5.3.10.0030.07013.63
5.3.00.0130.06313.61
5.2.170.0030.06311.09
5.2.160.0170.04711.09
5.2.150.0070.06311.13
5.2.140.0070.05711.12
5.2.130.0070.05711.12
5.2.120.0100.05311.09
5.2.110.0070.06311.12
5.2.100.0030.06011.18
5.2.90.0130.05711.12
5.2.80.0070.06311.12
5.2.70.0000.06311.05
5.2.60.0070.06011.11
5.2.50.0070.06011.04
5.2.40.0070.05310.81
5.2.30.0100.05710.89
5.2.20.0030.05710.84
5.2.10.0070.03310.92
5.2.00.0000.06710.73
5.1.60.0030.05310.30
5.1.50.0000.05310.30
5.1.40.0030.03310.30
5.1.30.0000.06010.41
5.1.20.0030.05710.41
5.1.10.0070.05010.30
5.1.00.0030.05710.30
5.0.50.0070.04310.30
5.0.40.0070.04010.30
5.0.30.0070.06310.30
5.0.20.0030.04310.30
5.0.10.0000.03710.30
5.0.00.0000.06010.30
4.4.90.0030.03310.30
4.4.80.0100.02710.30
4.4.70.0070.02710.30
4.4.60.0030.03310.30
4.4.50.0070.03010.30
4.4.40.0070.05010.30
4.4.30.0030.03710.30
4.4.20.0000.04010.30
4.4.10.0000.03310.30
4.4.00.0100.04710.30
4.3.110.0070.03310.30
4.3.100.0030.03310.30
4.3.90.0000.03310.30
4.3.80.0070.04710.30
4.3.70.0070.03010.30
4.3.60.0030.03010.30
4.3.50.0130.02310.30
4.3.40.0000.05310.30
4.3.30.0030.03010.30
4.3.20.0030.03310.30
4.3.10.0000.04010.30
4.3.00.0030.03310.30

preferences:
35.26 ms | 401 KiB | 5 Q