3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = ["one", "two", "three"]; $ignore = "two"; for ($i = 0; $i < 1000; $i++) { array_filter($items, function ($item) use ($ignore) { return $item !== $ignore; }); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
Branch analysis from position: 4
filename:       /in/Bsif9
function name:  (null)
number of ops:  14
compiled vars:  !0 = $items, !1 = $ignore, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'two'
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->11
    7     4    >   INIT_FCALL                                               'array_filter'
          5        SEND_VAR                                                 !0
          6        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
          7        BIND_LEXICAL                                             ~6, !1
    9     8        SEND_VAL                                                 ~6
    7     9        DO_ICALL                                                 
    6    10        PRE_INC                                                  !2
         11    >   IS_SMALLER                                               !2, 1000
         12      > JMPNZ                                                    ~9, ->4
   10    13    > > 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/Bsif9
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $item, !1 = $ignore
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    8     2        IS_NOT_IDENTICAL                                 ~2      !0, !1
          3      > RETURN                                                   ~2
    9     4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.89 ms | 1005 KiB | 14 Q