3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 64; $i < 80; ++$i) { echo "{$i}.\t".crypt(str_repeat('a', $i), '$2y$04$usesomesillystringforsalt$')."\n"; } $x = crypt("abc\0defg", '$2y$04$usesomesillystringforsalt$'); var_dump($x === crypt("abc", '$2y$04$usesomesillystringforsalt$'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
filename:       /in/61VZq
function name:  (null)
number of ops:  32
compiled vars:  !0 = $i, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 64
          1      > JMP                                                      ->16
    3     2    >   NOP                                                      
          3        FAST_CONCAT                                      ~3      !0, '.%09'
          4        INIT_FCALL                                               'crypt'
          5        INIT_FCALL                                               'str_repeat'
          6        SEND_VAL                                                 'a'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        SEND_VAL                                                 '%242y%2404%24usesomesillystringforsalt%24'
         11        DO_ICALL                                         $5      
         12        CONCAT                                           ~6      ~3, $5
         13        CONCAT                                           ~7      ~6, '%0A'
         14        ECHO                                                     ~7
    2    15        PRE_INC                                                  !0
         16    >   IS_SMALLER                                               !0, 80
         17      > JMPNZ                                                    ~9, ->2
    6    18    >   INIT_FCALL                                               'crypt'
         19        SEND_VAL                                                 'abc%00defg'
         20        SEND_VAL                                                 '%242y%2404%24usesomesillystringforsalt%24'
         21        DO_ICALL                                         $10     
         22        ASSIGN                                                   !1, $10
    7    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'crypt'
         25        SEND_VAL                                                 'abc'
         26        SEND_VAL                                                 '%242y%2404%24usesomesillystringforsalt%24'
         27        DO_ICALL                                         $12     
         28        IS_IDENTICAL                                     ~13     !1, $12
         29        SEND_VAL                                                 ~13
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.67 ms | 1396 KiB | 19 Q