3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'test'; // hash generated with PHP 5.3.7+ $hash = '$2y$14$MTIzNDU2Nzg5MDEyMzQ1NeWUUefVlefsTbFhsbqKFv/vPSZBrSFVm'; $result = crypt($password, $hash); printf("Result hash %s (length %d)\n", $result, strlen($result)); if ($result === $hash) { printf("Ok, verified.\n"); } else { printf("Not verified.\n"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pIqHb
function name:  (null)
number of ops:  23
compiled vars:  !0 = $password, !1 = $hash, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test'
    5     1        ASSIGN                                                   !1, '%242y%2414%24MTIzNDU2Nzg5MDEyMzQ1NeWUUefVlefsTbFhsbqKFv%2FvPSZBrSFVm'
    7     2        INIT_FCALL                                               'crypt'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    8     7        INIT_FCALL                                               'printf'
          8        SEND_VAL                                                 'Result+hash+%25s+%28length+%25d%29%0A'
          9        SEND_VAR                                                 !2
         10        STRLEN                                           ~7      !2
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
    9    13        IS_IDENTICAL                                             !2, !1
         14      > JMPZ                                                     ~9, ->19
   10    15    >   INIT_FCALL                                               'printf'
         16        SEND_VAL                                                 'Ok%2C+verified.%0A'
         17        DO_ICALL                                                 
         18      > JMP                                                      ->22
   12    19    >   INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 'Not+verified.%0A'
         21        DO_ICALL                                                 
   13    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.63 ms | 1395 KiB | 17 Q