3v4l.org

run code in 500+ PHP versions simultaneously
<?php $movements = [ ['id' => 90415, 'oldDate' => '2024-08-27', 'newDate' => '2024-08-28'], ['id' => 90415, 'oldDate' => '2024-08-28', 'newDate' => '2024-08-27'], ['id' => 90409, 'oldDate' => '2024-08-21', 'newDate' => '2024-08-22'], ['id' => 90409, 'oldDate' => '2024-08-22', 'newDate' => '2024-08-23'], ]; var_export( array_values( array_filter( array_reduce( $movements, function($carry, $move) { $carry[$move['id']] ??= $move; $carry[$move['id']]['newDate'] = $move['newDate']; return $carry; } ), fn($move) => $move['oldDate'] != $move['newDate'] ) ) );

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.30.0090.00819.61
8.5.20.0070.01120.16
8.5.10.0110.00716.43
8.5.00.0110.01421.63
8.4.180.0100.01319.73
8.4.170.0120.01020.57
8.4.160.0140.00720.41
8.4.150.0090.00416.91
8.4.140.0110.01017.58
8.4.130.0090.00919.24
8.4.120.0120.00620.64
8.4.110.0120.00818.55
8.4.100.0120.00817.79
8.4.90.0100.00917.67
8.4.80.0140.00618.00
8.4.70.0110.00717.79
8.4.60.0030.00718.58
8.4.50.0090.00617.70
8.4.40.0090.01217.79
8.4.30.0130.01020.72
8.4.20.0100.01021.23
8.4.10.0060.00319.46
8.3.300.0140.00919.44
8.3.290.0140.00620.89
8.3.280.0140.00618.43
8.3.270.0090.01216.55
8.3.260.0040.00516.70
8.3.250.0140.00518.98
8.3.240.0090.00416.75
8.3.230.0050.00316.61
8.3.220.0140.00617.38
8.3.210.0030.00516.54
8.3.200.0040.00516.54
8.3.190.0050.00318.65
8.3.180.0070.00516.62
8.3.170.0090.00918.90
8.3.160.0110.00718.57
8.3.150.0110.00417.26
8.3.140.0060.01216.41
8.3.130.0040.00418.40
8.3.120.0080.00020.74
8.3.110.0070.00318.46
8.3.100.0360.01337.54
8.3.90.0410.00737.54
8.3.80.0380.00837.54
8.3.70.0320.01837.54
8.3.60.0440.00037.54
8.3.50.0320.01137.54
8.3.40.0320.00037.54
8.3.30.0240.00737.54
8.3.20.0220.01237.54
8.3.10.0350.00437.54
8.3.00.0390.00437.54
8.2.300.0120.00920.28
8.2.290.0060.00322.11
8.2.280.0110.00718.33
8.2.270.0060.01316.78
8.2.260.0040.00417.34
8.2.250.0090.00018.44
8.2.240.0120.00617.21
8.2.230.0070.01120.94
8.2.220.0300.01037.54
8.2.210.0330.00637.54
8.2.200.0390.00337.54
8.2.190.0330.00637.54
8.2.180.0250.00937.54
8.2.170.0230.01737.54
8.2.160.0290.01137.54
8.2.150.0440.00037.54
8.2.140.0400.00037.54
8.2.130.0380.00837.54
8.2.120.0340.00437.54
8.2.110.0370.00337.54
8.2.100.0350.00837.54
8.2.90.0280.01437.54
8.2.80.0320.00337.54
8.2.70.0240.00337.54
8.2.60.0160.00337.54
8.2.50.0170.00337.54
8.2.40.0150.00337.54
8.2.30.0180.00037.54
8.2.20.0560.00337.54
8.2.10.0290.01237.54
8.2.00.0330.00737.54
8.1.340.0070.00420.17
8.1.330.0120.00718.38
8.1.320.0110.00816.04
8.1.310.0040.00416.55
8.1.300.0110.00718.41
8.1.290.0280.01637.54
8.1.280.0410.00337.54
8.1.270.0280.01337.54
8.1.260.0420.00637.54
8.1.250.0380.00737.54
8.1.240.0370.00737.54
8.1.230.0410.00337.54
8.1.220.0360.01137.54
8.1.210.0170.02037.54
8.1.200.0410.00037.54
8.1.190.0420.00037.54
8.1.180.0380.00337.54
8.1.170.0350.00337.54
8.1.160.0390.00637.54
8.1.150.0300.01137.54
8.1.140.0330.00737.54
8.1.130.0370.00437.54
8.1.120.0360.00337.54
8.1.110.0290.00937.54
8.1.100.0310.00737.54
8.1.90.0280.01037.54
8.1.80.0350.00537.54
8.1.70.0290.00937.54
8.1.60.0360.00737.54
8.1.50.0420.00037.54
8.1.40.0380.00537.54
8.1.30.0500.00737.54
8.1.20.0330.00737.54
8.1.10.0390.00337.54
8.1.00.0290.00837.54

preferences:
69.02 ms | 987 KiB | 5 Q