3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class asd{ private $p = "asd"; } class bsd extends asd { function print_p(){ $this->p = "hallo"; var_dump( $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/SWj8o
function name:  (null)
number of ops:  9
compiled vars:  !0 = $bsd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   15     3        NEW                                              $2      'bsd'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   16     6        INIT_METHOD_CALL                                         !0, 'print_p'
          7        DO_FCALL                                      0          
          8      > 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/SWj8o
function name:  print_p
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN_OBJ                                               'p'
          1        OP_DATA                                                  'hallo'
   12     2        INIT_FCALL                                               'var_dump'
          3        FETCH_OBJ_R                                      ~1      'p'
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
   13     6      > RETURN                                                   null

End of function print_p

End of class bsd.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.9 ms | 1395 KiB | 17 Q