3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time1 = '2014-08-26 14:35:29'; $time2 = '2014-08-26 15: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.0090.00616.50
8.3.50.0110.00822.88
8.3.40.0090.00618.92
8.3.30.0140.00019.07
8.3.20.0080.00020.14
8.3.10.0000.00723.48
8.3.00.0080.00019.38
8.2.180.0140.00416.75
8.2.170.0140.00322.96
8.2.160.0110.00320.29
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00721.00
8.2.110.0030.00620.33
8.2.100.0080.00418.09
8.2.90.0000.00818.00
8.2.80.0000.00818.04
8.2.70.0030.00617.74
8.2.60.0080.00017.88
8.2.50.0030.00617.92
8.2.40.0050.00317.93
8.2.30.0040.00418.14
8.2.20.0090.00017.92
8.2.10.0060.00318.25
8.2.00.0030.00618.01
8.1.280.0140.00725.92
8.1.270.0040.00423.78
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.75
8.1.230.0040.00818.98
8.1.220.0000.00917.78
8.1.210.0000.00820.90
8.1.200.0070.00317.38
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0000.00717.82
8.1.160.0050.00221.95
8.1.150.0000.00718.79
8.1.140.0000.00817.57
8.1.130.0000.00717.89
8.1.120.0050.00317.59
8.1.110.0040.00417.47
8.1.100.0030.00417.59
8.1.90.0000.00817.59
8.1.80.0040.00417.50
8.1.70.0000.00817.60
8.1.60.0000.00817.64
8.1.50.0030.00617.61
8.1.40.0030.00617.63
8.1.30.0040.00417.66
8.1.20.0000.00717.84
8.1.10.0040.00417.54
8.1.00.0040.00717.54
8.0.300.0040.00419.85
8.0.290.0030.00517.00
8.0.280.0070.00018.51
8.0.270.0000.00717.25
8.0.260.0000.00617.33
8.0.250.0030.00317.19
8.0.240.0030.00317.26
8.0.230.0000.00717.16
8.0.220.0000.00717.13
8.0.210.0000.00717.06
8.0.200.0040.00417.13
8.0.190.0030.00417.17
8.0.180.0030.00317.01
8.0.170.0030.00617.00
8.0.160.0000.00717.16
8.0.150.0060.00316.97
8.0.140.0000.00817.04
8.0.130.0060.00013.39
8.0.120.0070.00017.04
8.0.110.0000.00817.08
8.0.100.0020.00517.13
8.0.90.0080.00017.12
8.0.80.0090.00617.08
8.0.70.0040.00417.02
8.0.60.0050.00217.10
8.0.50.0030.00517.00
8.0.30.0080.01117.13
8.0.20.0140.00617.40
8.0.10.0000.00817.15
8.0.00.0140.00416.98
7.4.330.0000.00515.00
7.4.320.0060.00016.59
7.4.300.0000.00616.65
7.4.290.0030.00316.72
7.4.280.0050.00316.57
7.4.270.0030.00316.59
7.4.260.0000.00716.57
7.4.250.0080.00016.54
7.4.240.0060.00116.68
7.4.230.0030.00316.70
7.4.220.0030.01616.64
7.4.210.0090.00916.69
7.4.200.0000.00816.48
7.4.160.0150.00016.91
7.4.150.0110.00717.40
7.4.140.0080.01017.86
7.4.130.0100.01216.69
7.4.120.0100.00616.62
7.4.110.0180.00616.68
7.4.100.0090.00616.87
7.4.90.0090.00916.65
7.4.80.0140.00719.39
7.4.70.0150.00816.64
7.4.60.0040.01216.63
7.4.50.0050.00016.24
7.4.40.0130.00716.80
7.4.30.0130.00316.71
7.4.00.0060.01115.26
7.3.330.0030.00613.28
7.3.320.0000.00513.27
7.3.310.0040.00416.40
7.3.300.0060.00016.46
7.3.290.0130.00716.41
7.3.280.0060.01016.46
7.3.270.0150.00917.40
7.3.260.0080.00816.61
7.3.250.0110.00616.54
7.3.240.0100.00716.85
7.3.230.0000.01616.46
7.3.210.0140.00416.54
7.3.200.0140.00419.39
7.3.190.0100.00716.63
7.3.180.0120.00416.68
7.3.170.0080.00816.61
7.3.160.0150.00316.57
7.3.120.0030.01614.64
7.3.110.0080.00414.90
7.3.100.0080.00814.94
7.3.90.0070.01114.93
7.3.80.0000.01214.96
7.3.70.0100.00714.98
7.3.60.0050.00515.10
7.3.50.0090.00614.93
7.3.40.0060.00915.01
7.3.30.0030.01014.95
7.3.20.0100.00316.59
7.3.10.0090.00816.52
7.3.00.0070.01016.47
7.2.330.0150.00416.81
7.2.320.0090.00916.86
7.2.310.0140.00316.59
7.2.300.0070.01416.65
7.2.290.0080.00816.85
7.2.250.0070.01115.13
7.2.240.0100.00714.79
7.2.230.0160.00315.40
7.2.220.0090.00615.06
7.2.210.0090.00615.07
7.2.200.0100.00614.91
7.2.190.0000.01215.24
7.2.180.0060.01014.93
7.2.170.0100.00715.30
7.2.130.0070.01216.61
7.2.120.0110.00916.62
7.2.110.0160.00516.62
7.2.100.0120.00816.71
7.2.90.0190.00416.45
7.2.80.0100.00616.55
7.2.70.0080.00816.87
7.2.60.0110.00816.76
7.2.50.0070.01316.64
7.2.40.0080.00616.65
7.2.30.0120.01016.61
7.2.20.0070.00816.48
7.2.10.0120.00716.54
7.2.00.0090.00817.79
7.1.330.0030.01015.74
7.1.320.0040.01115.79
7.1.310.0090.00315.92
7.1.300.0030.00916.07
7.1.290.0060.00915.99
7.1.280.0040.01215.80
7.1.270.0030.00915.99
7.1.260.0040.01115.61
7.1.250.0120.00715.57
7.1.200.0000.01316.03
7.1.100.0030.00718.33
7.1.70.0000.00917.38
7.1.60.0070.01719.40
7.1.50.0000.01117.14
7.1.00.0030.07722.44
7.0.200.0410.00015.07
7.0.140.0070.07021.95
7.0.60.0000.07019.94
7.0.50.0070.04017.67
7.0.40.0100.07020.21
7.0.30.0370.07320.02
7.0.20.0270.04020.17
7.0.10.0200.06320.16
7.0.00.0100.07720.22
5.6.280.0030.07320.98
5.6.210.0070.04320.56
5.6.200.0000.05018.08
5.6.190.0170.07320.27
5.6.180.0330.07720.35
5.6.170.0370.07720.49
5.6.160.0030.04020.32
5.6.150.0000.04318.07
5.6.140.0000.04018.20
5.6.130.0130.07718.21
5.6.120.0100.08021.00
5.6.110.0230.07020.99
5.6.100.0130.05321.00
5.6.90.0030.06720.94
5.6.80.0070.06720.50
5.5.350.3400.04020.30
5.5.340.0130.07317.93
5.5.330.0100.05720.20
5.5.320.0200.05720.51
5.5.310.0300.08020.29
5.5.300.0000.04017.95
5.5.290.0000.04717.91
5.5.280.0130.06720.95
5.5.270.0130.08020.74
5.5.260.0130.07720.86
5.5.250.0070.05720.54
5.5.240.0100.06720.32
5.4.450.0270.04719.38
5.4.440.0570.06019.35
5.4.430.0430.06719.63
5.4.420.0800.05019.54
5.4.410.0070.05319.41
5.4.400.0700.05718.84
5.4.390.0830.04719.05
5.4.380.0100.05018.71
5.4.370.0000.04318.69
5.4.360.0070.05718.51
5.4.350.0080.04211.97
5.4.340.0070.04711.97
5.4.320.0070.03512.46
5.4.310.0110.03512.46
5.4.300.0090.04012.46
5.4.290.0080.04512.45
5.4.280.0090.03512.36
5.4.270.0060.03712.36
5.4.260.0090.04412.35
5.4.250.0130.03612.35
5.4.240.0110.04312.35
5.4.230.0090.03912.34
5.4.220.0080.03412.34
5.4.210.0070.03612.35
5.4.200.0090.03412.34
5.4.190.0050.03612.34
5.4.180.0090.03812.34
5.4.170.0030.03912.35
5.4.160.0060.04112.34
5.4.150.0020.04012.34
5.4.140.0070.03512.02
5.4.130.0080.03312.01
5.4.120.0040.03711.97
5.4.110.0050.03611.96
5.4.100.0040.03811.97
5.4.90.0070.03611.96
5.4.80.0070.04211.97
5.4.70.0050.04111.96
5.4.60.0060.03811.96
5.4.50.0060.04611.96
5.4.40.0070.04011.95
5.4.30.0030.04311.95
5.4.20.0070.03311.95
5.4.10.0070.03411.95
5.4.00.0040.03811.44
5.3.290.0050.04112.80
5.3.280.0080.03612.71
5.3.270.0060.04012.73
5.3.260.0090.03612.72
5.3.250.0080.03612.72
5.3.240.0100.03612.72
5.3.230.0040.04012.71
5.3.220.0050.03712.68
5.3.210.0050.04012.68
5.3.200.0070.03912.68
5.3.190.0080.03612.68
5.3.180.0080.03412.67
5.3.170.0080.04012.67
5.3.160.0080.03912.67
5.3.150.0070.03612.67
5.3.140.0030.04512.66
5.3.130.0080.04412.66
5.3.120.0050.03912.66
5.3.110.0070.03712.66
5.3.100.0070.03612.12
5.3.90.0050.03812.08
5.3.80.0050.03712.07
5.3.70.0060.03612.07
5.3.60.0080.04012.06
5.3.50.0040.03712.00
5.3.40.0050.03712.00
5.3.30.0070.03411.96
5.3.20.0070.03411.73
5.3.10.0060.03411.70
5.3.00.0040.03811.69
5.2.170.0030.0349.19
5.2.160.0090.0289.19
5.2.150.0040.0319.19
5.2.140.0050.0319.19
5.2.130.0030.0359.15
5.2.120.0060.0299.14
5.2.110.0040.0329.15
5.2.100.0020.0329.14
5.2.90.0010.0339.15
5.2.80.0040.0319.15
5.2.70.0110.0259.15
5.2.60.0030.0329.10
5.2.50.0090.0269.07
5.2.40.0060.0279.04
5.2.30.0040.0319.02
5.2.20.0080.0269.01
5.2.10.0030.0308.96
5.2.00.0050.0368.82
5.1.60.0040.0238.10
5.1.50.0070.0258.09
5.1.40.0020.0298.08
5.1.30.0030.0298.43
5.1.20.0010.0308.45
5.1.10.0040.0268.18
5.1.00.0030.0278.18
5.0.50.0010.0236.69
5.0.40.0050.0196.55
5.0.30.0000.0346.36
5.0.20.0040.0196.33
5.0.10.0020.0226.30
5.0.00.0030.0316.30
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0020.0164.76
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0060.0224.71
4.4.30.0040.0154.76
4.4.20.0040.0164.85
4.4.10.0050.0134.85
4.4.00.0020.0264.76
4.3.110.0040.0144.67
4.3.100.0030.0154.67
4.3.90.0030.0224.63
4.3.80.0030.0264.59
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0254.55
4.3.30.0010.0173.36
4.3.20.0020.0163.34
4.3.10.0010.0233.29
4.3.00.0030.0237.82

preferences:
48.56 ms | 401 KiB | 5 Q