3v4l.org

run code in 300+ PHP versions simultaneously
<?php $breadcrumbs = [ ['Home', 'homepage.html'], ['About', 'aboutpage.html'], ['Contact', 'contactpage.html'] ]; $remove = ['Home']; var_export( array_udiff( $breadcrumbs, array_chunk($remove, 1), fn($a, $b) => $a[0] <=> $b[0] ) );
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
array ( 1 => array ( 0 => 'About', 1 => 'aboutpage.html', ), 2 => array ( 0 => 'Contact', 1 => 'contactpage.html', ), )

preferences:
85.55 ms | 407 KiB | 5 Q