3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Fake data $data = [ ['start' => '2022-11-03'], ['start' => '2022-11-04'], ['start' => date('Y-m-d')], ]; $now = new DateTime(); foreach($data as $records) { $start = new DateTime($records['start']); $diff = $start->diff(new DateTime()); // Convert days and hours to minutes, and sum them all up to get total // diff in minutes $minutes = ($diff->days * 24 * 60) + ($diff->h * 60) + ($diff->i); echo $start->format('Y-m-d H:i') . " was " . $minutes . " minutes ago\n"; }

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.02
8.4.150.0030.00014.05
8.4.140.0130.00817.91
8.4.130.0060.00518.86
8.4.120.0100.00220.59
8.4.110.0050.00420.55
8.4.100.0140.00818.27
8.4.90.0110.00817.84
8.4.80.0060.00318.18
8.4.70.0110.01118.11
8.4.60.0150.00718.71
8.4.50.0110.00918.73
8.4.40.0080.00019.66
8.4.30.0150.00020.49
8.4.20.0050.00519.78
8.4.10.0130.00723.85
8.3.280.0080.01418.67
8.3.270.0150.00516.73
8.3.260.0070.00416.83
8.3.250.0040.00418.88
8.3.240.0060.00616.85
8.3.230.0080.01116.71
8.3.220.0130.00616.98
8.3.210.0120.00818.43
8.3.200.0060.00316.78
8.3.190.0110.00717.10
8.3.180.0100.00917.66
8.3.170.0120.00618.96
8.3.160.0150.00017.43
8.3.150.0090.00917.10
8.3.140.0080.00016.72
8.3.130.0040.00418.69
8.3.120.0090.00020.75
8.3.110.0070.00316.54
8.3.100.0080.00818.72
8.3.90.0130.00626.77
8.3.80.0060.00316.75
8.3.70.0150.00616.86
8.3.60.0110.01116.63
8.3.50.0070.01120.34
8.3.40.0120.01220.04
8.3.30.0080.00618.95
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0130.00818.66
8.2.280.0090.01018.42
8.2.270.0150.00317.39
8.2.260.0060.00916.70
8.2.250.0080.00016.78
8.2.240.0060.00317.55
8.2.230.0000.00822.58
8.2.220.0060.01024.06
8.2.210.0110.00726.77
8.2.200.0060.00316.88
8.2.190.0040.01116.63
8.2.180.0030.01225.92
8.2.170.0120.00919.04
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00826.16
8.2.110.0060.00320.57
8.2.100.0000.01020.38
8.1.330.0120.00716.36
8.1.320.0100.00916.40
8.1.310.0040.00416.98
8.1.300.0080.00815.98
8.1.290.0040.00430.84
8.1.280.0090.00925.92
8.1.270.0000.01024.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00318.93
8.1.230.0060.00318.76
8.1.120.0050.00417.59

preferences:
89.79 ms | 403 KiB | 5 Q