3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = Array ( 'Standardbox' => Array ( 'details' => Array ( 'name' => 'Standardbox' ), 'resources' => Array ( '0' => Array ( 'resourceId' => 1, 'resourceName' => 'Knife', 'amount' => 1, 'unit' => 2 ), '1' => Array ( 'resourceId' => 2, 'resourceName' => 'Fork', 'amount' => 1, 'unit' => 2 ) ) ) ); $find = 1; $r = in_array($find,array_column($myArray['Standardbox']['resources'], 'resourceId')); echo $r;
Output for rfc.property-hooks, git.master, git.master_jit
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:
48.12 ms | 2608 KiB | 4 Q