3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { private function a1() { echo 1; } protected function a() { echo 2; } } class A{ use T1; public static function s(){ $this->a1(); $this->a(); } } A::s();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LIoq4
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'a'
   19     1        INIT_STATIC_METHOD_CALL                                  'A', 's'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class T1:
Function a1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LIoq4
function name:  a1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     1
    6     1      > RETURN                                                   null

End of function a1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LIoq4
function name:  a
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     2
    9     1      > RETURN                                                   null

End of function a

End of class T1.

Class A:
Function s:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LIoq4
function name:  s
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_THIS                                       $0      
          1        INIT_METHOD_CALL                                         $0, 'a1'
          2        DO_FCALL                                      0          
   15     3        FETCH_THIS                                       $2      
          4        INIT_METHOD_CALL                                         $2, 'a'
          5        DO_FCALL                                      0          
   16     6      > RETURN                                                   null

End of function s

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.76 ms | 1385 KiB | 13 Q