3v4l.org

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

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

End of function init

Function print:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NAIZ3
function name:  print
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'name'
          1        ECHO                                                     ~0
    8     2        ECHO                                                     '%3Cbr%3E'
    9     3      > RETURN                                                   null

End of function print

End of class persons.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.43 ms | 1394 KiB | 13 Q