3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP $client_seed = '914504a25e42c9bbfc388305cec7b0aa'; $server_seed = '7f53da7c6ee33561522f66fbdf1c10e844445a5997ebf0d5166c294f8c96ad9c'; $result_seed = hash_hmac('sha512', $server_seed, $client_seed); $result_number = hexdec(substr($result_seed,0,10)); $lucky_number = abs($result_number % 100); echo $lucky_number;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SJhoF
function name:  (null)
number of ops:  24
compiled vars:  !0 = $client_seed, !1 = $server_seed, !2 = $result_seed, !3 = $result_number, !4 = $lucky_number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '914504a25e42c9bbfc388305cec7b0aa'
    4     1        ASSIGN                                                   !1, '7f53da7c6ee33561522f66fbdf1c10e844445a5997ebf0d5166c294f8c96ad9c'
    6     2        INIT_FCALL                                               'hash_hmac'
          3        SEND_VAL                                                 'sha512'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !2, $7
    7     8        INIT_FCALL                                               'hexdec'
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 10
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !3, $10
    8    17        INIT_FCALL                                               'abs'
         18        MOD                                              ~12     !3, 100
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !4, $13
   10    22        ECHO                                                     !4
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.6 ms | 1395 KiB | 21 Q