3v4l.org

run code in 500+ 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 = 12
Branch analysis from position: 9
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/aZcYC
function name:  (null)
number of ops:  18
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, ->12
    7     9    >   ECHO                                                         'PANIC'
    8    10      > INIT_FCALL                                                   'exit'
         11*       DO_ICALL                                                     
   11    12    >   IS_EQUAL                                                     !0, !1
         13      > JMPZ                                                         ~9, ->16
   12    14    >   ECHO                                                         'Access+granted.'
   11    15      > JMP                                                          ->17
   14    16    >   ECHO                                                         'Access+denied.'
   15    17    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.58 ms | 2752 KiB | 14 Q