3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(strcmp($password, $_POST['password'] == 0)or strcmp($password,array())==0 or[''] == 0) { echo "true"; } else { echo "false"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 14
filename:       /in/Ege4F
function name:  (null)
number of ops:  21
compiled vars:  !0 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strcmp'
          1        SEND_VAR                                                 !0
          2        FETCH_R                      global              ~1      '_POST'
          3        FETCH_DIM_R                                      ~2      ~1, 'password'
          4        IS_EQUAL                                         ~3      ~2, 0
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7      > JMPNZ_EX                                         ~5      $4, ->14
          8    >   INIT_FCALL                                               'strcmp'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <array>
         11        DO_ICALL                                         $6      
         12        IS_EQUAL                                         ~7      $6, 0
         13        BOOL                                             ~5      ~7
         14    > > JMPNZ_EX                                         ~5      ~5, ->16
         15    >   BOOL                                             ~5      <false>
         16    > > JMPZ                                                     ~5, ->19
    3    17    >   ECHO                                                     'true'
         18      > JMP                                                      ->20
    5    19    >   ECHO                                                     'false'
    6    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.93 ms | 1395 KiB | 15 Q