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>"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 23
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 23
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 22
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/CliVT
function name:  (null)
number of ops:  25
compiled vars:  !0 = $arr, !1 = $rows, !2 = $userNamesArray, !3 = $rowsName, !4 = $userNamesArr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   45     1        ASSIGN                                                   !1, <array>
   46     2        INIT_FCALL                                               'array_column'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
   47     7        INIT_FCALL                                               'array_column'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'name'
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
   48    12      > FE_RESET_R                                       $11     !2, ->23
         13    > > FE_FETCH_R                                               $11, !4, ->23
   49    14    >   INIT_FCALL                                               'in_array'
         15        SEND_VAR                                                 !4
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $12     
         18        BOOL_NOT                                         ~13     $12
         19      > JMPZ                                                     ~13, ->22
   50    20    >   CONCAT                                           ~14     !4, '%3Cbr%3E'
         21        ECHO                                                     ~14
   48    22    > > JMP                                                      ->13
         23    >   FE_FREE                                                  $11
   52    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.08 ms | 1400 KiB | 17 Q