3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = range(1, 1000); for($i = 0; $i < 100; $i++) { $odd= array_filter($test, function($var) { return($var & 1); }); var_dump($odd); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/4EHQC
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test, !1 = $i, !2 = $odd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1000
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    5     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->17
    6     7    >   INIT_FCALL                                               'array_filter'
          8        SEND_VAR                                                 !0
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F4EHQC%3A6%240'
    8    10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
    6    12        ASSIGN                                                   !2, $7
   11    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
    5    16        PRE_INC                                                  !1
         17    >   IS_SMALLER                                               !1, 100
         18      > JMPNZ                                                    ~11, ->7
   12    19    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F4EHQC%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4EHQC
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        BW_AND                                           ~1      !0, 1
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F4EHQC%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.37 ms | 1396 KiB | 19 Q