3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public static $loh; public static function loh () { echo static::$loh; } } test::$loh = 123; test::loh();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/29SfW
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN_STATIC_PROP                                       'loh', 'test'
          1        OP_DATA                                                  123
   13     2        INIT_STATIC_METHOD_CALL                                  'test', 'loh'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function loh

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.25 ms | 1393 KiB | 13 Q