3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3); function m_count($list) { echo count($list); } m_count($arr); /* for($i=0; $i<m_count($arr); $i++) { echo 'done'; } */ ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AfBja
function name:  (null)
number of ops:  5
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'm_count'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   17     4      > RETURN                                                   1

Function m_count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AfBja
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:
146.54 ms | 1396 KiB | 14 Q