3v4l.org

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

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ccbhC
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:
165.8 ms | 1398 KiB | 17 Q