3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time1 = '2014-08-26 14:35:29'; $time2 = '2014-08-26 14:45:29'; $strtotime1 = strtotime($time1); $strtotime2 = strtotime($time2); $hourdiff = round((strtotime($strtotime2) - strtotime($strtotime1))/3600, 1); echo $hourdiff; exit; echo $strtotime1; echo "\n"; echo $strtotime2; echo "\n"; echo $strtotime2 - $strtotime1;

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)
8.3.60.0070.01016.75
8.3.50.0120.00722.95
8.3.40.0040.01418.88
8.3.30.0150.00019.04
8.3.20.0070.00020.33
8.3.10.0080.00023.48
8.3.00.0000.00919.55
8.2.180.0150.00916.75
8.2.170.0140.00322.96
8.2.160.0000.01520.56
8.2.150.0050.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.09
8.2.110.0030.00621.00
8.2.100.0120.00018.03
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0000.00817.88
8.2.60.0000.01017.93
8.2.50.0000.00918.07
8.2.40.0070.00018.22
8.2.30.0040.00418.19
8.2.20.0000.00717.92
8.2.10.0040.00418.06
8.2.00.0040.00417.87
8.1.280.0040.01125.92
8.1.270.0040.00424.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.91
8.1.230.0040.00820.73
8.1.220.0050.00317.88
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0000.00917.47
8.1.180.0000.00718.10
8.1.170.0000.00918.62
8.1.160.0000.00721.89
8.1.150.0050.00218.88
8.1.140.0040.00417.50
8.1.130.0030.00317.90
8.1.120.0000.00717.50
8.1.110.0050.00217.64
8.1.100.0040.00417.60
8.1.90.0050.00217.63
8.1.80.0000.00817.61
8.1.70.0000.00717.50
8.1.60.0050.00317.56
8.1.50.0080.00017.66
8.1.40.0030.00617.68
8.1.30.0040.00417.66
8.1.20.0070.00017.68
8.1.10.0000.00717.65
8.1.00.0000.01017.52
8.0.300.0030.00318.77
8.0.290.0030.00616.88
8.0.280.0000.00818.52
8.0.270.0070.00016.96
8.0.260.0030.00517.28
8.0.250.0050.00217.11
8.0.240.0030.00317.23
8.0.230.0040.00417.10
8.0.220.0000.00717.20
8.0.210.0070.00017.20
8.0.200.0060.00017.14
8.0.190.0000.00717.01
8.0.180.0080.00017.06
8.0.170.0050.00317.14
8.0.160.0070.00017.05
8.0.150.0030.00617.02
8.0.140.0000.00717.06
8.0.130.0000.00513.49
8.0.120.0070.00017.03
8.0.110.0040.00417.12
8.0.100.0000.00717.13
8.0.90.0030.00316.93
8.0.80.0110.00616.96
8.0.70.0040.00417.12
8.0.60.0050.00216.91
8.0.50.0030.00616.90
8.0.30.0080.01217.17
8.0.20.0100.01017.44
8.0.10.0040.00417.22
8.0.00.0110.00816.86
7.4.330.0000.00515.00
7.4.320.0040.00416.60
7.4.300.0000.00616.71
7.4.290.0030.00316.66
7.4.280.0050.00316.64
7.4.270.0030.00316.70
7.4.260.0000.00716.52
7.4.250.0050.00316.65
7.4.240.0020.00516.58
7.4.230.0030.00316.76
7.4.220.0170.00316.53
7.4.210.0070.01416.71
7.4.200.0040.00416.47
7.4.160.0090.00916.89
7.4.150.0150.00317.40
7.4.140.0130.00717.86
7.4.130.0090.00816.55
7.4.120.0090.00816.52
7.4.110.0090.01516.64
7.4.100.0060.01016.68
7.4.90.0130.00316.65
7.4.80.0070.01119.39
7.4.70.0150.00316.73
7.4.60.0080.01116.74
7.4.50.0000.00516.84
7.4.40.0160.00616.75
7.4.30.0100.00616.72
7.4.00.0040.01415.28
7.3.330.0060.00313.36
7.3.320.0060.00013.22
7.3.310.0080.00016.40
7.3.300.0040.00416.46
7.3.290.0030.01516.41
7.3.280.0070.01016.46
7.3.270.0030.01417.40
7.3.260.0140.00316.56
7.3.250.0100.00816.59
7.3.240.0030.01216.54
7.3.230.0090.00916.61
7.3.210.0000.01616.68
7.3.200.0100.01019.39
7.3.190.0120.00616.54
7.3.180.0060.01016.42
7.3.170.0070.00916.58
7.3.160.0090.00616.52
7.2.330.0090.00916.67
7.2.320.0070.01016.93
7.2.310.0090.00916.75
7.2.300.0110.01016.64
7.2.290.0060.01016.86
7.2.60.0080.00817.09
7.2.00.0000.01619.57
7.1.200.0100.00316.02
7.1.100.0060.01018.12
7.1.70.0060.00617.47
7.1.60.0120.01219.40
7.1.50.0120.00017.14
7.1.00.0030.07722.54
7.0.200.0270.00315.14
7.0.140.0000.07722.08
7.0.60.0030.08019.93
7.0.50.0070.06017.92
7.0.40.0000.05320.09
7.0.30.0200.04320.31
7.0.20.0330.06720.21
7.0.10.0130.06320.00
7.0.00.0100.08020.16
5.6.280.0130.06320.91
5.6.210.0030.04020.50
5.6.200.0000.04318.12
5.6.190.0070.09020.65
5.6.180.0230.04720.27
5.6.170.0200.05320.49
5.6.160.0070.03720.44
5.6.150.0030.04018.21
5.6.140.0000.04018.23
5.6.130.0070.08018.09
5.6.120.0030.09021.02
5.6.110.0000.09321.00
5.6.100.0070.07321.10
5.6.90.0100.07720.92
5.6.80.0030.05720.28
5.5.350.3170.05020.49
5.5.340.0070.04717.99
5.5.330.0070.04320.29
5.5.320.0230.04320.29
5.5.310.0270.05720.30
5.5.300.0100.03017.91
5.5.290.0030.04017.98
5.5.280.0070.08320.86
5.5.270.0100.08320.87
5.5.260.0170.07320.86
5.5.250.0200.03720.57
5.5.240.0130.06320.32
5.4.450.0900.04719.28
5.4.440.0600.05019.55
5.4.430.0130.05019.48
5.4.420.0570.05719.58
5.4.410.0830.04719.04
5.4.400.0070.05319.20
5.4.390.0570.06018.93
5.4.380.0130.05718.70
5.4.370.0070.03718.72
5.4.360.0070.03318.50
5.4.350.0110.04711.97
5.4.340.0110.05211.97
5.4.320.0050.03712.46
5.4.310.0080.03512.45
5.4.300.0100.03212.46
5.4.290.0050.03812.46
5.4.280.0050.03612.35
5.4.270.0020.03912.35
5.4.260.0050.03812.36
5.4.250.0070.03512.36
5.4.240.0040.03712.36
5.4.230.0060.03712.35
5.4.220.0040.03712.34
5.4.210.0050.03512.34
5.4.200.0080.03512.35
5.4.190.0040.03812.34
5.4.180.0080.03412.34
5.4.170.0020.03912.35
5.4.160.0070.03412.34
5.4.150.0090.03312.34
5.4.140.0040.03812.03
5.4.130.0020.04012.01
5.4.120.0070.03511.97
5.4.110.0070.03811.97
5.4.100.0060.03611.97
5.4.90.0040.04311.97
5.4.80.0040.04911.96
5.4.70.0090.03111.96
5.4.60.0040.03711.96
5.4.50.0040.03511.96
5.4.40.0050.03511.95
5.4.30.0070.03411.95
5.4.20.0100.03111.95
5.4.10.0050.03611.95
5.4.00.0070.03711.44
5.3.290.0080.03712.80
5.3.280.0050.04212.71
5.3.270.0040.04112.73
5.3.260.0070.03712.72
5.3.250.0050.03812.72
5.3.240.0080.03512.72
5.3.230.0040.03912.70
5.3.220.0090.03312.68
5.3.210.0080.04112.68
5.3.200.0030.03812.68
5.3.190.0060.04212.68
5.3.180.0050.04012.67
5.3.170.0040.03812.67
5.3.160.0060.03612.68
5.3.150.0070.03612.68
5.3.140.0050.03612.66
5.3.130.0110.04512.66
5.3.120.0060.03912.65
5.3.110.0050.03812.66
5.3.100.0120.03612.12
5.3.90.0060.03512.08
5.3.80.0080.04012.08
5.3.70.0050.03612.08
5.3.60.0030.03712.06
5.3.50.0070.03612.00
5.3.40.0090.03312.00
5.3.30.0060.03511.95
5.3.20.0070.03511.73
5.3.10.0040.03611.70
5.3.00.0070.03411.69
5.2.170.0060.0289.19
5.2.160.0030.0399.19
5.2.150.0070.0299.19
5.2.140.0060.0379.18
5.2.130.0050.0329.14
5.2.120.0050.0299.14
5.2.110.0060.0329.15
5.2.100.0050.0299.14
5.2.90.0070.0309.15
5.2.80.0030.0329.15
5.2.70.0050.0299.15
5.2.60.0040.0299.10
5.2.50.0050.0289.07
5.2.40.0050.0289.04
5.2.30.0050.0299.02
5.2.20.0030.0299.01
5.2.10.0050.0308.96
5.2.00.0040.0318.82
5.1.60.0050.0258.10
5.1.50.0020.0268.10
5.1.40.0070.0268.08
5.1.30.0040.0248.43
5.1.20.0060.0268.45
5.1.10.0050.0248.17
5.1.00.0040.0248.18
5.0.50.0060.0236.69
5.0.40.0040.0186.55
5.0.30.0010.0336.36
5.0.20.0020.0256.33
5.0.10.0030.0206.31
5.0.00.0060.0276.30
4.4.90.0040.0134.78
4.4.80.0040.0144.75
4.4.70.0010.0174.75
4.4.60.0030.0184.75
4.4.50.0030.0234.77
4.4.40.0060.0254.71
4.4.30.0030.0144.76
4.4.20.0020.0254.84
4.4.10.0020.0164.85
4.4.00.0030.0314.76
4.3.110.0020.0154.67
4.3.100.0030.0154.67
4.3.90.0020.0174.64
4.3.80.0050.0254.59
4.3.70.0030.0204.63
4.3.60.0060.0174.63
4.3.50.0020.0204.63
4.3.40.0030.0234.55
4.3.30.0030.0163.36
4.3.20.0010.0163.34
4.3.10.0020.0153.30
4.3.00.0100.0237.82

preferences:
42.99 ms | 401 KiB | 5 Q