3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password='test'; $prefix ='$2a$10$'; $salt = '123'; $hash = crypt($password, $prefix . $salt); printf("Hash %s (length %d)\n", $hash, strlen($hash));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fJfVH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $password, !1 = $prefix, !2 = $salt, !3 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test'
    3     1        ASSIGN                                                   !1, '%242a%2410%24'
    4     2        ASSIGN                                                   !2, '123'
    5     3        INIT_FCALL                                               'crypt'
          4        SEND_VAR                                                 !0
          5        CONCAT                                           ~7      !1, !2
          6        SEND_VAL                                                 ~7
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !3, $8
    6     9        INIT_FCALL                                               'printf'
         10        SEND_VAL                                                 'Hash+%25s+%28length+%25d%29%0A'
         11        SEND_VAR                                                 !3
         12        STRLEN                                           ~10     !3
         13        SEND_VAL                                                 ~10
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.85 ms | 1394 KiB | 17 Q