3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post_timestamp = '2014-03-09 20:46:51+04:00'; $pc_time = '2014-03-09 20:56:00'; $post = new DateTime($post_timestamp); $pc = new DateTime($pc_time); $diff = $post->diff($pc); $years = $diff->y; $months = $diff->m; $days = $diff->d; $hours = $diff->h; $minutes = $diff->i; $seconds = $diff->s; echo sprintf('Time Difference %s years, %s months, %s days, %s hours, %s minutes, %s seconds', $years, $months, $days, $hours, $minutes, $seconds);

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.0110.00418.43
8.3.50.0070.01121.19
8.3.40.0120.00318.88
8.3.30.0170.00019.21
8.3.20.0000.00720.29
8.3.10.0040.00422.09
8.3.00.0080.00022.34
8.2.180.0160.00316.50
8.2.170.0000.01622.96
8.2.160.0070.01419.05
8.2.150.0040.00424.18
8.2.140.0000.01524.66
8.2.130.0060.00926.16
8.2.120.0060.00617.75
8.2.110.0090.00020.41
8.2.100.0070.00419.39
8.2.90.0000.00719.17
8.2.80.0030.00517.97
8.2.70.0080.00017.75
8.2.60.0060.00318.04
8.2.50.0040.00418.07
8.2.40.0000.00818.34
8.2.30.0030.00518.02
8.2.20.0040.00417.88
8.2.10.0060.00317.84
8.2.00.0050.00517.76
8.1.280.0150.00625.92
8.1.270.0080.00022.20
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00623.79
8.1.230.0070.00419.10
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0000.00817.30
8.1.180.0000.00718.57
8.1.170.0050.00318.56
8.1.160.0000.00722.08
8.1.150.0000.00718.70
8.1.140.0040.00417.54
8.1.130.0070.00017.80
8.1.120.0000.00717.58
8.1.110.0030.00517.55
8.1.100.0070.00017.46
8.1.90.0000.00717.51
8.1.80.0050.00217.56
8.1.70.0040.00417.54
8.1.60.0060.00317.68
8.1.50.0030.00617.61
8.1.40.0040.00417.46
8.1.30.0050.00217.69
8.1.20.0000.00817.71
8.1.10.0040.00417.70
8.1.00.0040.00417.65
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0030.00318.56
8.0.270.0080.00017.33
8.0.260.0030.00316.93
8.0.250.0030.00317.18
8.0.240.0060.00317.13
8.0.230.0000.00717.07
8.0.220.0000.00716.89
8.0.210.0000.00817.05
8.0.200.0070.00017.10
8.0.190.0040.00417.09
8.0.180.0050.00216.97
8.0.170.0000.00817.03
8.0.160.0050.00216.91
8.0.150.0090.00016.97
8.0.140.0050.00517.01
8.0.130.0000.00513.39
8.0.120.0060.00316.95
8.0.110.0000.00816.93
8.0.100.0040.00417.09
8.0.90.0050.00217.05
8.0.80.0070.00716.90
8.0.70.0040.00416.90
8.0.60.0000.00817.06
8.0.50.0050.00217.09
8.0.30.0090.01017.17
8.0.20.0090.00917.40
8.0.10.0000.00716.98
8.0.00.0090.00816.88
7.4.330.0000.00515.00
7.4.320.0030.00316.68
7.4.300.0000.00816.50
7.4.290.0000.00716.68
7.4.280.0000.00616.51
7.4.270.0070.00016.50
7.4.260.0000.00716.65
7.4.250.0000.00716.61
7.4.240.0050.00216.52
7.4.230.0030.00316.76
7.4.220.0070.01116.77
7.4.210.0080.00616.60
7.4.200.0000.00716.51
7.4.190.0040.00416.52
7.4.160.0110.01116.73
7.4.150.0150.00917.40
7.4.140.0120.00617.86
7.4.130.0100.00716.58
7.4.120.0090.01116.56
7.4.110.0070.01016.52
7.4.100.0100.01316.53
7.4.90.0120.00616.42
7.4.80.0130.01019.39
7.4.70.0060.01216.51
7.4.60.0000.01716.53
7.4.50.0040.00416.45
7.4.40.0090.00622.77
7.4.30.0080.00816.46
7.4.00.0070.01015.22
7.3.330.0000.00513.19
7.3.320.0030.00313.21
7.3.310.0070.00016.21
7.3.300.0030.00316.25
7.3.290.0110.00316.22
7.3.280.0110.00716.30
7.3.270.0130.00317.40
7.3.260.0070.01116.61
7.3.250.0130.00816.51
7.3.240.0100.00716.43
7.3.230.0100.00616.56
7.3.210.0140.00316.64
7.3.200.0040.01419.39
7.3.190.0100.00716.49
7.3.180.0030.01416.32
7.3.170.0070.01016.36
7.3.160.0140.00316.38
7.3.120.0040.01114.96
7.3.110.0060.01214.52
7.3.100.0070.00814.98
7.3.90.0030.01014.80
7.3.80.0090.00914.65
7.3.70.0100.00014.90
7.3.60.0070.00714.94
7.3.50.0030.01114.87
7.3.40.0060.00314.93
7.3.30.0030.01014.89
7.3.20.0100.00316.48
7.3.10.0060.00316.80
7.3.00.0040.01116.88
7.2.330.0030.01416.89
7.2.320.0140.00316.70
7.2.310.0030.01416.60
7.2.300.0120.00416.62
7.2.290.0130.00316.94
7.2.240.0100.01015.43
7.2.230.0030.01315.21
7.2.220.0030.01315.30
7.2.210.0100.00314.89
7.2.200.0000.01015.27
7.2.190.0000.01614.94
7.2.180.0040.01115.10
7.2.170.0060.00615.21
7.2.160.0110.00415.14
7.2.150.0060.00317.00
7.2.140.0120.00617.14
7.2.130.0090.00917.13
7.2.120.0070.01017.13
7.2.110.0080.00616.83
7.2.100.0030.00616.76
7.2.90.0100.00616.77
7.2.80.0110.00417.16
7.2.70.0040.01117.15
7.2.60.0060.00816.98
7.2.50.0080.00416.84
7.2.40.0060.00317.24
7.2.30.0100.00316.97
7.2.20.0130.00317.16
7.2.10.0030.01316.89
7.2.00.0070.00818.11
7.1.330.0060.01215.82
7.1.320.0100.00316.03
7.1.310.0090.00616.03
7.1.300.0070.00316.02
7.1.290.0100.00315.59
7.1.280.0090.00315.73
7.1.270.0070.00316.01
7.1.260.0060.00615.95
7.1.250.0030.00915.99
7.1.200.0030.00716.10
7.1.100.0030.01217.86
7.1.70.0090.00017.19
7.1.60.0030.02019.82
7.1.50.0060.01817.11
7.1.00.0100.07022.29
7.0.200.0030.00616.75
7.0.140.0030.07022.08
7.0.60.0070.07320.09
7.0.50.0100.04017.86
7.0.40.0130.08020.21
7.0.30.0270.07720.16
7.0.20.0270.07020.13
7.0.10.0100.05720.18
7.0.00.0130.08720.19
5.6.280.0070.06720.92
5.6.210.0030.04320.75
5.6.200.0070.05718.13
5.6.190.0100.08320.39
5.6.180.4000.04320.56
5.6.170.0270.07020.48
5.6.160.0070.07020.46
5.6.150.0030.07718.11
5.6.140.0100.07318.20
5.6.130.0070.08718.21
5.6.120.0070.06320.95
5.6.110.0070.03720.98
5.6.100.0030.04320.96
5.6.90.0170.07320.95
5.6.80.0030.07720.51
5.6.70.0130.07020.49
5.5.350.0030.07720.35
5.5.340.0070.07017.96
5.5.330.0130.05320.40
5.5.320.0230.04020.24
5.5.310.0300.04320.20
5.5.300.0100.07717.91
5.5.290.0130.07317.95
5.5.280.0070.08720.87
5.5.270.0100.07720.79
5.5.260.0100.06320.73
5.5.250.0100.07720.79
5.5.240.0200.02720.26
5.4.450.1900.04719.45
5.4.440.1930.04719.41
5.4.430.1870.04719.40
5.4.420.1870.05019.45
5.4.410.2000.04019.35
5.4.400.1930.04019.24
5.4.390.1730.04319.24
5.4.380.1930.04318.77
5.4.370.1970.04018.77
5.4.360.1930.04319.08
5.4.350.1700.03319.24
5.4.340.1970.04319.07
5.4.320.1730.04019.08
5.4.310.1770.03719.09
5.4.300.1670.04018.88
5.4.290.2270.03019.07
5.4.280.1770.05019.13
5.4.270.1700.03719.17
5.4.260.1900.04019.09
5.4.250.2070.03718.90
5.4.240.1770.04019.21
5.4.230.1930.04318.80
5.4.220.1900.04318.95
5.4.210.2000.04319.12
5.4.200.1730.04019.07
5.4.190.2000.03719.09
5.4.180.1870.04019.04
5.4.170.1900.03719.07
5.4.160.1900.04319.01
5.4.150.1500.04719.06
5.4.140.1700.03016.40
5.4.130.1700.03016.30
5.4.120.1730.04016.47
5.4.110.1730.03316.41
5.4.100.1930.04016.47
5.4.90.1970.04716.48
5.4.80.1670.03716.37
5.4.70.1800.03316.42
5.4.60.1770.03316.31
5.4.50.1930.04016.42
5.4.40.1970.04016.35
5.4.30.2030.04016.42
5.4.20.2100.03316.03
5.4.10.1900.04016.28
5.4.00.1900.03315.71
5.3.290.1930.04714.76
5.3.280.1770.04314.64
5.3.270.1730.03714.51
5.3.260.1700.04014.51
5.3.250.2100.03314.55
5.3.240.1730.04014.44
5.3.230.2070.04014.55
5.3.220.1770.03714.41
5.3.210.1670.04314.40
5.3.200.1730.03714.42
5.3.190.1700.04014.41
5.3.180.1700.03714.42
5.3.170.2000.03314.52
5.3.160.1700.03714.40
5.3.150.1730.03014.54
5.3.140.1670.04014.45
5.3.130.1630.04014.40
5.3.120.1730.04014.45
5.3.110.1830.03014.48
5.3.100.2000.04314.02
5.3.90.2070.04014.00
5.3.80.1700.04013.96
5.3.70.1930.04713.82
5.3.60.1700.04013.85
5.3.50.2000.03713.80
5.3.40.1930.04013.90
5.3.30.1930.04313.71
5.3.20.1930.04013.55
5.3.10.1870.03713.49
5.3.00.1870.04313.55
5.2.170.1630.03311.23
5.2.160.1470.03711.06
5.2.150.1330.04010.99
5.2.140.1630.03311.02
5.2.130.1370.02711.02
5.2.120.1600.03311.16
5.2.110.1430.03711.11
5.2.100.1470.03011.04
5.2.90.1370.03011.16
5.2.80.1530.03310.95
5.2.70.1470.03710.95
5.2.60.1400.04011.13
5.2.50.1670.03710.88
5.2.40.1300.03310.83
5.2.30.1200.03010.82
5.2.20.1270.02710.80
5.2.10.1230.03010.75
5.2.00.1430.03010.68
5.1.60.1370.0279.91
5.1.50.1430.0239.85
5.1.40.1300.03710.09
5.1.30.1200.02710.25
5.1.20.1230.03010.37
5.1.10.1170.0239.97
5.1.00.1230.0239.94
5.0.50.0470.0278.43
5.0.40.0700.0308.48
5.0.30.0600.0278.21
5.0.20.0700.0378.16
5.0.10.0500.0208.23
5.0.00.0630.0338.34
4.4.90.0600.0177.51
4.4.80.0530.0177.51
4.4.70.0670.0207.51
4.4.60.0570.0177.51
4.4.50.0670.0207.51
4.4.40.0570.0207.51
4.4.30.0630.0177.51
4.4.20.0530.0177.51
4.4.10.0730.0237.51
4.4.00.0570.0237.51
4.3.110.0700.0277.51
4.3.100.0670.0177.51
4.3.90.0770.0237.51
4.3.80.0670.0277.51
4.3.70.0570.0177.51
4.3.60.0730.0207.51
4.3.50.0730.0237.51
4.3.40.0700.0407.45
4.3.30.0370.0337.45
4.3.20.0370.0277.45
4.3.10.0300.0177.45
4.3.00.0270.0177.45

preferences:
35.93 ms | 400 KiB | 5 Q