3v4l.org

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

Class a:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d1PbG
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:
175.92 ms | 1394 KiB | 15 Q