3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait AccessPrivate { public static function broken() { return self::hello(); } } class PrivateRyan { use AccessPrivate; private static function hello() { echo 'Hello world!'; } } PrivateRyan::broken();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rh4bE
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'privateryan'
   12     1        INIT_STATIC_METHOD_CALL                                  'PrivateRyan', 'broken'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class AccessPrivate:
Function broken:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rh4bE
function name:  broken
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_STATIC_METHOD_CALL                                  'hello'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function broken

End of class AccessPrivate.

Class PrivateRyan:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rh4bE
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'Hello+world%21'
          1      > RETURN                                                   null

End of function hello

End of class PrivateRyan.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.92 ms | 1398 KiB | 13 Q