3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $caratteri_disponibili ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"; $lunghezza= 50; $code = ""; for($i = 0; $i<$lunghezza; $i++){ $code = $code.substr($caratteri_disponibili,rand(0,strlen($caratteri_disponibili)-1),1); } $hashed_password = crypt('mypassword',$code); $input = "Hey"; if (crypt($input, $hashed_password) == $hashed_password) { echo "Password verified!"; } var_dump($hashed_password, crypt($input, $hashed_password));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 8
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 37
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 8
Branch analysis from position: 24
Branch analysis from position: 8
filename:       /in/BVm6Q
function name:  (null)
number of ops:  46
compiled vars:  !0 = $caratteri_disponibili, !1 = $lunghezza, !2 = $code, !3 = $i, !4 = $hashed_password, !5 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'
    4     4        ASSIGN                                                   !1, 50
    5     5        ASSIGN                                                   !2, ''
    6     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->22
    7     8    >   INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'rand'
         11        SEND_VAL                                                 0
         12        STRLEN                                           ~11     !0
         13        SUB                                              ~12     ~11, 1
         14        SEND_VAL                                                 ~12
         15        DO_ICALL                                         $13     
         16        SEND_VAR                                                 $13
         17        SEND_VAL                                                 1
         18        DO_ICALL                                         $14     
         19        CONCAT                                           ~15     !2, $14
         20        ASSIGN                                                   !2, ~15
    6    21        PRE_INC                                                  !3
         22    >   IS_SMALLER                                               !3, !1
         23      > JMPNZ                                                    ~18, ->8
    9    24    >   INIT_FCALL                                               'crypt'
         25        SEND_VAL                                                 'mypassword'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                         $19     
         28        ASSIGN                                                   !4, $19
   15    29        ASSIGN                                                   !5, 'Hey'
   16    30        INIT_FCALL                                               'crypt'
         31        SEND_VAR                                                 !5
         32        SEND_VAR                                                 !4
         33        DO_ICALL                                         $22     
         34        IS_EQUAL                                                 !4, $22
         35      > JMPZ                                                     ~23, ->37
   17    36    >   ECHO                                                     'Password+verified%21'
   22    37    >   INIT_FCALL                                               'var_dump'
         38        SEND_VAR                                                 !4
         39        INIT_FCALL                                               'crypt'
         40        SEND_VAR                                                 !5
         41        SEND_VAR                                                 !4
         42        DO_ICALL                                         $24     
         43        SEND_VAR                                                 $24
         44        DO_ICALL                                                 
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1400 KiB | 23 Q