3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Counter implements Countable { public function count() { var_dump(func_get_arg(0)); return count($this->data); } } $counter = new Counter; $counter->count();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AGHLJ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $counter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'counter'
   11     1        NEW                                              $1      'Counter'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   12     4        INIT_METHOD_CALL                                         !0, 'count'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Counter:
Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AGHLJ
function name:  count
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'func_get_arg'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    7     6        FETCH_OBJ_R                                      ~2      'data'
          7        COUNT                                            ~3      ~2
          8      > RETURN                                                   ~3
    8     9*     > RETURN                                                   null

End of function count

End of class Counter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.03 ms | 1395 KiB | 17 Q