3v4l.org

run code in 200+ PHP versions simultaneously
<?php /* * Fill in unhashed & hashed seeds below and click blue 'eval();' button below textarea. * * ------------------ */ $hashedSeed = 'paste initial hashed server seed here'; $unhashedSeed = 'paste given unhashed server seed here'; $hash = hash('sha256', $unhashedSeed); echo "Generated hash: $hash\n"; echo 'Does hash match? ' . ($hashedSeed == $hash ? 'Yes' : 'No') . "\n";
based on pvK8r
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8lk1F
function name:  (null)
number of ops:  20
compiled vars:  !0 = $hashedSeed, !1 = $unhashedSeed, !2 = $hash
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   ASSIGN                                                   !0, 'paste+initial+hashed+server+seed+here'
   9     1        ASSIGN                                                   !1, 'paste+given+unhashed+server+seed+here'
  10     2        INIT_FCALL                                               'hash'
         3        SEND_VAL                                                 'sha256'
         4        SEND_VAR                                                 !1
         5        DO_ICALL                                         $5      
         6        ASSIGN                                                   !2, $5
  12     7        ROPE_INIT                                     3  ~8      'Generated+hash%3A+'
         8        ROPE_ADD                                      1  ~8      ~8, !2
         9        ROPE_END                                      2  ~7      ~8, '%0A'
        10        ECHO                                                     ~7
  13    11        IS_NOT_EQUAL                                     ~10     !0, !2
        12      > JMPZ                                                     ~10, ->15
        13    >   QM_ASSIGN                                        ~11     'Yes'
        14      > JMP                                                      ->16
        15    >   QM_ASSIGN                                        ~11     'No'
        16    >   CONCAT                                           ~12     'Does+hash+match%3F+', ~11
        17        CONCAT                                           ~13     ~12, '%0A'
        18        ECHO                                                     ~13
        19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0