3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pw = "foo\xaabar"; var_dump(crypt($pw, '$2x$05$bar')); var_dump(crypt($pw, '$2a$05$bar')); var_dump(crypt($pw, '$2y$05$bar'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1Uua5
function name:  (null)
number of ops:  23
compiled vars:  !0 = $pw
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foo%AAbar'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'crypt'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '%242x%2405%24bar'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'crypt'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 '%242a%2405%24bar'
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'crypt'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 '%242y%2405%24bar'
         19        DO_ICALL                                         $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.97 ms | 1395 KiB | 17 Q