3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo hash( 'sha256', '20140411app_mo165mob@r4lf#l33' ); echo "\n"; $authKey = hash( 'sha256', 'moblee' . '4494c326c7c7e93fdd25719d48b341907f60aa9546a9990c78566f84fe23530f' ); echo $authKey; echo "\n"; echo $hash = hash_hmac( 'sha256', 'POSThttp://localhost:8080/moblee/ralf-api/api/v1_1/event/20140411app_mo165/user{ "user":"teste", "role":"editor", "password":"teste" }', $authKey ); echo "\n"; echo base64_encode( 'user:'.$hash ); echo "\n"; echo hash( 'sha256', '20140411app_mo165senha' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/epds3
function name:  (null)
number of ops:  33
compiled vars:  !0 = $authKey, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'hash'
          1        SEND_VAL                                                 'sha256'
          2        SEND_VAL                                                 '20140411app_mo165mob%40r4lf%23l33'
          3        DO_ICALL                                         $2      
          4        ECHO                                                     $2
          5        ECHO                                                     '%0A'
    4     6        INIT_FCALL                                               'hash'
          7        SEND_VAL                                                 'sha256'
          8        SEND_VAL                                                 'moblee4494c326c7c7e93fdd25719d48b341907f60aa9546a9990c78566f84fe23530f'
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    5    11        ECHO                                                     !0
         12        ECHO                                                     '%0A'
    6    13        INIT_FCALL                                               'hash_hmac'
         14        SEND_VAL                                                 'sha256'
         15        SEND_VAL                                                 'POSThttp%3A%2F%2Flocalhost%3A8080%2Fmoblee%2Fralf-api%2Fapi%2Fv1_1%2Fevent%2F20140411app_mo165%2Fuser%7B%0A%22user%22%3A%22teste%22%2C%0A%22role%22%3A%22editor%22%2C%0A%22password%22%3A%22teste%22%0A%7D'
   10    16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $5      
    6    18        ASSIGN                                           ~6      !1, $5
         19        ECHO                                                     ~6
   10    20        ECHO                                                     '%0A'
   12    21        INIT_FCALL                                               'base64_encode'
         22        CONCAT                                           ~7      'user%3A', !1
         23        SEND_VAL                                                 ~7
         24        DO_ICALL                                         $8      
         25        ECHO                                                     $8
         26        ECHO                                                     '%0A'
   14    27        INIT_FCALL                                               'hash'
         28        SEND_VAL                                                 'sha256'
         29        SEND_VAL                                                 '20140411app_mo165senha'
         30        DO_ICALL                                         $9      
         31        ECHO                                                     $9
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.36 ms | 1396 KiB | 19 Q