3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pinFromUser = "12345adb"; $pinWrongType = 12345; $pinCorrect = "12345"; var_dump([ ($pinFromUser == $pinWrongType), # Security issue. ($pinFromUser === $pinCorrect), # ok ("12345" === $pinCorrect) # ok ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bC94A
function name:  (null)
number of ops:  13
compiled vars:  !0 = $pinFromUser, !1 = $pinWrongType, !2 = $pinCorrect
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '12345adb'
    3     1        ASSIGN                                                   !1, 12345
    4     2        ASSIGN                                                   !2, '12345'
    6     3        INIT_FCALL                                               'var_dump'
    7     4        IS_EQUAL                                         ~6      !0, !1
          5        INIT_ARRAY                                       ~7      ~6
    8     6        IS_IDENTICAL                                     ~8      !0, !2
          7        ADD_ARRAY_ELEMENT                                ~7      ~8
    9     8        IS_IDENTICAL                                     ~9      !2, '12345'
          9        ADD_ARRAY_ELEMENT                                ~7      ~9
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
   10    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.71 ms | 1398 KiB | 15 Q