3v4l.org

run code in 300+ PHP versions simultaneously
<?php class b { public static function __callStatic($a,$b){ echo get_called_class(); } } class a extends b {} a::moro();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UB6aJ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'a', 'moro'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class b:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UB6aJ
function name:  __callStatic
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        GET_CALLED_CLASS                                 ~2      
          3        ECHO                                                     ~2
    6     4      > RETURN                                                   null

End of function __callstatic

End of class b.

Class a:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UB6aJ
function name:  __callStatic
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        GET_CALLED_CLASS                                 ~2      
          3        ECHO                                                     ~2
    6     4      > RETURN                                                   null

End of function __callstatic

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.95 ms | 1393 KiB | 13 Q