3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Array1 = [ [ 'username' => 'uname1', 'name' => 'fullname1', 'email' => 'uname1@email.com' ], [ 'username' => 'uname2', 'name' => 'fullname2', 'email' => 'uname2@email.com' ], [ 'username' => 'uname3', 'name' => 'fullname3', 'email' => 'uname3@email.com' ], ]; $Array2 = [ [ 'username' => 'uname1', 'name' => 'fullname1', 'email' => 'uname1@email.com' ], ]; var_export( array_uintersect( $Array2, $Array1, fn($a, $b) => $a['email'] <=> $b['email'] ) ? 'email already exists' : 'no matches' );
Output for git.master, git.master_jit
'email already exists'

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