3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h='$2a$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40'; $p='salasana'; $c=crypt($p,$h); 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 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RVEU2
function name:  (null)
number of ops:  19
compiled vars:  !0 = $h, !1 = $p, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%242a%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        ROPE_INIT                                     5  ~8      'HASH%3A+'
          8        ROPE_ADD                                      1  ~8      ~8, !0
          9        ROPE_ADD                                      2  ~8      ~8, '+-+CRYPT%3A+'
         10        ROPE_ADD                                      3  ~8      ~8, !2
         11        ROPE_END                                      4  ~7      ~8, '%0A'
         12        ECHO                                                     ~7
    7    13        IS_EQUAL                                                 !2, !0
         14      > JMPZ                                                     ~11, ->17
    9    15    >   ECHO                                                     'MATCH+OK%0A'
         16      > JMP                                                      ->18
   13    17    >   ECHO                                                     'NO+MATCH%0A'
   15    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.34 ms | 1386 KiB | 15 Q