3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h='$6$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40'; $p='salasana'; $c=crypt($p,$h); var_dump(CRYPT_SHA512); echo "HASH: $h - CRYPT: $c\n"; if ($c == $h) { echo "MATCH OK\n"; } else { echo "NO MATCH\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mOrKM
function name:  (null)
number of ops:  22
compiled vars:  !0 = $h, !1 = $p, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%246%24qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq%2FmPN8a.rE40'
    3     1        ASSIGN                                                   !1, 'salasana'
    4     2        INIT_FCALL                                               'crypt'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAL                                                 1
          9        DO_ICALL                                                 
    7    10        ROPE_INIT                                     5  ~9      'HASH%3A+'
         11        ROPE_ADD                                      1  ~9      ~9, !0
         12        ROPE_ADD                                      2  ~9      ~9, '+-+CRYPT%3A+'
         13        ROPE_ADD                                      3  ~9      ~9, !2
         14        ROPE_END                                      4  ~8      ~9, '%0A'
         15        ECHO                                                     ~8
    8    16        IS_EQUAL                                                 !2, !0
         17      > JMPZ                                                     ~12, ->20
   10    18    >   ECHO                                                     'MATCH+OK%0A'
         19      > JMP                                                      ->21
   14    20    >   ECHO                                                     'NO+MATCH%0A'
   16    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.75 ms | 1395 KiB | 17 Q