3v4l.org

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

Class A:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AO1QV
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_CONSTANT                                   ~0      'self'
          1        GET_CLASS                                        ~1      ~0
          2        CONCAT                                           ~2      'A+', ~1
          3        ECHO                                                     ~2
    8     4      > RETURN                                                   null

End of function test

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.36 ms | 1394 KiB | 15 Q