3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Original { class Original { public function __construct() { $this->youCantTouchThis(); } private function youCantTouchThis() { var_dump('I\'m so private'); } } } namespace Cheat { function var_dump() { var_dump('Gotcha!'); } class Wrapper extends \Original\Original { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qG1mv
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     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/qG1mv
function name:  Cheat\var_dump
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_NS_FCALL_BY_NAME                                    'Cheat%5Cvar_dump'
          1        SEND_VAL_EX                                              'Gotcha%21'
          2        DO_FCALL                                      0          
   18     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/qG1mv
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_METHOD_CALL                                         'youCantTouchThis'
          1        DO_FCALL                                      0          
    8     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/qG1mv
function name:  youCantTouchThis
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_NS_FCALL_BY_NAME                                    'Original%5Cvar_dump'
          1        SEND_VAL_EX                                              'I%27m+so+private'
          2        DO_FCALL                                      0          
   11     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/qG1mv
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_METHOD_CALL                                         'youCantTouchThis'
          1        DO_FCALL                                      0          
    8     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/qG1mv
function name:  youCantTouchThis
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_NS_FCALL_BY_NAME                                    'Original%5Cvar_dump'
          1        SEND_VAL_EX                                              'I%27m+so+private'
          2        DO_FCALL                                      0          
   11     3      > RETURN                                                   null

End of function youcanttouchthis

End of class Cheat\Wrapper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.76 ms | 1392 KiB | 15 Q