3v4l.org

run code in 300+ PHP versions simultaneously
function &myreffun($num) { return $num*$num; } $val=&myreffun(10); <?php function &globalvariables($str) { return $GLOBALS[$str]; } $number=30; $value1=$globalvariables(number); print value1."<br>"; $value1=40; print $value1."<br>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LsKKq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $number, !1 = $value1, !2 = $globalvariables
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'function+%26myreffun%28%24num%29%0A%7B%0A++++return+%24num%2A%24num%3B%0A%7D%0A%24val%3D%26myreffun%2810%29%3B%0A'
   11     1        ASSIGN                                                   !0, 30
   12     2        INIT_DYNAMIC_CALL                                        !2
          3        FETCH_CONSTANT                                   ~4      'number'
          4        SEND_VAL_EX                                              ~4
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
   13     7        FETCH_CONSTANT                                   ~7      'value1'
          8        CONCAT                                           ~8      ~7, '%3Cbr%3E'
          9        ECHO                                                     ~8
   14    10        ASSIGN                                                   !1, 40
   15    11        CONCAT                                           ~10     !1, '%3Cbr%3E'
         12        ECHO                                                     ~10
   16    13      > RETURN                                                   1

Function globalvariables:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/LsKKq
function name:  globalvariables
number of ops:  5
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        FETCH_W                      global              $1      'GLOBALS'
          2        FETCH_DIM_W                                      $2      $1, !0
          3      > RETURN_BY_REF                                            $2
   10     4*     > RETURN_BY_REF                                            null

End of function globalvariables

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.07 ms | 1394 KiB | 13 Q