3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Stat { static public $some; static function set($some){ self::$some = $some; } static function get(){ return self::$some; } } Stat::set(5); print(Stat::get());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ctWG6
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_STATIC_METHOD_CALL                                  'Stat', 'set'
          1        SEND_VAL                                                 5
          2        DO_FCALL                                      0          
   17     3        INIT_STATIC_METHOD_CALL                                  'Stat', 'get'
          4        DO_FCALL                                      0  $1      
          5        ECHO                                                     $1
          6      > RETURN                                                   1

Class Stat:
Function set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ctWG6
function name:  set
number of ops:  4
compiled vars:  !0 = $some
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ASSIGN_STATIC_PROP                                       'some'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function set

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

End of function get

End of class Stat.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.82 ms | 1394 KiB | 13 Q