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.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
array ( 1 => array ( 0 => 'About', 1 => 'aboutpage.html', ), 2 => array ( 0 => 'Contact', 1 => 'contactpage.html', ), )

preferences:
116.2 ms | 402 KiB | 91 Q