3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bcrypt = '$2a$12$9SIfjYSVOTw8xFn98DadmOYKMSyReSktMvm/tfiLFDYb.oGvO8LEC'; $bcryptNeedsRehash = preg_replace('/\$\d{2}\$/', '\$' . 12 . '\$', $bcrypt); var_dump($bcrypt, $bcryptNeedsRehash);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S3VGj
function name:  (null)
number of ops:  12
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%2412%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                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.02 ms | 1398 KiB | 17 Q