3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function printSelf() { echo 'self = ' . self::class . "\n"; } public static function printStatic() { echo 'static = ' . static::class . "\n"; } } class B extends A { } A::test(); B::test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qqO2E
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'test'
          1        DO_FCALL                                      0          
   22     2        INIT_STATIC_METHOD_CALL                                  'B', 'test'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function printself

Function printstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qqO2E
function name:  printStatic
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_CLASS_NAME                                 ~0      
          1        CONCAT                                           ~1      'static+%3D+', ~0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
   13     4      > RETURN                                                   null

End of function printstatic

End of class A.

Class B:
Function printself:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qqO2E
function name:  printSelf
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'self+%3D+A%0A'
    8     1      > RETURN                                                   null

End of function printself

Function printstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qqO2E
function name:  printStatic
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_CLASS_NAME                                 ~0      
          1        CONCAT                                           ~1      'static+%3D+', ~0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
   13     4      > RETURN                                                   null

End of function printstatic

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.13 ms | 1386 KiB | 13 Q