3v4l.org

run code in 300+ PHP versions simultaneously
<?php function provideGlobals() { printf("Is foo exists: %d\n", array_key_exists("foo", $GLOBALS)); $GLOBALS += array("foo" => "foo"); } provideGlobals(); echo $foo;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/teWDV
function name:  (null)
number of ops:  4
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'provideglobals'
          1        DO_FCALL                                      0          
    9     2        ECHO                                                     !0
          3      > RETURN                                                   1

Function provideglobals:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/teWDV
function name:  provideGlobals
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 'Is+foo+exists%3A+%25d%0A'
          2        FETCH_R                      global              ~0      'GLOBALS'
          3        ARRAY_KEY_EXISTS                                 ~1      'foo', ~0
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
    5     6        FETCH_RW                     global              $3      'GLOBALS'
          7        ASSIGN_OP                                     1          $3, <array>
    6     8      > RETURN                                                   null

End of function provideglobals

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.07 ms | 1397 KiB | 16 Q