3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = 'foo'; $hash1 = password_hash($pass, PASSWORD_DEFAULT); $hash2 = password_hash($pass, PASSWORD_DEFAULT); if ($hash1 != $hash2) { echo "Yivi was right. I shouldn't be giving this advise to strangers on the web."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/jtBKN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $pass, !1 = $hash1, !2 = $hash2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    4     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '2y'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'password_hash'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '2y'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    7    11        IS_NOT_EQUAL                                             !1, !2
         12      > JMPZ                                                     ~8, ->14
    8    13    >   ECHO                                                     'Yivi+was+right.+I+shouldn%27t+be+giving+this+advise+to+strangers+on+the+web.'
    9    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.3 ms | 1009 KiB | 14 Q