3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3); function m_count($list) { echo count($list); } for($i=0; $i<3; $i++) { echo 'done'; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 3
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 3
Branch analysis from position: 7
Branch analysis from position: 3
filename:       /in/vPVhv
function name:  (null)
number of ops:  8
compiled vars:  !0 = $arr, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->5
   12     3    >   ECHO                                                     'done'
   11     4        PRE_INC                                                  !1
          5    >   IS_SMALLER                                               !1, 3
          6      > JMPNZ                                                    ~5, ->3
   16     7    > > RETURN                                                   1

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

End of function m_count

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.35 ms | 1385 KiB | 13 Q