3v4l.org

run code in 300+ PHP versions simultaneously
<?php setcookie('start', 'test'); session_start(); $_SESSION['start']='a test'; setcookie('start', 'test'); $_SESSION['start']='a test'; echo var_dump($_COOKIE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QlnLJ
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'setcookie'
          1        SEND_VAL                                                 'start'
          2        SEND_VAL                                                 'test'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'session_start'
          5        DO_ICALL                                                 
    4     6        FETCH_W                      global              $2      '_SESSION'
          7        ASSIGN_DIM                                               $2, 'start'
          8        OP_DATA                                                  'a+test'
    5     9        INIT_FCALL                                               'setcookie'
         10        SEND_VAL                                                 'start'
         11        SEND_VAL                                                 'test'
         12        DO_ICALL                                                 
    6    13        FETCH_W                      global              $5      '_SESSION'
         14        ASSIGN_DIM                                               $5, 'start'
         15        OP_DATA                                                  'a+test'
    8    16        INIT_FCALL                                               'var_dump'
         17        FETCH_R                      global              ~7      '_COOKIE'
         18        SEND_VAL                                                 ~7
         19        DO_ICALL                                         $8      
         20        ECHO                                                     $8
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.65 ms | 1395 KiB | 19 Q