3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( 0 => Array ( 0 => 'John', 1 => 'accountant', 2 => 'senior', 3 => 'joined on 2018-03-12', 4 => 'http://personalblogdotcom/abc', 5 => 'Germany' ), 1 => Array ( 0 => 'Marry', 1 => 'journalist', 2 => 'junior', 3 => '2019-04-13', 4 => 'http://personalblogdotcom/efd', 5 => 'Canada' ), 2 => Array ( 0 => 'Jim', 1 => 'salesman', 2 => 'junior', 3 => '2017-01-18', 4 => 'http://personalblogdotcom/ehs', 5 => 'US' ), 3 => Array ( 0 => 'Clair', 1 => 'director assistant', 2 => 'senior', 3 => '2019-08-22', 4 => 'http://personalblogdotcom/khh', 5 => 'Singapore' ) ); $rows = array(array('name'=>'Jim'),array('name'=>'Clair')); $userNamesArray = array_column($arr,0); $rowsName = array_column($rows,'name'); foreach($userNamesArray as $userNamesArr){ if(!in_array($userNamesArr, $rowsName)){ echo $userNamesArr."<br>"; } }
Output for git.master, git.master_jit, rfc.property-hooks
John<br>Marry<br>

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