3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ['1_LL', '2_LL', 'AND_WLL']; $remove = 'WLL'; $array = array_filter($array, function($value) use ($remove) { return false === strpos($value, $remove); }); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1VLjC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $remove
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, 'WLL'
    6     2        INIT_FCALL                                                   'array_filter'
          3        SEND_VAR                                                     !0
          4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          5        BIND_LEXICAL                                                 ~4, !1
    8     6        SEND_VAL                                                     ~4
    6     7        DO_ICALL                                             $5      
          8        ASSIGN                                                       !0, $5
    9     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                                     
         12      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1VLjC
function name:  {closure:/in/1VLjC:6}
number of ops:  6
compiled vars:  !0 = $value, !1 = $remove
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
    7     2        FRAMELESS_ICALL_2                strpos              ~2      !0, !1
          3        TYPE_CHECK                                        4  ~3      ~2
          4      > RETURN                                                       ~3
    8     5*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
150.44 ms | 1887 KiB | 15 Q