3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 91 => array ( 'description' => 'Charged', 'boundingPoly' => array ( 'vertices' => array ( 0 => array ( 'x' => 244, 'y' => 438 ), 1 => array ( 'x' => 287, 'y' => 438 ), 2 => array ( 'x' => 287, 'y' => 452 ), 3 => array ( 'x' => 244, 'y' => 452 ), ')))' ) ) ) ); $x = 244; foreach ($array as $box) { if (in_array($x, array_column($box['boundingPoly']['vertices'], 'x'))) { $descr = $box['description']; break; } } if (isset($descr)) { echo "found $descr with x = $x\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
found Charged with x = 244

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:
32 ms | 405 KiB | 5 Q