3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ["B00CEEZ57S"], ["B002QJZADK"], ["B001EHL2UK"], ["B003FSTNB6"], ]; $array2 = [ [ "name" => "Jonathan Franzen: Purity (Hardcover); 2015 Edition", "ASIN" => "B002QJZADK" ], [ "name" => "Cardinal Gates Outdoor Child Safety Gate, Brown", "ASIN" => "B00CE8C7SO" ], [ "name" => "Sauder Edge Water 71.88\" Bookcase Estate Black Finish", "ASIN" => "B001EHL2UK" ], [ "name" => "The Pioneer Woman 82695.03R Cowboy Rustic 8\" Rosewood Handle Can Opener, Scis...", "ASIN" => "B015LU7GPU" ] ]; var_export( array_uintersect( $array2, $array1, fn($a, $b) => ($a['ASIN'] ?? $a[0]) <=> ($b['ASIN'] ?? $b[0]) ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'name' => 'Jonathan Franzen: Purity (Hardcover); 2015 Edition', 'ASIN' => 'B002QJZADK', ), 2 => array ( 'name' => 'Sauder Edge Water 71.88" Bookcase Estate Black Finish', 'ASIN' => 'B001EHL2UK', ), )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
14.98 ms | 406 KiB | 5 Q