3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array("z","z","E","z","z","E","E","E","E","E"); $b = array("a","a","a","z","a","E","E","E","a","E"); foreach($s as $k => $v) { if($b[$k] === $s[$k]) { echo $k . ' is the index where keys and values exactly match with value as ' . $b[$k]; echo "\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
3 is the index where keys and values exactly match with value as z 5 is the index where keys and values exactly match with value as E 6 is the index where keys and values exactly match with value as E 7 is the index where keys and values exactly match with value as E 9 is the index where keys and values exactly match with value as E

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