3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($data){ $data['foo'] = 'Bar!'; } foo($GLOBALS); var_dump($GLOBALS['foo']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfklD
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'foo'
          1        FETCH_R                      global              ~0      'GLOBALS'
          2        SEND_VAL                                                 ~0
          3        DO_FCALL                                      0          
    7     4        INIT_FCALL                                               'var_dump'
          5        FETCH_R                      global              ~2      'GLOBALS'
          6        FETCH_DIM_R                                      ~3      ~2, 'foo'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfklD
function name:  foo
number of ops:  4
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN_DIM                                               !0, 'foo'
          2        OP_DATA                                                  'Bar%21'
    5     3      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.82 ms | 1397 KiB | 16 Q