3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public static function set() { self::$var = 'hello'; echo self::$var; } } test::set();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OXKSZ
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                                  'test', 'set'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function set

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.38 ms | 1393 KiB | 13 Q