3v4l.org

run code in 300+ PHP versions simultaneously
<?php isFoo(); $foo_app_cookie_val = "foo"; function isFoo() { global $foo_app_cookie_val; echo "in isFoo: '$foo_app_cookie_val'<br/>"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2gX6C
function name:  (null)
number of ops:  4
compiled vars:  !0 = $foo_app_cookie_val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'isFoo'
          1        DO_FCALL                                      0          
    3     2        ASSIGN                                                   !0, 'foo'
    8     3      > RETURN                                                   1

Function isfoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2gX6C
function name:  isFoo
number of ops:  6
compiled vars:  !0 = $foo_app_cookie_val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   BIND_GLOBAL                                              !0, 'foo_app_cookie_val'
    7     1        ROPE_INIT                                     3  ~2      'in+isFoo%3A+%27'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%27%3Cbr%2F%3E'
          4        ECHO                                                     ~1
    8     5      > RETURN                                                   null

End of function isfoo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.22 ms | 1393 KiB | 13 Q