3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $_SESSION = array('a' => 5, 'b' => 'ee"ee', 'c' => 55); var_dump($_SESSION); $str = session_encode(); var_dump($str); $str = str_replace('e', 'é', $str); var_dump($str); $_SESSION = array(); var_dump($_SESSION); session_decode($str); var_dump($_SESSION); $str = session_encode(); var_dump($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J6UvI
function name:  (null)
number of ops:  43
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        FETCH_W                      global              $2      '_SESSION'
          3        ASSIGN                                                   $2, <array>
    4     4        INIT_FCALL                                               'var_dump'
          5        FETCH_R                      global              ~4      '_SESSION'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'session_encode'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !0, $6
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'str_replace'
         15        SEND_VAL                                                 'e'
         16        SEND_VAL                                                 '%C3%A9'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !0, $9
    8    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
    9    23        FETCH_W                      global              $12     '_SESSION'
         24        ASSIGN                                                   $12, <array>
   10    25        INIT_FCALL                                               'var_dump'
         26        FETCH_R                      global              ~14     '_SESSION'
         27        SEND_VAL                                                 ~14
         28        DO_ICALL                                                 
   11    29        INIT_FCALL                                               'session_decode'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                                 
   12    32        INIT_FCALL                                               'var_dump'
         33        FETCH_R                      global              ~17     '_SESSION'
         34        SEND_VAL                                                 ~17
         35        DO_ICALL                                                 
   13    36        INIT_FCALL                                               'session_encode'
         37        DO_ICALL                                         $19     
         38        ASSIGN                                                   !0, $19
   14    39        INIT_FCALL                                               'var_dump'
         40        SEND_VAR                                                 !0
         41        DO_ICALL                                                 
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.36 ms | 1396 KiB | 23 Q