3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C implements \Countable { public function count($mode = \COUNT_NORMAL) { var_dump(func_get_args()); return 0; } } $c = new C(); count($c); count($c, \COUNT_RECURSIVE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lp6SR
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'c'
   15     1        NEW                                              $1      'C'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   16     4        COUNT                                            ~4      !0
          5        FREE                                                     ~4
   17     6        INIT_FCALL                                               'count'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class C:
Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lp6SR
function name:  count
number of ops:  7
compiled vars:  !0 = $mode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      <const ast>
    9     1        INIT_FCALL                                               'var_dump'
          2        FUNC_GET_ARGS                                    ~1      
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
   10     5      > RETURN                                                   0
   12     6*     > RETURN                                                   null

End of function count

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.02 ms | 1395 KiB | 17 Q