3v4l.org

run code in 300+ PHP versions simultaneously
<?php $storedHash = "0e1234"; $inputHash = "0"; if (gettype($storedHash) !== "string" || gettype($inputHash) !== "string") { echo "PANIC"; die; } if ($storedHash === $inputHash) { echo "Access granted."; } else { echo "Access denied."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/2l8j0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $storedHash, !1 = $inputHash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0e1234'
    4     1        ASSIGN                                                   !1, '0'
    6     2        GET_TYPE                                         ~4      !0
          3        IS_NOT_IDENTICAL                                 ~5      ~4, 'string'
          4      > JMPNZ_EX                                         ~5      ~5, ->8
          5    >   GET_TYPE                                         ~6      !1
          6        IS_NOT_IDENTICAL                                 ~7      ~6, 'string'
          7        BOOL                                             ~5      ~7
          8    > > JMPZ                                                     ~5, ->11
    7     9    >   ECHO                                                     'PANIC'
    8    10      > EXIT                                                     
   11    11    >   IS_IDENTICAL                                             !0, !1
         12      > JMPZ                                                     ~8, ->15
   12    13    >   ECHO                                                     'Access+granted.'
         14      > JMP                                                      ->16
   14    15    >   ECHO                                                     'Access+denied.'
   15    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.71 ms | 1394 KiB | 13 Q