3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xyz[]="a"; var_dump($xyz); if($xyz != '') { echo "xyz is not empty! good to go!\n"; $abc = strcmp($xyz, 'my cool password keep it secrete please'); if ($abc == 0) { echo "yep that is the right password strcmp said so"; } $def = strcmp($xyz, 'some other password'); if ($def == 0) { echo "yep that password is correct too, strcmp said so"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 24
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 16
Branch analysis from position: 24
filename:       /in/blkdT
function name:  (null)
number of ops:  25
compiled vars:  !0 = $xyz, !1 = $abc, !2 = $def
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  'a'
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        IS_NOT_EQUAL                                             !0, ''
          6      > JMPZ                                                     ~5, ->24
    8     7    >   ECHO                                                     'xyz+is+not+empty%21+good+to+go%21%0A'
    9     8        INIT_FCALL                                               'strcmp'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'my+cool+password+keep+it+secrete+please'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
   10    13        IS_EQUAL                                                 !1, 0
         14      > JMPZ                                                     ~8, ->16
         15    >   ECHO                                                     'yep+that+is+the+right+password+strcmp+said+so'
   11    16    >   INIT_FCALL                                               'strcmp'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 'some+other+password'
         19        DO_ICALL                                         $9      
         20        ASSIGN                                                   !2, $9
   12    21        IS_EQUAL                                                 !2, 0
         22      > JMPZ                                                     ~11, ->24
         23    >   ECHO                                                     'yep+that+password+is+correct+too%2C+strcmp+said+so'
   13    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1395 KiB | 17 Q