3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ['ishani.lad', 9033187384], ['rajkumar.prajapati', 8460078459], ['lokesh.bhandari', 9687060900], ['shishansu.rai', 8401915337], ['vishal.dake', 9879815299], ['mohsin', 8347163123] ]; $a2 = ['ishani.lad', 'rajkumar.prajapati', 'lokesh.bhandari']; $output = array_filter($array1, function($a1) use ($a2) { return ! in_array($a1[0], $a2); }); echo '<pre>'; var_dump($output); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V1HSp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array1, !1 = $a2, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, <array>
   15     2        INIT_FCALL                                               'array_filter'
          3        SEND_VAR                                                 !0
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FV1HSp%3A15%240'
          5        BIND_LEXICAL                                             ~5, !1
   17     6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
   15     8        ASSIGN                                                   !2, $6
   19     9        ECHO                                                     '%3Cpre%3E'
         10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13        ECHO                                                     '%3C%2Fpre%3E'
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FV1HSp%3A15%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V1HSp
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
   16     2        INIT_FCALL                                               'in_array'
          3        FETCH_DIM_R                                      ~2      !0, 0
          4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $3      
          7        BOOL_NOT                                         ~4      $3
          8      > RETURN                                                   ~4
   17     9*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FV1HSp%3A15%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.75 ms | 1395 KiB | 19 Q