3v4l.org

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

Class asd: [no user functions]
Class bsd:
Function print_p:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ABqMA
function name:  print_p
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN_OBJ                                               'p'
          1        OP_DATA                                                  'hallo'
    9     2        FETCH_OBJ_R                                      ~1      'p'
          3        ECHO                                                     ~1
   10     4      > RETURN                                                   null

End of function print_p

End of class bsd.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.02 ms | 1393 KiB | 13 Q