3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ ['id' => 3, 'other' => 'some string', 'timestamp' => '2000-01-01 12:12:12'], ['id' => 4, 'other' => 'some string', 'timestamp' => '1900-01-01 01:12:23'], ['id' => 5, 'other' => 'toker', 'timestamp' => '1900-04-20 00:04:20'], ]; $filterBy = [ ['id' => 3, 'other' => 'some string', 'timestamp' => '2000-01-01 00:00:00'], ['id' => 5, 'other' => 'toker', 'timestamp' => '1900-04-20 00:04:20'], ]; var_dump( array_udiff( $input, $filterBy, fn($a, $b) => $a <=> $b ) );

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.0110.00719.55
8.5.20.0120.00520.06
8.5.10.0040.00416.69
8.5.00.0050.00520.18
8.4.180.0170.00619.41
8.4.170.0110.00923.91
8.4.160.0120.01122.05
8.4.150.0080.00516.86
8.4.140.0160.00517.36
8.4.130.0030.00618.84
8.4.120.0120.00824.01
8.4.110.0060.00222.68
8.4.100.0110.00917.64
8.4.90.0120.00822.56
8.4.80.0050.00419.57
8.4.70.0030.00517.82
8.4.60.0140.01018.69
8.4.50.0150.00520.41
8.4.40.0100.00618.79
8.4.30.0060.01620.59
8.4.20.0130.00721.25
8.4.10.0150.00419.51
8.3.300.0130.00820.85
8.3.290.0170.00420.71
8.3.280.0120.00818.37
8.3.270.0160.00416.70
8.3.260.0100.00916.44
8.3.250.0110.00818.90
8.3.240.0090.01017.09
8.3.230.0110.00816.59
8.3.220.0040.00419.17
8.3.210.0040.01116.67
8.3.200.0040.00416.49
8.3.190.0090.00919.10
8.3.180.0060.01216.52
8.3.170.0150.00417.02
8.3.160.0090.00920.41
8.3.150.0120.00617.00
8.3.140.0120.00616.73
8.3.130.0390.00316.30
8.3.120.0370.00316.36
8.3.110.0360.00316.69
8.3.100.0330.00916.28
8.3.90.0340.01116.49
8.3.80.0330.01216.21
8.3.70.0380.01016.52
8.3.60.0400.00816.34
8.3.50.0350.01016.32
8.3.40.0280.00817.26
8.3.30.0360.00017.15
8.3.20.0360.00317.39
8.3.10.0290.01117.31
8.3.00.0320.01017.30
8.2.300.0120.00817.91
8.2.290.0040.00522.26
8.2.280.0080.00918.30
8.2.270.0140.00416.29
8.2.260.0060.01217.14
8.2.250.0220.01316.62
8.2.240.0330.00316.18
8.2.230.0370.00316.18
8.2.220.0290.01616.45
8.2.210.0290.01116.43
8.2.200.0280.00716.38
8.2.190.0380.00016.22
8.2.180.0330.00416.67
8.2.170.0230.01517.66
8.2.160.0310.00417.70
8.2.150.0200.01617.04
8.2.140.0310.00717.38
8.2.130.0370.00417.45
8.2.120.0370.00317.63
8.2.110.0300.00517.61
8.2.100.0190.01617.61
8.2.90.0270.00917.48
8.2.80.0280.01617.45
8.2.70.0270.00817.31
8.2.60.0310.00316.99
8.2.50.0230.00916.94
8.2.40.0290.00717.36
8.2.30.0220.01517.46
8.2.20.0290.00717.36
8.2.10.0360.00017.29
8.2.00.0270.00917.37
8.1.340.0100.01017.58
8.1.330.0080.00721.89
8.1.320.0110.00916.16
8.1.310.0080.00016.84
8.1.300.0420.00016.18
8.1.290.0270.01116.27
8.1.280.0380.00016.18
8.1.270.0320.00417.19
8.1.260.0270.00717.69
8.1.250.0390.00317.18
8.1.240.0350.00417.12
8.1.230.0280.00817.21
8.1.220.0270.00817.30
8.1.210.0320.00317.33
8.1.200.0260.00917.12
8.1.190.0220.01417.06
8.1.180.0290.00417.32
8.1.170.0280.00317.26
8.1.160.0280.00817.12
8.1.150.0290.00417.11
8.1.140.0250.00417.09
8.1.130.0220.01217.23
8.1.120.0210.01117.39
8.1.110.0250.00317.25
8.1.100.0220.01416.92
8.1.90.0270.00817.24
8.1.80.0260.00617.36
8.1.70.0280.00617.22
8.1.60.0180.01217.31
8.1.50.0400.00317.09
8.1.40.0300.00817.41
8.1.30.0300.00317.04
8.1.20.0250.01017.38
8.1.10.0270.00617.14
8.1.00.0250.00717.11

preferences:
44.16 ms | 1015 KiB | 5 Q