3v4l.org

run code in 300+ PHP versions simultaneously
<?php $verify = array( "seed" => "9c3dabc67538ac6d725659b8172e0827a2b700f330ec8d443ee597f4ec575c77", "salt" => "05eba7cea3", "round_id" => "215358" ); $win_num = hexdec(substr(hash("sha256",$verify['seed']."-".$verify['salt']."-".$verify['round_id']),0,8)) % 15; echo "Result for game #".$verify['round_id'].": ".$win_num;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g4rib
function name:  (null)
number of ops:  28
compiled vars:  !0 = $verify, !1 = $win_num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'hexdec'
          2        INIT_FCALL                                               'substr'
          3        INIT_FCALL                                               'hash'
          4        SEND_VAL                                                 'sha256'
          5        FETCH_DIM_R                                      ~3      !0, 'seed'
          6        CONCAT                                           ~4      ~3, '-'
          7        FETCH_DIM_R                                      ~5      !0, 'salt'
          8        CONCAT                                           ~6      ~4, ~5
          9        CONCAT                                           ~7      ~6, '-'
         10        FETCH_DIM_R                                      ~8      !0, 'round_id'
         11        CONCAT                                           ~9      ~7, ~8
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                         $10     
         14        SEND_VAR                                                 $10
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 8
         17        DO_ICALL                                         $11     
         18        SEND_VAR                                                 $11
         19        DO_ICALL                                         $12     
         20        MOD                                              ~13     $12, 15
         21        ASSIGN                                                   !1, ~13
   10    22        FETCH_DIM_R                                      ~15     !0, 'round_id'
         23        CONCAT                                           ~16     'Result+for+game+%23', ~15
         24        CONCAT                                           ~17     ~16, '%3A+'
         25        CONCAT                                           ~18     ~17, !1
         26        ECHO                                                     ~18
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.82 ms | 1395 KiB | 19 Q