3v4l.org

run code in 300+ PHP versions simultaneously
<?php $remove = array( "Remove Me", "Delete this", "this", ); $haystack = array( array("Data"), array("Ddddata"), array("Remove Me","More data"), array("Delete this", "More!"), array("Foo","Test"), array("Bar"), array("Don't Remove this","Okay we lied","Remove Me"), array("remove me"), // Not really! array("got this"), array("this"), ); var_dump(array_filter($haystack, function($e) use ($remove) { return count(array_intersect($e, $remove)) === 0; }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KL8sC
function name:  (null)
number of ops:  12
compiled vars:  !0 = $remove, !1 = $haystack
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
   20     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'array_filter'
          4        SEND_VAR                                                 !1
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FKL8sC%3A20%240'
          6        BIND_LEXICAL                                             ~4, !0
   22     7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FKL8sC%3A20%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KL8sC
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $e, !1 = $remove
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
   21     2        INIT_FCALL                                               'array_intersect'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $2      
          6        COUNT                                            ~3      $2
          7        IS_IDENTICAL                                     ~4      ~3, 0
          8      > RETURN                                                   ~4
   22     9*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FKL8sC%3A20%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1395 KiB | 19 Q