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"; $pw1 = 'my cool password keep it secrete please'; $pw2 = 'some other password'; $abc = strcmp($xyz, $pw1); if ($abc == 0) { echo "yep $pw1 is the right password strcmp said so"; } $def = strcmp($xyz, $pw2); if ($def == 0) { echo "yep $pw2 is the correct password too, strcmp said so"; } $ghi = strcmp($pw1, $pw2); if ($ghi != 0) { echo "weird '$pw1' isn't the same as '$pw2'"; } else {echo "i am strcmp, and i declare that '$pw1' is the same as '$pw2'!!"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 52
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 46
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 21
Branch analysis from position: 52
filename:       /in/s8cHW
function name:  (null)
number of ops:  53
compiled vars:  !0 = $xyz, !1 = $pw1, !2 = $pw2, !3 = $abc, !4 = $def, !5 = $ghi
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                                                     ~8, ->52
    8     7    >   ECHO                                                     'xyz+is+not+empty%21+good+to+go%21%0A'
    9     8        ASSIGN                                                   !1, 'my+cool+password+keep+it+secrete+please'
   10     9        ASSIGN                                                   !2, 'some+other+password'
   11    10        INIT_FCALL                                               'strcmp'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
   12    15        IS_EQUAL                                                 !3, 0
         16      > JMPZ                                                     ~13, ->21
         17    >   ROPE_INIT                                     3  ~15     'yep+'
         18        ROPE_ADD                                      1  ~15     ~15, !1
         19        ROPE_END                                      2  ~14     ~15, '+is+the+right+password+strcmp+said+so'
         20        ECHO                                                     ~14
   13    21    >   INIT_FCALL                                               'strcmp'
         22        SEND_VAR                                                 !0
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $17     
         25        ASSIGN                                                   !4, $17
   14    26        IS_EQUAL                                                 !4, 0
         27      > JMPZ                                                     ~19, ->32
         28    >   ROPE_INIT                                     3  ~21     'yep+'
         29        ROPE_ADD                                      1  ~21     ~21, !2
         30        ROPE_END                                      2  ~20     ~21, '+is+the+correct+password+too%2C+strcmp+said+so'
         31        ECHO                                                     ~20
   15    32    >   INIT_FCALL                                               'strcmp'
         33        SEND_VAR                                                 !1
         34        SEND_VAR                                                 !2
         35        DO_ICALL                                         $23     
         36        ASSIGN                                                   !5, $23
   16    37        IS_NOT_EQUAL                                             !5, 0
         38      > JMPZ                                                     ~25, ->46
         39    >   ROPE_INIT                                     5  ~27     'weird+%27'
         40        ROPE_ADD                                      1  ~27     ~27, !1
         41        ROPE_ADD                                      2  ~27     ~27, '%27+isn%27t+the+same+as+%27'
         42        ROPE_ADD                                      3  ~27     ~27, !2
         43        ROPE_END                                      4  ~26     ~27, '%27'
         44        ECHO                                                     ~26
         45      > JMP                                                      ->52
   17    46    >   ROPE_INIT                                     5  ~31     'i+am+strcmp%2C+and+i+declare+that+%27'
         47        ROPE_ADD                                      1  ~31     ~31, !1
         48        ROPE_ADD                                      2  ~31     ~31, '%27+is+the+same+as+%27'
         49        ROPE_ADD                                      3  ~31     ~31, !2
         50        ROPE_END                                      4  ~30     ~31, '%27%21%21'
         51        ECHO                                                     ~30
   18    52    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.26 ms | 1400 KiB | 17 Q