3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("BLOWFISH_PRE", "$2y$05$"); define("BLOWFISH_SUF", "$"); function pwhash($password) { $salt = str_repeat('A', 21); return crypt($password, BLOWFISH_PRE . $salt . BLOWFISH_SUF); } var_dump(pwhash('test'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2tYTu
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'BLOWFISH_PRE'
          2        SEND_VAL                                                 '%242y%2405%24'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'BLOWFISH_SUF'
          6        SEND_VAL                                                 '%24'
          7        DO_ICALL                                                 
   12     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'pwhash'
         10        SEND_VAL                                                 'test'
         11        DO_FCALL                                      0  $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function pwhash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2tYTu
function name:  pwhash
number of ops:  16
compiled vars:  !0 = $password, !1 = $salt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'str_repeat'
          2        SEND_VAL                                                 'A'
          3        SEND_VAL                                                 21
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    8     6        INIT_FCALL                                               'crypt'
          7        SEND_VAR                                                 !0
          8        FETCH_CONSTANT                                   ~4      'BLOWFISH_PRE'
          9        CONCAT                                           ~5      ~4, !1
         10        FETCH_CONSTANT                                   ~6      'BLOWFISH_SUF'
         11        CONCAT                                           ~7      ~5, ~6
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
         14      > RETURN                                                   $8
    9    15*     > RETURN                                                   null

End of function pwhash

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.67 ms | 1012 KiB | 18 Q