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"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 16
filename:       /in/7BtWg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $xyz, !1 = $abc
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                                                     ~4, ->16
    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                                         $5      
         12        ASSIGN                                                   !1, $5
   10    13        IS_EQUAL                                                 !1, 0
         14      > JMPZ                                                     ~7, ->16
         15    >   ECHO                                                     'yep+that+is+the+right+password+strcmp+said+so'
   11    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.74 ms | 1395 KiB | 17 Q