3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r($_GET); if($_GET["a"] === "") echo "a is an empty string\n"; if($_GET["a"] === false) echo "a is false\n"; if($_GET["a"] === null) echo "a is null\n"; if(isset($_GET["a"])) echo "a is set\n"; if(!empty($_GET["a"])) echo "a is not empty"; $offset = $argv[0]; // beware, no input validation! $query = $offset; echo $query; $offset='beware'; $query = $offset; echo $query; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 28
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 23
Branch analysis from position: 19
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/e8qmN
function name:  (null)
number of ops:  36
compiled vars:  !0 = $offset, !1 = $argv, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'print_r'
          1        FETCH_R                      global              ~3      '_GET'
          2        SEND_VAL                                                 ~3
          3        DO_ICALL                                                 
    3     4        FETCH_R                      global              ~5      '_GET'
          5        FETCH_DIM_R                                      ~6      ~5, 'a'
          6        IS_IDENTICAL                                             ~6, ''
          7      > JMPZ                                                     ~7, ->9
          8    >   ECHO                                                     'a+is+an+empty+string%0A'
    4     9    >   FETCH_R                      global              ~8      '_GET'
         10        FETCH_DIM_R                                      ~9      ~8, 'a'
         11        TYPE_CHECK                                    4          ~9
         12      > JMPZ                                                     ~10, ->14
         13    >   ECHO                                                     'a+is+false%0A'
    5    14    >   FETCH_R                      global              ~11     '_GET'
         15        FETCH_DIM_R                                      ~12     ~11, 'a'
         16        TYPE_CHECK                                    2          ~12
         17      > JMPZ                                                     ~13, ->19
         18    >   ECHO                                                     'a+is+null%0A'
    6    19    >   FETCH_IS                                         ~14     '_GET'
         20        ISSET_ISEMPTY_DIM_OBJ                         0          ~14, 'a'
         21      > JMPZ                                                     ~15, ->23
         22    >   ECHO                                                     'a+is+set%0A'
    7    23    >   FETCH_IS                                         ~16     '_GET'
         24        ISSET_ISEMPTY_DIM_OBJ                         1  ~17     ~16, 'a'
         25        BOOL_NOT                                         ~18     ~17
         26      > JMPZ                                                     ~18, ->28
         27    >   ECHO                                                     'a+is+not+empty'
   11    28    >   FETCH_DIM_R                                      ~19     !1, 0
         29        ASSIGN                                                   !0, ~19
   14    30        ASSIGN                                                   !2, !0
   15    31        ECHO                                                     !2
   18    32        ASSIGN                                                   !0, 'beware'
   19    33        ASSIGN                                                   !2, !0
   20    34        ECHO                                                     !2
   29    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1396 KiB | 15 Q