3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2y string: $test\n"; $pass = ($test == $hash); echo "$2y test status: " . ( $pass ? "Pass" : "Fail") . "\n"; $hash = '$2a$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2a string: $test\n"; $pass = ($test == $hash); echo "$2a test status: " . ( $pass ? "Pass" : "Fail") . "\n"; $hash = '$2x$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); echo "$2x string: $test\n"; $pass = ($test == $hash); echo "$2x test status: " . ( $pass ? "Pass" : "Fail") . "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 53
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 53
Branch analysis from position: 51
Branch analysis from position: 53
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
Branch analysis from position: 34
filename:       /in/cSjAD
function name:  (null)
number of ops:  58
compiled vars:  !0 = $hash, !1 = $test, !2 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%242y%2404%24usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'
    3     1        INIT_FCALL                                               'crypt'
          2        SEND_VAL                                                 'password'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        ROPE_INIT                                     3  ~7      '%242y+string%3A+'
          7        ROPE_ADD                                      1  ~7      ~7, !1
          8        ROPE_END                                      2  ~6      ~7, '%0A'
          9        ECHO                                                     ~6
    5    10        IS_EQUAL                                         ~9      !1, !0
         11        ASSIGN                                                   !2, ~9
    7    12      > JMPZ                                                     !2, ->15
         13    >   QM_ASSIGN                                        ~11     'Pass'
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~11     'Fail'
         16    >   CONCAT                                           ~12     '%242y+test+status%3A+', ~11
         17        CONCAT                                           ~13     ~12, '%0A'
         18        ECHO                                                     ~13
    9    19        ASSIGN                                                   !0, '%242a%2404%24usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'
   10    20        INIT_FCALL                                               'crypt'
         21        SEND_VAL                                                 'password'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $15     
         24        ASSIGN                                                   !1, $15
   11    25        ROPE_INIT                                     3  ~18     '%242a+string%3A+'
         26        ROPE_ADD                                      1  ~18     ~18, !1
         27        ROPE_END                                      2  ~17     ~18, '%0A'
         28        ECHO                                                     ~17
   12    29        IS_EQUAL                                         ~20     !1, !0
         30        ASSIGN                                                   !2, ~20
   14    31      > JMPZ                                                     !2, ->34
         32    >   QM_ASSIGN                                        ~22     'Pass'
         33      > JMP                                                      ->35
         34    >   QM_ASSIGN                                        ~22     'Fail'
         35    >   CONCAT                                           ~23     '%242a+test+status%3A+', ~22
         36        CONCAT                                           ~24     ~23, '%0A'
         37        ECHO                                                     ~24
   16    38        ASSIGN                                                   !0, '%242x%2404%24usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'
   17    39        INIT_FCALL                                               'crypt'
         40        SEND_VAL                                                 'password'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                         $26     
         43        ASSIGN                                                   !1, $26
   18    44        ROPE_INIT                                     3  ~29     '%242x+string%3A+'
         45        ROPE_ADD                                      1  ~29     ~29, !1
         46        ROPE_END                                      2  ~28     ~29, '%0A'
         47        ECHO                                                     ~28
   19    48        IS_EQUAL                                         ~31     !1, !0
         49        ASSIGN                                                   !2, ~31
   21    50      > JMPZ                                                     !2, ->53
         51    >   QM_ASSIGN                                        ~33     'Pass'
         52      > JMP                                                      ->54
         53    >   QM_ASSIGN                                        ~33     'Fail'
         54    >   CONCAT                                           ~34     '%242x+test+status%3A+', ~33
         55        CONCAT                                           ~35     ~34, '%0A'
         56        ECHO                                                     ~35
         57      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.95 ms | 1400 KiB | 15 Q