3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = '12345678901234567890'; $pw = 'test'; var_dump(PHP_VERSION); echo "Hash with salt: " . crypt($pw, '$2a$11$' . $salt) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2QM1F
function name:  (null)
number of ops:  14
compiled vars:  !0 = $salt, !1 = $pw
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12345678901234567890'
    4     1        ASSIGN                                                   !1, 'test'
    6     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAL                                                 '8.0.0'
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'crypt'
          6        SEND_VAR                                                 !1
          7        CONCAT                                           ~5      '%242a%2411%24', !0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      'Hash+with+salt%3A+', $6
         11        CONCAT                                           ~8      ~7, '%0A'
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.27 ms | 1394 KiB | 17 Q