3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = substr(md5(time()), 0, 22); $hash = crypt('test', '$2y$07$'.$salt.'$'); var_dump(crypt('test', $hash) === $hash);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/stYJL
function name:  (null)
number of ops:  27
compiled vars:  !0 = $salt, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'substr'
          1        INIT_FCALL                                               'md5'
          2        INIT_FCALL                                               'time'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 22
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    3    11        INIT_FCALL                                               'crypt'
         12        SEND_VAL                                                 'test'
         13        CONCAT                                           ~6      '%242y%2407%24', !0
         14        CONCAT                                           ~7      ~6, '%24'
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !1, $8
    4    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'crypt'
         20        SEND_VAL                                                 'test'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $10     
         23        IS_IDENTICAL                                     ~11     !1, $10
         24        SEND_VAL                                                 ~11
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.71 ms | 1395 KiB | 23 Q