3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bcrypt = '$2a$12$9SIfjYSVOTw8xFn98DadmOYKMSyReSktMvm/tfiLFDYb.oGvO8LEC'; $bcryptNeedsRehash = preg_replace('/\$\d{2}\$/', '\$' . 11 . '\$', $bcrypt); var_dump($bcrypt, $bcryptNeedsRehash); var_dump(password_hash('qG$4%7fM', PASSWORD_BCRYPT, array('cost'=>12)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TYX3i
function name:  (null)
number of ops:  20
compiled vars:  !0 = $bcrypt, !1 = $bcryptNeedsRehash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%242a%2412%249SIfjYSVOTw8xFn98DadmOYKMSyReSktMvm%2FtfiLFDYb.oGvO8LEC'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%24%5Cd%7B2%7D%5C%24%2F'
          3        SEND_VAL                                                 '%5C%2411%5C%24'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'password_hash'
         13        SEND_VAL                                                 'qG%244%257fM'
         14        SEND_VAL                                                 '2y'
         15        SEND_VAL                                                 <array>
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.01 ms | 1395 KiB | 19 Q