3v4l.org

run code in 300+ PHP versions simultaneously
<?php $plain = 'hello'; $hash = crypt( $plain, '$5$rounds=1000$'."T\xA2\x9D]\x1A\xD30B%H\xEB\xBEF<\xC8\x92" ); echo "has algo: ", var_dump(strlen($hash) > 13), "hash : ", var_dump($hash), "true : ", var_dump($hash === crypt($plain, $hash)) ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lkDeM
function name:  (null)
number of ops:  29
compiled vars:  !0 = $plain, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hello'
    4     1        INIT_FCALL                                               'crypt'
    5     2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%245%24rounds%3D1000%24T%A2%9D%5D%1A%D30B%25H%EB%BEF%3C%C8%92'
          4        DO_ICALL                                         $3      
    4     5        ASSIGN                                                   !1, $3
    8     6        ECHO                                                     'has+algo%3A+'
          7        INIT_FCALL                                               'var_dump'
          8        STRLEN                                           ~5      !1
          9        IS_SMALLER                                       ~6      13, ~5
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        ECHO                                                     $7
    9    13        ECHO                                                     'hash++++%3A+'
         14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $8      
         17        ECHO                                                     $8
   10    18        ECHO                                                     'true++++%3A+'
         19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'crypt'
         21        SEND_VAR                                                 !0
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $9      
         24        IS_IDENTICAL                                     ~10     !1, $9
         25        SEND_VAL                                                 ~10
         26        DO_ICALL                                         $11     
         27        ECHO                                                     $11
   11    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.41 ms | 1400 KiB | 17 Q