3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( array(1, 9), array(1, 3), array(1, 5), array(9, 2), array(9, 7), ); $col0 = array_column($data, 0); $col1 = array_column($data, 1); $min0 = min($col0); $min1 = min($col1); $mincol0 = array_intersect($col0, [$min0]); $mincol1 = array_intersect($col1, [$min1]); var_dump(array_keys(array_intersect_key($col1, $mincol0),min(array_intersect_key($col1, $mincol0)))); Var_dump($mincol0, $mincol1);
Output for git.master_jit, git.master, rfc.property-hooks
array(1) { [0]=> int(1) } array(3) { [0]=> int(1) [1]=> int(1) [2]=> int(1) } array(1) { [3]=> int(2) }

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:
46.98 ms | 401 KiB | 8 Q