3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [[ 'site_id' => 'S6407', 'tssr_id' => 'TSSRBOQ-200204-0145-59', 'site_name' => 'Site S6407', 'id_site_doc'=> '127361', 'implementation_id' => 'imp4121', 'status' => 'implementation_created', 'endstate' => false ], [ 'site_id' => 'S5910', 'tssr_id' => 'TSSRBOQ-200204-0145-8', 'site_name' => 'Site S5910', 'id_site_doc'=> '127362', 'implementation_id' => 'imp4122', 'status' => 'implementation_created', 'endstate' => true ]]; $array_validate = [[ 'site_id' => 'S5910', 'tssr_id' => 'TSSRBOQ-200204-0145-8' ], [ 'site_id' => 'S6407', 'tssr_id' => 'TSSRBOQ-200204-0145-59' ]]; $validEntries = array_filter($myArray, static function (array $entry) use ($array_validate): bool { return in_array([ 'site_id' => $entry['site_id'], 'tssr_id' => $entry['tssr_id'] ], $array_validate, true); }); print_r($validEntries);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [site_id] => S6407 [tssr_id] => TSSRBOQ-200204-0145-59 [site_name] => Site S6407 [id_site_doc] => 127361 [implementation_id] => imp4121 [status] => implementation_created [endstate] => ) [1] => Array ( [site_id] => S5910 [tssr_id] => TSSRBOQ-200204-0145-8 [site_name] => Site S5910 [id_site_doc] => 127362 [implementation_id] => imp4122 [status] => implementation_created [endstate] => 1 ) )

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:
104.77 ms | 407 KiB | 5 Q