3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ "playerid" => 1055, "firstname" => "Christian", "lastname" => "McCaffrey", "age" => 27 ], [ "playerid" => 1362, "firstname" => "A.J.", "lastname" => "Brown", "age" => 26 ], [ "playerid" => 1897, "firstname" => "Joe", "lastname" => "Burrow", "age" => 27 ], [ "playerid" => 2019, "firstname" => "De'Von", "lastname" => "Achane", "age" => 22 ] ]; $blacklist = [1055, 1495, 1497, 1897, 1775]; var_export( array_udiff( $array, $blacklist, fn($a, $b) => ($a['playerid'] ?? $a) <=> ($b['playerid'] ?? $b) ) );
Output for git.master_jit, git.master, rfc.property-hooks
array ( 1 => array ( 'playerid' => 1362, 'firstname' => 'A.J.', 'lastname' => 'Brown', 'age' => 26, ), 3 => array ( 'playerid' => 2019, 'firstname' => 'De\'Von', 'lastname' => 'Achane', 'age' => 22, ), )

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:
28.09 ms | 406 KiB | 5 Q