3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/mRNsX
function name:  (null)
number of ops:  14
compiled vars:  !0 = $id, !1 = $charSum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_id'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    3     3        ECHO                                                     !0
    5     4        INIT_FCALL                                               'hexdec'
          5        FETCH_DIM_R                                      ~4      !0, 0
          6        FETCH_DIM_R                                      ~5      !0, 1
          7        CONCAT                                           ~6      ~4, ~5
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    7    11        MOD                                              ~9      !1, 4
         12        ECHO                                                     ~9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1394 KiB | 17 Q