3v4l.org

run code in 300+ PHP versions simultaneously
<?php class asd{ private $p = "hallo"; } 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/dYUsk
function name:  (null)
number of ops:  6
compiled vars:  !0 = $bsd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'bsd'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     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/dYUsk
function name:  print_p
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'p'
          1        ECHO                                                     ~0
   12     2      > RETURN                                                   null

End of function print_p

End of class bsd.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.37 ms | 1393 KiB | 13 Q