3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = new DateTime('10-12-2014'); $date2 = new DateTime('11-12-2014'); $number1 = (int)$date1->format('U'); $number2 = (int)$date2->format('U'); echo (($number2 - $number1)/60/60);

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.0150.00418.43
8.3.50.0100.01021.10
8.3.40.0040.01118.62
8.3.30.0030.01019.18
8.3.20.0070.00020.17
8.3.10.0050.00223.66
8.3.00.0100.00019.38
8.2.180.0040.01116.50
8.2.170.0030.01722.96
8.2.160.0080.00620.53
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00422.41
8.2.110.0000.00920.89
8.2.100.0030.00917.88
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0030.00617.88
8.2.60.0090.00318.03
8.2.50.0050.00318.07
8.2.40.0050.00519.91
8.2.30.0040.00418.00
8.2.20.0040.00417.84
8.2.10.0080.00018.10
8.2.00.0040.00817.82
8.1.280.0100.00325.92
8.1.270.0090.00022.19
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00822.81
8.1.230.0040.00719.02
8.1.220.0070.00017.75
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00917.50
8.1.180.0090.00018.10
8.1.170.0050.00318.78
8.1.160.0000.00821.86
8.1.150.0000.00718.89
8.1.140.0000.00717.50
8.1.130.0040.00417.89
8.1.120.0040.00417.49
8.1.110.0040.00417.61
8.1.100.0050.00217.57
8.1.90.0060.00317.58
8.1.80.0000.00717.68
8.1.70.0000.00717.57
8.1.60.0060.00317.71
8.1.50.0050.00317.66
8.1.40.0090.00017.56
8.1.30.0050.00317.77
8.1.20.0040.00417.84
8.1.10.0060.00317.58
8.1.00.0040.00417.65
8.0.300.0000.00718.77
8.0.290.0030.00617.00
8.0.280.0070.00018.43
8.0.270.0000.00717.24
8.0.260.0000.00617.39
8.0.250.0030.00317.05
8.0.240.0000.00617.04
8.0.230.0000.00717.16
8.0.220.0000.00717.13
8.0.210.0000.00817.13
8.0.200.0040.00417.08
8.0.190.0030.00516.98
8.0.180.0020.00516.98
8.0.170.0000.00816.95
8.0.160.0030.00317.05
8.0.150.0050.00317.06
8.0.140.0000.00716.97
8.0.130.0030.00313.34
8.0.120.0030.00516.99
8.0.110.0050.00216.92
8.0.100.0030.00516.89
8.0.90.0040.00416.89
8.0.80.0090.00616.91
8.0.70.0050.00216.90
8.0.60.0030.00516.89
8.0.50.0050.00317.14
8.0.30.0130.01017.20
8.0.20.0170.00617.40
8.0.10.0000.00717.17
8.0.00.0100.00716.92
7.4.330.0000.00515.00
7.4.320.0000.00616.73
7.4.300.0030.00316.72
7.4.290.0030.00316.74
7.4.280.0080.00316.74
7.4.270.0000.00716.73
7.4.260.0030.00316.64
7.4.250.0030.00516.60
7.4.240.0030.00316.64
7.4.230.0070.00016.62
7.4.220.0060.01216.68
7.4.210.0000.01716.78
7.4.200.0080.00016.77
7.4.160.0090.00616.72
7.4.150.0180.00017.40
7.4.140.0070.01617.86
7.4.130.0070.01416.73
7.4.120.0110.00616.65
7.4.110.0070.01016.75
7.4.100.0090.00916.48
7.4.90.0170.00016.78
7.4.80.0110.00619.39
7.4.70.0070.01016.59
7.4.60.0100.00616.73
7.4.50.0000.00816.64
7.4.40.0070.01616.82
7.4.30.0100.00716.77
7.4.00.0030.01214.89
7.3.330.0050.00013.31
7.3.320.0000.00513.11
7.3.310.0030.00316.38
7.3.300.0000.00716.42
7.3.290.0130.00316.34
7.3.280.0070.01016.38
7.3.270.0190.00617.40
7.3.260.0030.01316.57
7.3.250.0130.00316.46
7.3.240.0070.01016.53
7.3.230.0060.01016.71
7.3.210.0100.00616.49
7.3.200.0120.01219.39
7.3.190.0090.00916.63
7.3.180.0090.00916.75
7.3.170.0100.01016.85
7.3.160.0130.00316.82
7.3.120.0060.01214.90
7.3.110.0040.01514.66
7.3.100.0120.00314.74
7.3.90.0030.01215.12
7.3.80.0000.01015.03
7.3.70.0030.00714.98
7.3.60.0060.00614.79
7.3.50.0000.01515.01
7.3.40.0000.01315.07
7.3.30.0030.01414.82
7.3.20.0030.01316.87
7.3.10.0110.00416.76
7.3.00.0030.00716.91
7.2.330.0140.00316.85
7.2.320.0110.00716.68
7.2.310.0110.01016.68
7.2.300.0030.01316.68
7.2.290.0100.01016.74
7.2.250.0070.01114.85
7.2.240.0030.01415.09
7.2.230.0090.00614.86
7.2.220.0090.00315.13
7.2.210.0110.00315.25
7.2.200.0040.00715.12
7.2.190.0040.01115.09
7.2.180.0040.01115.18
7.2.170.0070.01015.02
7.2.60.0140.01317.10
7.2.00.0030.01019.39
7.1.330.0070.01015.95
7.1.320.0060.00615.71
7.1.310.0000.01415.90
7.1.300.0060.00616.08
7.1.290.0030.01015.91
7.1.280.0070.00315.73
7.1.270.0110.00415.73
7.1.260.0060.00615.87
7.1.200.0030.01015.93
7.1.100.0040.00418.38
7.1.70.0000.00717.28
7.1.60.0030.02019.32
7.1.50.0040.01816.88
7.1.00.0030.07722.30
7.0.200.0000.00716.59
7.0.140.0000.07322.15
7.0.60.0100.04719.92
7.0.50.0070.08717.85
7.0.40.0100.03720.17
7.0.30.0430.04020.00
7.0.20.0300.04320.16
7.0.10.0130.06020.20
7.0.00.0070.06720.04
5.6.280.0030.07020.98
5.6.210.0070.07320.45
5.6.200.0070.08718.11
5.6.190.0030.04320.57
5.6.180.0270.04320.64
5.6.170.0400.06320.38
5.6.160.0030.06020.49
5.6.150.0100.07018.13
5.6.140.0030.08018.08
5.6.130.0170.05318.16
5.6.120.0070.08020.93
5.6.110.0130.05321.13
5.6.100.0100.07321.03
5.6.90.0030.08021.12
5.6.80.0000.08320.40
5.5.350.0130.08320.52
5.5.340.0030.06717.93
5.5.330.0070.08720.36
5.5.320.0270.07320.30
5.5.310.0270.08020.27
5.5.300.0070.08018.00
5.5.290.0100.04717.92
5.5.280.0000.04320.86
5.5.270.0070.07720.92
5.5.260.0070.08320.86
5.5.250.0130.07320.64
5.5.240.0200.04020.27
5.4.450.0270.04719.46
5.4.440.0230.04719.57
5.4.430.0530.04319.44
5.4.420.0670.00019.46
5.4.410.0670.00019.35
5.4.400.0630.00019.20
5.4.390.0600.00019.07
5.4.380.0630.00019.13
5.4.370.0630.00019.17
5.4.360.0600.00018.98
5.4.350.0630.00018.96
5.4.340.0070.03411.97
5.4.320.0080.03812.45
5.4.310.0070.03612.45
5.4.300.0050.03712.46
5.4.290.0050.03912.45
5.4.280.0090.03112.35
5.4.270.0070.03512.35
5.4.260.0080.03512.35
5.4.250.0080.04212.35
5.4.240.0070.03512.35
5.4.230.0030.04212.34
5.4.220.0060.03612.34
5.4.210.0120.03512.34
5.4.200.0060.03812.34
5.4.190.0070.03812.34
5.4.180.0030.03912.34
5.4.170.0080.04212.35
5.4.160.0050.03812.34
5.4.150.0070.03512.34
5.4.140.0040.04412.02
5.4.130.0060.03812.02
5.4.120.0030.04411.97
5.4.110.0050.03511.96
5.4.100.0080.03811.97
5.4.90.0060.03711.97
5.4.80.0060.03811.97
5.4.70.0060.03711.96
5.4.60.0050.03611.96
5.4.50.0060.03411.96
5.4.40.0050.03611.95
5.4.30.0080.03711.95
5.4.20.0090.03711.95
5.4.10.0040.03811.95
5.4.00.0060.03811.44
5.3.290.0090.04012.80
5.3.280.0090.04012.71
5.3.270.0070.03812.72
5.3.260.0090.03912.72
5.3.250.0070.03612.71
5.3.240.0090.03412.72
5.3.230.0070.04512.70
5.3.220.0070.03612.68
5.3.210.0090.04512.68
5.3.200.0060.03712.68
5.3.190.0080.04212.67
5.3.180.0060.03712.68
5.3.170.0060.03512.67
5.3.160.0060.04712.67
5.3.150.0110.03212.67
5.3.140.0040.03712.66
5.3.130.0050.03912.66
5.3.120.0040.04312.66
5.3.110.0040.04112.66
5.3.100.0040.04312.12
5.3.90.0050.05112.09
5.3.80.0040.04512.08
5.3.70.0050.03712.08
5.3.60.0070.03512.06
5.3.50.0070.03812.00
5.3.40.0050.03612.00
5.3.30.0080.03311.95
5.3.20.0080.03311.73
5.3.10.0040.03711.69
5.3.00.0070.03511.68
5.2.170.0030.0399.18
5.2.160.0060.0319.18
5.2.150.0020.0339.18
5.2.140.0030.0329.18
5.2.130.0040.0299.13
5.2.120.0030.0319.14
5.2.110.0070.0309.15
5.2.100.0060.0299.14
5.2.90.0040.0349.14
5.2.80.0040.0319.14
5.2.70.0070.0279.14
5.2.60.0030.0429.09
5.2.50.0020.0349.06
5.2.40.0070.0299.04
5.2.30.0050.0319.01
5.2.20.0050.0289.00
5.2.10.0060.0288.94
5.2.00.0040.0298.80
5.1.60.0030.0258.07
5.1.50.0030.0268.06
5.1.40.0010.0278.04
5.1.30.0050.0318.39
5.1.20.0060.0268.41
5.1.10.0060.0298.14
5.1.00.0070.0238.13
5.0.50.0030.0216.62
5.0.40.0060.0196.48
5.0.30.0040.0346.29
5.0.20.0040.0196.27
5.0.10.0050.0216.24
5.0.00.0040.0366.23
4.4.90.0040.0144.78
4.4.80.0030.0154.76
4.4.70.0030.0164.75
4.4.60.0040.0164.75
4.4.50.0030.0154.77
4.4.40.0040.0234.71
4.4.30.0020.0184.76
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0030.0164.66
4.3.100.0020.0164.66
4.3.90.0020.0154.63
4.3.80.0060.0244.59
4.3.70.0060.0184.63
4.3.60.0050.0144.63
4.3.50.0030.0164.63
4.3.40.0020.0274.54
4.3.30.0050.0213.29
4.3.20.0040.0183.26
4.3.10.0020.0203.21
4.3.00.0030.01714.27

preferences:
50.58 ms | 401 KiB | 5 Q