3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = "test"; $password = "\n"; $authString = $username . " " . md5($password); $file = "test\n"; echo $authString; if (strpos($file, $authString) !== FALSE ){ echo "LOGIN SUCCESS"; } else { echo 'INCORRECT CREDENTIALS. TRY AGAIN'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HpYo1
function name:  (null)
number of ops:  20
compiled vars:  !0 = $username, !1 = $password, !2 = $authString, !3 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test'
    3     1        ASSIGN                                                   !1, '%0A'
    4     2        CONCAT                                           ~6      !0, '+'
          3        INIT_FCALL                                               'md5'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        CONCAT                                           ~8      ~6, $7
          7        ASSIGN                                                   !2, ~8
    5     8        ASSIGN                                                   !3, 'test%0A'
    7     9        ECHO                                                     !2
    9    10        INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !3
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $11     
         14        TYPE_CHECK                                  1018          $11
         15      > JMPZ                                                     ~12, ->18
   10    16    >   ECHO                                                     'LOGIN+SUCCESS'
         17      > JMP                                                      ->19
   12    18    >   ECHO                                                     'INCORRECT+CREDENTIALS.+TRY+AGAIN'
   13    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.46 ms | 1386 KiB | 17 Q