3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2016-05-14 16:00:00'); // From database $date2 = new DateTime(); // Today. $interval = $date->diff($date2); echo $interval->format('Skomentowano: %d dni %h godzin %i minut %s sekund temu.');

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.70.0080.00818.43
8.3.60.0150.00616.50
8.3.50.0140.00922.06
8.3.40.0040.01118.85
8.3.30.0110.00318.97
8.3.20.0040.00419.33
8.3.10.0080.00021.76
8.3.00.0040.00420.82
8.2.190.0100.00616.63
8.2.180.0150.00718.71
8.2.170.0040.01522.96
8.2.160.0060.00620.43
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0090.00019.76
8.2.120.0000.00726.35
8.2.110.0000.00922.20
8.2.100.0070.00718.03
8.2.90.0050.00317.88
8.2.80.0080.00018.89
8.2.70.0000.00818.05
8.2.60.0040.00418.05
8.2.50.0080.00018.10
8.2.40.0030.00920.23
8.2.30.0040.00420.69
8.2.20.0000.00717.92
8.2.10.0040.00417.94
8.2.00.0040.00417.94
8.1.280.0120.00625.92
8.1.270.0080.00023.96
8.1.260.0090.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00623.96
8.1.230.0070.00322.07
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0050.00517.23
8.1.190.0000.00917.38
8.1.180.0030.00518.10
8.1.170.0000.00818.74
8.1.160.0040.00422.15
8.1.150.0040.00718.95
8.1.140.0070.00019.64
8.1.130.0050.00317.77
8.1.120.0070.00017.61
8.1.110.0000.00717.50
8.1.100.0070.00017.55
8.1.90.0000.00817.59
8.1.80.0040.00417.56
8.1.70.0030.00317.63
8.1.60.0040.00417.63
8.1.50.0030.00617.55
8.1.40.0030.00517.60
8.1.30.0040.00417.77
8.1.20.0040.00417.74
8.1.10.0080.00017.72
8.1.00.0000.00817.65
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0040.00418.48
8.0.270.0030.00317.44
8.0.260.0060.00017.38
8.0.250.0000.00717.14
8.0.240.0070.00017.14
8.0.230.0070.00317.10
8.0.220.0080.00017.06
8.0.210.0000.00617.04
8.0.200.0050.00317.04
8.0.190.0080.00017.13
8.0.180.0100.00317.07
8.0.170.0000.00717.10
8.0.160.0080.00017.09
8.0.150.0050.00317.05
8.0.140.0030.00717.02
8.0.130.0030.00613.45
8.0.120.0050.00317.03
8.0.110.0070.00016.92
8.0.100.0040.00416.93
8.0.90.0000.00716.81
8.0.80.0120.00317.06
8.0.70.0040.00416.89
8.0.60.0000.00717.07
8.0.50.0070.00017.10
8.0.30.0110.00717.24
8.0.20.0110.01017.40
8.0.10.0070.00017.10
8.0.00.0060.01116.77
7.4.330.0000.00415.08
7.4.320.0030.00316.44
7.4.300.0000.00616.70
7.4.290.0030.00616.66
7.4.280.0040.00716.56
7.4.270.0000.00716.60
7.4.260.0080.00016.68
7.4.250.0080.00016.59
7.4.240.0070.00016.61
7.4.230.0000.00616.68
7.4.220.0110.01416.67
7.4.210.0090.00516.64
7.4.200.0040.00416.67
7.4.160.0130.00616.38
7.4.150.0070.01717.40
7.4.140.0180.00417.86
7.4.130.0060.01216.49
7.4.120.0120.00616.48
7.4.110.0060.01516.54
7.4.100.0120.00616.54
7.4.90.0120.00616.70
7.4.80.0100.00719.39
7.4.70.0070.01316.49
7.4.60.0060.01016.52
7.4.50.0070.00716.75
7.4.40.0120.00416.74
7.4.30.0100.00716.54
7.4.00.0070.00714.81
7.3.330.0040.00413.12
7.3.320.0000.00513.14
7.3.310.0070.00016.15
7.3.300.0000.00716.17
7.3.290.0030.00316.17
7.3.280.0080.00916.30
7.3.270.0200.00317.40
7.3.260.0120.00516.48
7.3.250.0090.00916.42
7.3.240.0110.00516.45
7.3.230.0160.00016.46
7.3.210.0030.01316.39
7.3.200.0130.00316.44
7.3.190.0080.00816.71
7.3.180.0080.00816.48
7.3.170.0140.00416.50
7.3.160.0160.00316.43
7.2.330.0070.01016.49
7.2.320.0120.01216.59
7.2.310.0030.01316.62
7.2.300.0130.00316.80
7.2.290.0100.00616.64
7.2.60.0030.00616.79
7.2.00.0030.01019.53
7.1.200.0080.00415.69
7.1.100.0130.01018.28
7.1.70.0040.00417.35
7.1.60.0150.00719.32
7.1.00.0030.07722.46
7.0.200.0230.00015.21
7.0.100.0100.08019.92
7.0.90.0100.08719.90
7.0.80.0070.07319.93
7.0.70.0070.06019.96
7.0.60.0100.06319.88
7.0.50.0070.07020.38
7.0.40.0030.07020.15
7.0.30.0070.08720.00
7.0.20.0030.06020.14
7.0.10.0030.08020.02
7.0.00.0030.07320.09
5.6.280.0070.07021.07
5.6.250.0070.05320.69
5.6.240.0070.08320.69
5.6.230.0070.04320.68
5.6.220.0030.06020.58
5.6.210.0100.07320.47
5.6.200.0130.04321.01
5.6.190.0030.07320.93
5.6.180.0100.05721.04
5.6.170.0070.05720.96
5.6.160.0100.07321.17
5.6.150.0030.05721.05
5.6.140.0100.07720.93
5.6.130.0170.07021.01
5.6.120.0170.07320.95
5.6.110.0130.04721.00
5.6.100.0170.07021.05
5.6.90.0130.05320.95
5.6.80.0030.08020.44
5.6.70.0130.05320.39
5.6.60.0100.07320.37
5.6.50.0030.06020.49
5.6.40.0030.04720.30
5.6.30.0100.07720.49
5.6.20.0070.04020.52
5.6.10.0030.04320.31
5.6.00.0070.08020.42
5.5.380.0070.08020.54
5.5.370.0170.06020.46
5.5.360.0070.04020.36
5.5.350.0170.07020.39
5.5.340.0070.08720.63
5.5.330.0200.05720.77
5.5.320.0070.04720.89
5.5.310.0070.08320.82
5.5.300.0000.06320.79
5.5.290.0100.06320.75
5.5.280.0100.07320.89
5.5.270.0200.07020.78
5.5.260.0130.07020.76
5.5.250.0270.07020.64
5.5.240.0200.07020.02
5.5.230.0130.07320.25
5.5.220.0100.07320.21
5.5.210.0100.07320.10
5.5.200.0030.07720.25
5.5.190.0030.08319.98
5.5.180.0100.07020.26
5.5.160.0030.05720.29
5.5.150.0130.07020.26
5.5.140.0030.04019.97
5.5.130.0070.04320.23
5.5.120.0000.07320.24
5.5.110.0130.05320.14
5.5.100.0100.05320.07
5.5.90.0100.03720.07
5.5.80.0100.07720.06
5.5.70.0100.07320.09
5.5.60.0000.05320.02
5.5.50.0130.06720.13
5.5.40.0100.04720.02
5.5.30.0100.04319.92
5.5.20.0100.04720.14
5.5.10.0030.05720.04
5.5.00.0070.05320.06

preferences:
20.58 ms | 401 KiB | 5 Q