3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ [ 'description' => 'aaaaaa', 'value' => 11111, 'id' => 14, ], [ 'description' => 'dddddd', 'value' => 44444, 'id' => 0, ], ]; $array2 = [ [ 'id' => 14, 'value' => 11111, 'description' => 'aaaaaa', ], [ 'id' => 15, 'value' => 222222, 'description' => 'bbbbbb', ], [ 'id' => 16, 'value' => 333333, 'description' => 'cccccc', ], ]; var_export( array_uintersect($array1, $array2, 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.0080.00819.59
8.5.20.0090.00820.21
8.5.10.0090.00916.62
8.5.00.0080.01319.89
8.4.180.0110.01121.82
8.4.170.0120.00923.90
8.4.160.0090.01320.32
8.4.150.0090.00416.74
8.4.140.0160.00617.32
8.4.130.0130.00717.92
8.4.120.0140.00320.83
8.4.110.0130.00819.13
8.4.100.0120.00817.47
8.4.90.0120.00920.58
8.4.80.0060.00318.85
8.4.70.0100.00918.74
8.4.60.0140.00920.39
8.4.50.0130.01018.68
8.4.40.0100.00717.97
8.4.30.0180.00018.85
8.4.20.0160.00319.70
8.4.10.0040.00419.41
8.3.300.0110.00922.74
8.3.290.0090.01220.58
8.3.280.0070.00416.19
8.3.270.0120.00816.70
8.3.260.0070.00916.41
8.3.250.0090.01019.13
8.3.240.0120.00716.72
8.3.230.0120.00816.39
8.3.220.0130.00618.93
8.3.210.0080.01016.73
8.3.200.0100.00916.80
8.3.190.0060.00216.96
8.3.180.0130.00520.79
8.3.170.0030.01517.00
8.3.160.0110.00716.48
8.3.150.0110.00716.54
8.3.140.0080.00016.50
8.3.130.0060.00317.18
8.3.120.0130.00618.77
8.3.110.0080.00016.41
8.3.100.0060.00316.68
8.3.90.0040.00418.29
8.3.80.0370.01030.84
8.3.70.0470.00330.84
8.3.60.0430.00630.84
8.3.50.0120.00930.84
8.3.40.0400.00430.84
8.3.30.0290.00930.84
8.3.20.0270.01230.84
8.3.10.0340.00830.84
8.3.00.0340.00930.84
8.2.300.0140.01024.02
8.2.290.0140.00420.21
8.2.280.0090.00618.25
8.2.270.0060.00016.55
8.2.260.0090.00917.00
8.2.250.0080.00016.84
8.2.240.0080.00016.59
8.2.230.0000.00820.94
8.2.220.0060.00324.06
8.2.210.0090.00926.77
8.2.200.0300.00930.84
8.2.190.0270.01430.84
8.2.180.0370.00430.84
8.2.170.0550.00330.84
8.2.160.0290.01330.84
8.2.150.0250.01930.84
8.2.140.0310.01030.84
8.2.130.0270.01530.84
8.2.120.0260.01730.84
8.2.110.0430.00030.84
8.2.100.0270.01030.84
8.2.90.0270.00730.84
8.2.80.0230.00430.84
8.2.70.0250.01530.84
8.2.60.0340.00730.84
8.2.50.0210.01230.84
8.2.40.0320.00030.84
8.2.30.0330.01130.84
8.2.20.0360.00630.84
8.2.10.0370.00730.84
8.2.00.0370.01130.84
8.1.340.0170.00417.45
8.1.330.0160.00418.46
8.1.320.0140.00616.02
8.1.310.0090.00916.78
8.1.300.0130.00316.25
8.1.290.0380.00630.84
8.1.280.0320.01030.84
8.1.270.0370.00730.84
8.1.260.0340.00930.84
8.1.250.0360.00730.84
8.1.240.0240.01430.84
8.1.230.0220.01530.84
8.1.220.0480.00830.84
8.1.210.0240.01730.84
8.1.200.0330.00530.84
8.1.190.0290.01030.84
8.1.180.0270.00330.84
8.1.170.0210.01430.84
8.1.160.0320.00630.84
8.1.150.0370.00030.84
8.1.140.0280.00930.84
8.1.130.0250.01230.84
8.1.120.0310.00330.84
8.1.110.0310.00530.84
8.1.100.0280.00930.84
8.1.90.0340.00430.84
8.1.80.0310.00630.84
8.1.70.0290.00830.84
8.1.60.0420.00030.84
8.1.50.0330.00730.84
8.1.40.0310.00630.84
8.1.30.0350.00630.84
8.1.20.0450.00430.84
8.1.10.0330.00730.84
8.1.00.0330.00930.84

preferences:
74.95 ms | 983 KiB | 5 Q