3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo crypt('meow', '$2y$05' . str_repeat('.', 20) . '//meow'), PHP_EOL; // salt: ....................// echo crypt('meow', '$2y$05' . str_repeat('.', 20) . '//woof'), PHP_EOL; // salt: ....................// echo crypt('meow', '$2y$05' . str_repeat('.', 20) . '//oink'), PHP_EOL; // salt: ....................// echo PHP_EOL, '###########################', PHP_EOL, PHP_EOL; echo $meow = crypt('meow', '$2y$05$' . str_repeat('.', 20) . '/meow'), PHP_EOL; // salt: ..................../m echo $woof = crypt('meow', '$2y$05$' . str_repeat('.', 20) . '/woof'), PHP_EOL; // salt: ..................../w echo $oink = crypt('meow', '$2y$05$' . str_repeat('.', 20) . '/oink'), PHP_EOL; // salt: ..................../o echo PHP_EOL, '###########################', PHP_EOL, PHP_EOL; echo crypt('meow', $meow), PHP_EOL; // salt: ..................../m echo crypt('meow', $woof), PHP_EOL; // salt: ..................../w echo crypt('meow', $oink), PHP_EOL; // salt: ..................../o echo PHP_EOL, '###########################', PHP_EOL, PHP_EOL; var_dump( $meow === crypt('meow', $meow), $woof === crypt('meow', $woof), $oink === crypt('meow', $oink) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D2Nj2
function name:  (null)
number of ops:  126
compiled vars:  !0 = $meow, !1 = $woof, !2 = $oink
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'crypt'
          1        SEND_VAL                                                 'meow'
          2        INIT_FCALL                                               'str_repeat'
          3        SEND_VAL                                                 '.'
          4        SEND_VAL                                                 20
          5        DO_ICALL                                         $3      
          6        CONCAT                                           ~4      '%242y%2405', $3
          7        CONCAT                                           ~5      ~4, '%2F%2Fmeow'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
         11        ECHO                                                     '%0A'
    4    12        INIT_FCALL                                               'crypt'
         13        SEND_VAL                                                 'meow'
         14        INIT_FCALL                                               'str_repeat'
         15        SEND_VAL                                                 '.'
         16        SEND_VAL                                                 20
         17        DO_ICALL                                         $7      
         18        CONCAT                                           ~8      '%242y%2405', $7
         19        CONCAT                                           ~9      ~8, '%2F%2Fwoof'
         20        SEND_VAL                                                 ~9
         21        DO_ICALL                                         $10     
         22        ECHO                                                     $10
         23        ECHO                                                     '%0A'
    5    24        INIT_FCALL                                               'crypt'
         25        SEND_VAL                                                 'meow'
         26        INIT_FCALL                                               'str_repeat'
         27        SEND_VAL                                                 '.'
         28        SEND_VAL                                                 20
         29        DO_ICALL                                         $11     
         30        CONCAT                                           ~12     '%242y%2405', $11
         31        CONCAT                                           ~13     ~12, '%2F%2Foink'
         32        SEND_VAL                                                 ~13
         33        DO_ICALL                                         $14     
         34        ECHO                                                     $14
         35        ECHO                                                     '%0A'
    7    36        ECHO                                                     '%0A'
         37        ECHO                                                     '%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23'
         38        ECHO                                                     '%0A'
         39        ECHO                                                     '%0A'
    9    40        INIT_FCALL                                               'crypt'
         41        SEND_VAL                                                 'meow'
         42        INIT_FCALL                                               'str_repeat'
         43        SEND_VAL                                                 '.'
         44        SEND_VAL                                                 20
         45        DO_ICALL                                         $15     
         46        CONCAT                                           ~16     '%242y%2405%24', $15
         47        CONCAT                                           ~17     ~16, '%2Fmeow'
         48        SEND_VAL                                                 ~17
         49        DO_ICALL                                         $18     
         50        ASSIGN                                           ~19     !0, $18
         51        ECHO                                                     ~19
         52        ECHO                                                     '%0A'
   10    53        INIT_FCALL                                               'crypt'
         54        SEND_VAL                                                 'meow'
         55        INIT_FCALL                                               'str_repeat'
         56        SEND_VAL                                                 '.'
         57        SEND_VAL                                                 20
         58        DO_ICALL                                         $20     
         59        CONCAT                                           ~21     '%242y%2405%24', $20
         60        CONCAT                                           ~22     ~21, '%2Fwoof'
         61        SEND_VAL                                                 ~22
         62        DO_ICALL                                         $23     
         63        ASSIGN                                           ~24     !1, $23
         64        ECHO                                                     ~24
         65        ECHO                                                     '%0A'
   11    66        INIT_FCALL                                               'crypt'
         67        SEND_VAL                                                 'meow'
         68        INIT_FCALL                                               'str_repeat'
         69        SEND_VAL                                                 '.'
         70        SEND_VAL                                                 20
         71        DO_ICALL                                         $25     
         72        CONCAT                                           ~26     '%242y%2405%24', $25
         73        CONCAT                                           ~27     ~26, '%2Foink'
         74        SEND_VAL                                                 ~27
         75        DO_ICALL                                         $28     
         76        ASSIGN                                           ~29     !2, $28
         77        ECHO                                                     ~29
         78        ECHO                                                     '%0A'
   13    79        ECHO                                                     '%0A'
         80        ECHO                                                     '%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23'
         81        ECHO                                                     '%0A'
         82        ECHO                                                     '%0A'
   15    83        INIT_FCALL                                               'crypt'
         84        SEND_VAL                                                 'meow'
         85        SEND_VAR                                                 !0
         86        DO_ICALL                                         $30     
         87        ECHO                                                     $30
         88        ECHO                                                     '%0A'
   16    89        INIT_FCALL                                               'crypt'
         90        SEND_VAL                                                 'meow'
         91        SEND_VAR                                                 !1
         92        DO_ICALL                                         $31     
         93        ECHO                                                     $31
         94        ECHO                                                     '%0A'
   17    95        INIT_FCALL                                               'crypt'
         96        SEND_VAL                                                 'meow'
         97        SEND_VAR                                                 !2
         98        DO_ICALL                                         $32     
         99        ECHO                                                     $32
        100        ECHO                                                     '%0A'
   19   101        ECHO                                                     '%0A'
        102        ECHO                                                     '%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23'
        103        ECHO                                                     '%0A'
        104        ECHO                                                     '%0A'
   21   105        INIT_FCALL                                               'var_dump'
   22   106        INIT_FCALL                                               'crypt'
        107        SEND_VAL                                                 'meow'
        108        SEND_VAR                                                 !0
        109        DO_ICALL                                         $33     
        110        IS_IDENTICAL                                     ~34     !0, $33
        111        SEND_VAL                                                 ~34
   24   112        INIT_FCALL                                               'crypt'
        113        SEND_VAL                                                 'meow'
        114        SEND_VAR                                                 !1
        115        DO_ICALL                                         $35     
        116        IS_IDENTICAL                                     ~36     !1, $35
        117        SEND_VAL                                                 ~36
   26   118        INIT_FCALL                                               'crypt'
        119        SEND_VAL                                                 'meow'
        120        SEND_VAR                                                 !2
        121        DO_ICALL                                         $37     
        122        IS_IDENTICAL                                     ~38     !2, $37
        123        SEND_VAL                                                 ~38
        124        DO_ICALL                                                 
   27   125      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.28 ms | 1404 KiB | 19 Q