3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function a(){ $this->c = 4; function b() { $this->c += 4; } function c(){ echo $this->c; } $this->a->b(); $this->a->c(); } } $o = new A(); $o->a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UZ84u
function name:  (null)
number of ops:  6
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_METHOD_CALL                                         !0, 'a'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function %00b%2Fin%2FUZ84u%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UZ84u
function name:  b
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_THIS                                       $0      
          1        ASSIGN_OBJ_OP                                 1          $0, 'c'
          2        OP_DATA                                                  4
   10     3      > RETURN                                                   null

End of function %00b%2Fin%2FUZ84u%3A8%240

Function %00c%2Fin%2FUZ84u%3A12%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UZ84u
function name:  c
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_THIS                                       $0      
          1        FETCH_OBJ_R                                      ~1      $0, 'c'
          2        ECHO                                                     ~1
   14     3      > RETURN                                                   null

End of function %00c%2Fin%2FUZ84u%3A12%241

Class A:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UZ84u
function name:  a
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_OBJ                                               'c'
          1        OP_DATA                                                  4
    8     2        DECLARE_FUNCTION                                         'b'
   12     3        DECLARE_FUNCTION                                         'c'
   16     4        FETCH_OBJ_R                                      ~1      'a'
          5        INIT_METHOD_CALL                                         ~1, 'b'
          6        DO_FCALL                                      0          
   17     7        FETCH_OBJ_R                                      ~3      'a'
          8        INIT_METHOD_CALL                                         ~3, 'c'
          9        DO_FCALL                                      0          
   20    10      > RETURN                                                   null

End of function a

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.53 ms | 1395 KiB | 13 Q