3v4l.org

run code in 300+ PHP versions simultaneously
<?php $remove = array( "Remove Me", "Delete this", "this", ); $haystack = array( "Data", "Ddddata", "Remove Me", "Delete this", "Foo", "Bar", "Don't Remove this", "remove me", // Not really! "got this", "this", ); var_dump(array_filter($haystack, function($e) use ($remove) { return !in_array($e, $remove); }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dNagO
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%2FdNagO%3A20%240'
          6        BIND_LEXICAL                                             ~4, !0
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.41 ms | 1387 KiB | 19 Q