3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_a = new DateTime('now'); $date_b2 = new DateTime('wednesday + 7 day 08:00'); $date_c2 = new DateTime('saturday + 7 day 20:00'); $intervaln = date_diff($date_a,$date_b2); $interval2n = date_diff($date_a,$date_c2); $diff1n = $intervaln->format('%d d. %h h. %i min.'); $diff2n = $interval2n->format('%d d. %h h. %i min.'); if ($diff1n > $diff2n) { echo $diff1n; } else if ($diff1n < $diff2n) { echo $diff2n; }

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.5.00.0110.01120.04
8.4.150.0010.00114.05
8.4.140.0200.01117.63
8.4.130.0070.00317.93
8.4.120.0110.00920.53
8.4.110.0080.00122.59
8.4.100.0140.00717.61
8.4.90.0100.01020.51
8.4.80.0100.00918.95
8.4.70.0160.00318.30
8.4.60.0130.00918.99
8.4.50.0090.00720.51
8.4.40.0050.00319.45
8.4.30.0060.00618.64
8.4.20.0000.00918.88
8.4.10.0100.00619.85
8.3.280.0010.00114.05
8.3.270.0140.00616.67
8.3.260.0110.00816.74
8.3.250.0070.00319.12
8.3.240.0110.00916.91
8.3.230.0040.00516.86
8.3.220.0130.00718.97
8.3.210.0100.00816.86
8.3.200.0040.00516.86
8.3.190.0100.00818.91
8.3.180.0070.00716.82
8.3.170.0110.00716.95
8.3.160.0110.00716.48
8.3.150.0110.00317.42
8.3.140.0140.00416.78
8.3.130.0040.00418.45
8.3.120.0100.01018.88
8.3.110.0050.00316.79
8.3.100.0060.00924.06
8.3.90.0120.00626.77
8.3.80.0070.00719.36
8.3.70.0120.00918.39
8.3.60.0120.00318.55
8.3.50.0130.00618.15
8.3.40.0100.00318.83
8.3.30.0110.00418.84
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.290.0130.00816.71
8.2.280.0040.00722.25
8.2.270.0150.00416.68
8.2.260.0150.00018.70
8.2.250.0180.00316.61
8.2.240.0000.00919.09
8.2.230.0060.00320.94
8.2.220.0000.00937.54
8.2.210.0080.00626.77
8.2.200.0030.00618.88
8.2.190.0100.00716.75
8.2.180.0110.00725.92
8.2.170.0140.00719.02
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00026.16
8.2.110.0070.00319.44
8.2.100.0000.01117.97
8.2.90.0040.00419.34
8.2.80.0030.00617.97
8.2.70.0030.00517.88
8.2.60.0000.00817.68
8.2.50.0000.00818.07
8.2.40.0000.00818.34
8.2.30.0050.00318.09
8.2.20.0090.00019.85
8.2.10.0040.00421.22
8.2.00.0030.00519.40
8.1.330.0030.00916.57
8.1.320.0080.00316.34
8.1.310.0000.01018.66
8.1.300.0030.00619.82
8.1.290.0040.00430.84
8.1.280.0140.01025.92
8.1.270.0070.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.80
8.1.230.0110.00017.89
8.1.220.0030.00617.77
8.1.210.0040.00418.77
8.1.200.0000.00817.60
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0040.00418.90
8.1.160.0040.00418.90
8.1.150.0040.00419.08
8.1.140.0040.00419.02
8.1.130.0040.00417.71
8.1.120.0050.00517.62
8.1.110.0030.00617.61
8.1.100.0040.00417.76
8.1.90.0000.00817.73
8.1.80.0000.01017.70
8.1.70.0080.00017.73
8.1.60.0060.00317.70
8.1.50.0060.00317.73
8.1.40.0030.00617.76
8.1.30.0050.00317.77
8.1.20.0000.00717.80
8.1.10.0000.00817.80
8.1.00.0040.00417.63
8.0.300.0070.00318.77
8.0.290.0090.00016.86
8.0.280.0040.00418.63
8.0.270.0030.00318.22
8.0.260.0030.00317.06
8.0.250.0000.00717.19
8.0.240.0000.00617.09
8.0.230.0030.00317.23
8.0.220.0040.00417.14
8.0.210.0000.00717.12
8.0.200.0020.00517.20
8.0.190.0070.00017.19
8.0.180.0070.00017.18
8.0.170.0070.00317.13
8.0.160.0000.00817.04
8.0.150.0040.00417.08
8.0.140.0050.00317.03
8.0.130.0060.00013.49
8.0.120.0000.00917.18
8.0.110.0040.00417.06
8.0.100.0000.00817.02
8.0.90.0000.00817.00
8.0.80.0140.00317.14
8.0.70.0130.00517.11
8.0.60.0100.00917.06
8.0.50.0070.01117.09
8.0.30.0040.01517.08
8.0.20.0050.01017.19
8.0.10.0050.01017.23
8.0.00.0100.00917.27
7.4.330.0050.00016.75
7.4.320.0030.00316.83
7.4.300.0030.00316.77
7.4.290.0000.00716.72
7.4.280.0070.00016.79
7.4.270.0050.00316.70
7.4.260.0000.00613.39
7.4.250.0000.00716.78
7.4.240.0000.00716.82
7.4.230.0070.00016.87
7.4.220.0070.00016.63
7.4.210.0080.00616.68
7.4.200.0090.00516.81
7.4.190.0070.00716.78
7.4.180.0120.00316.75
7.4.160.0090.00816.82
7.4.150.0100.00716.81
7.4.140.0110.00916.69
7.4.130.0100.00916.77
7.4.120.0070.01216.69
7.4.110.0100.01016.60
7.4.100.0110.00916.79
7.4.90.0080.01216.69
7.4.80.0050.01116.64
7.4.70.0100.00816.68
7.4.60.0130.00916.68
7.4.50.0120.00516.63
7.4.40.0070.01016.59
7.4.30.0090.00816.60
7.4.20.0090.01016.61
7.4.10.0100.00616.58
7.4.00.0110.00416.72
7.3.330.0040.00416.32
7.3.320.0000.00513.30
7.3.310.0000.00716.49
7.3.300.0040.00416.38
7.3.290.0110.01016.44
7.3.280.0090.00816.40
7.3.270.0080.00816.42
7.3.260.0070.01216.43
7.3.250.0140.00616.46
7.3.240.0080.01216.50
7.3.230.0090.01016.37
7.3.220.0100.00716.41
7.3.210.0080.00916.38
7.3.200.0080.00916.41
7.3.190.0090.01116.36
7.3.180.0100.00616.42
7.3.170.0130.00416.31
7.3.160.0090.00916.38
7.3.150.0070.01316.46
7.3.140.0080.00916.43
7.3.130.0080.00816.41
7.3.120.0070.00716.41
7.3.110.0160.00316.33
7.3.100.0110.00516.36
7.3.90.0100.00516.64
7.3.80.0090.00816.35
7.3.70.0090.00916.50
7.3.60.0140.00316.52
7.3.50.0100.00816.52
7.3.40.0090.00816.52
7.3.30.0100.00616.52
7.3.20.0120.00816.58
7.3.10.0050.01216.44
7.3.00.0090.00616.44

preferences:
29.86 ms | 403 KiB | 5 Q