3v4l.org

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

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

End of function abc

Function bcd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8UlIb
function name:  bcd
number of ops:  6
compiled vars:  !0 = $bcd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'world'
    8     1        FETCH_OBJ_R                                      ~2      'abc'
          2        ECHO                                                     ~2
          3        ECHO                                                     '+'
          4        ECHO                                                     !0
    9     5      > RETURN                                                   null

End of function bcd

End of class abc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.18 ms | 1394 KiB | 13 Q