3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $id = session_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/CJ3no
function name:  (null)
number of ops:  15
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                                                 
    4     2        INIT_FCALL                                               'session_id'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    6     5        INIT_FCALL                                               'hexdec'
          6        FETCH_DIM_R                                      ~5      !0, 0
          7        FETCH_DIM_R                                      ~6      !0, 1
          8        CONCAT                                           ~7      ~5, ~6
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !1, $8
    8    12        MOD                                              ~10     !1, 4
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.69 ms | 1394 KiB | 19 Q