3v4l.org

run code in 300+ PHP versions simultaneously
<?php $petr=array(1,2,4,5,6,8,4,7,5,6,3); function bazar($cyfr){ return ($cyfr & 4); } $petr_fil=array_filter($petr, bazar); print_r($petr); print_r($petr_fil); print_r(bazar(8));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ab7Lh
function name:  (null)
number of ops:  20
compiled vars:  !0 = $petr, !1 = $petr_fil
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        FETCH_CONSTANT                                   ~3      'bazar'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
   11     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   12    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   14    13        INIT_FCALL                                               'print_r'
         14        INIT_FCALL                                               'bazar'
         15        SEND_VAL                                                 8
         16        DO_FCALL                                      0  $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Function bazar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ab7Lh
function name:  bazar
number of ops:  4
compiled vars:  !0 = $cyfr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        BW_AND                                           ~1      !0, 4
          2      > RETURN                                                   ~1
    7     3*     > RETURN                                                   null

End of function bazar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.87 ms | 1398 KiB | 18 Q