3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); ?> <!DOCTYPE html> <html> <body> <?php // Echo session variables that were set on previous page echo "Favorite color is " . $_SESSION["favcolor"] . ".<br>"; echo "Favorite animal is " . $_SESSION["favanimal"] . "."; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ffMhC
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    4     2        ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
   10     3        FETCH_R                      global              ~1      '_SESSION'
          4        FETCH_DIM_R                                      ~2      ~1, 'favcolor'
          5        CONCAT                                           ~3      'Favorite+color+is+', ~2
          6        CONCAT                                           ~4      ~3, '.%3Cbr%3E'
          7        ECHO                                                     ~4
   11     8        FETCH_R                      global              ~5      '_SESSION'
          9        FETCH_DIM_R                                      ~6      ~5, 'favanimal'
         10        CONCAT                                           ~7      'Favorite+animal+is+', ~6
         11        CONCAT                                           ~8      ~7, '.'
         12        ECHO                                                     ~8
   13    13        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   15    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.61 ms | 1394 KiB | 15 Q