3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expire=time()+60*60*24*30; setcookie("user", "Alex Porter", $expire); if (isset($_COOKIE["user"])) echo "Welcome " . $_COOKIE["user"] . "!<br>"; else echo "Welcome guest!<br>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0mmf9
function name:  (null)
number of ops:  20
compiled vars:  !0 = $expire
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $1      
          2        ADD                                              ~2      $1, 2592000
          3        ASSIGN                                                   !0, ~2
    3     4        INIT_FCALL                                               'setcookie'
          5        SEND_VAL                                                 'user'
          6        SEND_VAL                                                 'Alex+Porter'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9        FETCH_IS                                         ~5      '_COOKIE'
         10        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 'user'
         11      > JMPZ                                                     ~6, ->18
    6    12    >   FETCH_R                      global              ~7      '_COOKIE'
         13        FETCH_DIM_R                                      ~8      ~7, 'user'
         14        CONCAT                                           ~9      'Welcome+', ~8
         15        CONCAT                                           ~10     ~9, '%21%3Cbr%3E'
         16        ECHO                                                     ~10
         17      > JMP                                                      ->19
    8    18    >   ECHO                                                     'Welcome+guest%21%3Cbr%3E'
    9    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.99 ms | 1395 KiB | 17 Q