3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraya = array( 'http://www.simplyathome.nl/partners/' => array( 'links' => array( 'http://www.eerenstein.nl/assortiment/goedkope-sigma-verf', 'https://www.kooistra-detectors.eu/', ), ), 'http://www.helex.nl/links/' => array( 'links' => array( 'https://www.kooistra-detectors.eu/', 'http://www.debruidslakei.nl/bruidsmode-alkmaar/', 'https://kubes.nl/', ), ), ); $arrayb = array( 'http://www.simplyathome.nl/partners/' => array( 'links' => array( 'https://www.google.nl/', 'http://www.eerenstein.nl/assortiment/goedkope-sigma-verf', ), ), 'http://www.helex.nl/links/' => array( 'links' => array( 'https://facebook.nl/', 'https://www.kooistra-detectors.eu/', 'http://www.debruidslakei.nl/bruidsmode-alkmaar/', //'https://kubes.nl/', 'http://example.com/', ), ), ); $final = array(); foreach ($arrayb as $keyb => $valueb) { if (in_array($valueb, $arraya)) { unset($arraya[$keyb][$valueb]); //$final[$keya][$valuea]; } } //$arrayb = array_values($arrayb); print_r($arraya);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [http://www.simplyathome.nl/partners/] => Array ( [links] => Array ( [0] => http://www.eerenstein.nl/assortiment/goedkope-sigma-verf [1] => https://www.kooistra-detectors.eu/ ) ) [http://www.helex.nl/links/] => Array ( [links] => Array ( [0] => https://www.kooistra-detectors.eu/ [1] => http://www.debruidslakei.nl/bruidsmode-alkmaar/ [2] => https://kubes.nl/ ) ) )

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:
66.78 ms | 402 KiB | 8 Q