3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $id = session_id(); echo $id; $charSum = hexdec($id[0] . $id[1]); echo $charSum % 4;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b3hDo
function name:  (null)
number of ops:  16
compiled vars:  !0 = $id, !1 = $charSum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL                                               'session_id'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        ECHO                                                     !0
    6     6        INIT_FCALL                                               'hexdec'
          7        FETCH_DIM_R                                      ~5      !0, 0
          8        FETCH_DIM_R                                      ~6      !0, 1
          9        CONCAT                                           ~7      ~5, ~6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !1, $8
    8    13        MOD                                              ~10     !1, 4
         14        ECHO                                                     ~10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.05 ms | 1394 KiB | 19 Q