3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private static $arr = array(); public function get() { return self::$arr; } } $arr = &C::get(); $arr[] = 0; var_dump($arr); var_dump(C::get());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OD9YZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_STATIC_METHOD_CALL                                  'C', 'get'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN_REF                                               !0, $1
    9     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  0
   10     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   11     8        INIT_FCALL                                               'var_dump'
          9        INIT_STATIC_METHOD_CALL                                  'C', 'get'
         10        DO_FCALL                                      0  $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

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

End of function get

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.44 ms | 1386 KiB | 15 Q