3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T{ var $a; function f() { $this->a = 'hi'; } function g() { print $a; } } $t = new T(); $t->f(); $t->g();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OlniO
function name:  (null)
number of ops:  8
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'T'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'f'
          4        DO_FCALL                                      0          
   19     5        INIT_METHOD_CALL                                         !0, 'g'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class T:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OlniO
function name:  f
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_OBJ                                               'a'
          1        OP_DATA                                                  'hi'
    8     2      > RETURN                                                   null

End of function f

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OlniO
function name:  g
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     !0
   12     1      > RETURN                                                   null

End of function g

End of class T.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.96 ms | 1398 KiB | 13 Q