3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump($_COOKIE['TEST']); $binary_string = ""; for($index = 0; $index < 256; $index++){ $binary_string .= chr($index); } $encoded_data = base64_encode($binary_string); var_dump($encoded_data); $cookie_set = setrawcookie('TEST', $encoded_data, time() + 3600); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/peBPp
function name:  (null)
number of ops:  32
compiled vars:  !0 = $binary_string, !1 = $index, !2 = $encoded_data, !3 = $cookie_set
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_R                      global              ~4      '_COOKIE'
          2        FETCH_DIM_R                                      ~5      ~4, 'TEST'
          3        SEND_VAL                                                 ~5
          4        DO_ICALL                                                 
    4     5        ASSIGN                                                   !0, ''
    5     6        ASSIGN                                                   !1, 0
          7      > JMP                                                      ->13
    6     8    >   INIT_FCALL                                               'chr'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11        ASSIGN_OP                                     8          !0, $9
    5    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, 256
         14      > JMPNZ                                                    ~12, ->8
    8    15    >   INIT_FCALL                                               'base64_encode'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !2, $13
    9    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
   10    22        INIT_FCALL                                               'setrawcookie'
         23        SEND_VAL                                                 'TEST'
         24        SEND_VAR                                                 !2
         25        INIT_FCALL                                               'time'
         26        DO_ICALL                                         $16     
         27        ADD                                              ~17     $16, 3600
         28        SEND_VAL                                                 ~17
         29        DO_ICALL                                         $18     
         30        ASSIGN                                                   !3, $18
   11    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.29 ms | 1396 KiB | 23 Q