3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = mcrypt_create_iv(22, MCRYPT_DEV_URANDOM); $salt = base64_encode($salt); $salt = str_replace('+', '.', $salt); $hash = crypt('rasmuslerdorf', '$2y$10$'.$salt.'$'); echo $hash; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B4acR
function name:  (null)
number of ops:  25
compiled vars:  !0 = $salt, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
          1        SEND_VAL_EX                                              22
          2        FETCH_CONSTANT                                   ~2      'MCRYPT_DEV_URANDOM'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !0, $3
    4     6        INIT_FCALL                                               'base64_encode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    5    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '%2B'
         12        SEND_VAL                                                 '.'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !0, $7
    6    16        INIT_FCALL                                               'crypt'
         17        SEND_VAL                                                 'rasmuslerdorf'
         18        CONCAT                                           ~9      '%242y%2410%24', !0
         19        CONCAT                                           ~10     ~9, '%24'
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                         $11     
         22        ASSIGN                                                   !1, $11
    8    23        ECHO                                                     !1
    9    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.91 ms | 1395 KiB | 19 Q