3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Original { class Original { final public function __construct() { $this->youCantTouchThis(); } private function youCantTouchThis() { var_dump('I\'m so private'); } } } namespace Cheat { use Original\Original; function var_dump() { \var_dump('Gotcha!'); } class Wrapper extends Original { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngjvV
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E > > RETURN                                                   1

Function cheat%5Cvar_dump:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngjvV
function name:  Cheat\var_dump
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'Gotcha%21'
          2        DO_ICALL                                                 
   26     3      > RETURN                                                   null

End of function cheat%5Cvar_dump

Class Original\Original:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngjvV
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_METHOD_CALL                                         'youCantTouchThis'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function __construct

Function youcanttouchthis:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngjvV
function name:  youCantTouchThis
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_NS_FCALL_BY_NAME                                    'Original%5Cvar_dump'
          1        SEND_VAL_EX                                              'I%27m+so+private'
          2        DO_FCALL                                      0          
   15     3      > RETURN                                                   null

End of function youcanttouchthis

End of class Original\Original.

Class Cheat\Wrapper:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngjvV
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_METHOD_CALL                                         'youCantTouchThis'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function __construct

Function youcanttouchthis:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ngjvV
function name:  youCantTouchThis
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_NS_FCALL_BY_NAME                                    'Original%5Cvar_dump'
          1        SEND_VAL_EX                                              'I%27m+so+private'
          2        DO_FCALL                                      0          
   15     3      > RETURN                                                   null

End of function youcanttouchthis

End of class Cheat\Wrapper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.8 ms | 1400 KiB | 15 Q