3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ['id' => 14598, 'email_adr' => 'jos@pl.nuu', 'ad_owner_email' => 'boo@gmail.qom',], ['id' => 14598, 'email_adr' => 'boo@gmail.com', 'ad_owner_email' => 'jos@pl.nuu',], ['id' => 14598, 'email_adr' => 'boo@gmail.com', 'ad_owner_email' => 'pelle@med.nuu',], ]; foreach($arr as $key => $value) { if(isset($arr[$key+1])) { if ($value['email_adr'] == $arr[$key + 1]['ad_owner_email']) { unset($arr[$key]); } } } $arr = array_values($arr); echo '<pre>'; var_dump($arr); echo '</pre>';
Output for git.master, git.master_jit, rfc.property-hooks
<pre>array(2) { [0]=> array(3) { ["id"]=> int(14598) ["email_adr"]=> string(13) "boo@gmail.com" ["ad_owner_email"]=> string(10) "jos@pl.nuu" } [1]=> array(3) { ["id"]=> int(14598) ["email_adr"]=> string(13) "boo@gmail.com" ["ad_owner_email"]=> string(13) "pelle@med.nuu" } } </pre>

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:
207.21 ms | 406 KiB | 5 Q