3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dovecot_pw = '{SHA512-CRYPT}$6$rounds=8000$kOIAPAIzsgLJSTTP$7LIscGpSgWgKfR6l1ZrArkGa.p7MUgl1WT9t/K/lgPhsnggXdCuQ7cEJ.qLoXKEn61DlZrjSu4ryEGUbg50rc/'; $internal = preg_replace('/^{SHA512-CRYPT}/', '', $dovecot_pw); var_dump( $dovecot_pw, $internal, password_verify('foobar', $internal) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gNp9J
function name:  (null)
number of ops:  17
compiled vars:  !0 = $dovecot_pw, !1 = $internal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7BSHA512-CRYPT%7D%246%24rounds%3D8000%24kOIAPAIzsgLJSTTP%247LIscGpSgWgKfR6l1ZrArkGa.p7MUgl1WT9t%2FK%2FlgPhsnggXdCuQ7cEJ.qLoXKEn61DlZrjSu4ryEGUbg50rc%2F'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5E%7BSHA512-CRYPT%7D%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        INIT_FCALL                                               'var_dump'
    7     8        SEND_VAR                                                 !0
    8     9        SEND_VAR                                                 !1
    9    10        INIT_FCALL                                               'password_verify'
         11        SEND_VAL                                                 'foobar'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.99 ms | 1394 KiB | 19 Q