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 "yes '$pw1' is the same as '$xyz'\n"; } $def = strcmp($xyz, $pw2); if ($def == 0) { echo "yep '$pw2' is the same as '$xyz'\n"; } $ghi = strcmp($pw1, $pw2); if ($ghi != 0) { echo "weird '$pw1' isn't the same as '$pw2'\n"; } else {echo "i am strcmp, and i declare that '$pw1' is the same as '$pw2'!!\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 56
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 36
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 50
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
Branch analysis from position: 23
Branch analysis from position: 56
filename:       /in/upEbS
function name:  (null)
number of ops:  57
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, ->56
    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, ->23
         17    >   ROPE_INIT                                     5  ~15     'yes+%27'
         18        ROPE_ADD                                      1  ~15     ~15, !1
         19        ROPE_ADD                                      2  ~15     ~15, '%27+is+the+same+as+%27'
         20        ROPE_ADD                                      3  ~15     ~15, !0
         21        ROPE_END                                      4  ~14     ~15, '%27%0A'
         22        ECHO                                                     ~14
   13    23    >   INIT_FCALL                                               'strcmp'
         24        SEND_VAR                                                 !0
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $18     
         27        ASSIGN                                                   !4, $18
   14    28        IS_EQUAL                                                 !4, 0
         29      > JMPZ                                                     ~20, ->36
         30    >   ROPE_INIT                                     5  ~22     'yep+%27'
         31        ROPE_ADD                                      1  ~22     ~22, !2
         32        ROPE_ADD                                      2  ~22     ~22, '%27+is+the+same+as+%27'
         33        ROPE_ADD                                      3  ~22     ~22, !0
         34        ROPE_END                                      4  ~21     ~22, '%27%0A'
         35        ECHO                                                     ~21
   15    36    >   INIT_FCALL                                               'strcmp'
         37        SEND_VAR                                                 !1
         38        SEND_VAR                                                 !2
         39        DO_ICALL                                         $25     
         40        ASSIGN                                                   !5, $25
   16    41        IS_NOT_EQUAL                                             !5, 0
         42      > JMPZ                                                     ~27, ->50
         43    >   ROPE_INIT                                     5  ~29     'weird+%27'
         44        ROPE_ADD                                      1  ~29     ~29, !1
         45        ROPE_ADD                                      2  ~29     ~29, '%27+isn%27t+the+same+as+%27'
         46        ROPE_ADD                                      3  ~29     ~29, !2
         47        ROPE_END                                      4  ~28     ~29, '%27%0A'
         48        ECHO                                                     ~28
         49      > JMP                                                      ->56
   17    50    >   ROPE_INIT                                     5  ~33     'i+am+strcmp%2C+and+i+declare+that+%27'
         51        ROPE_ADD                                      1  ~33     ~33, !1
         52        ROPE_ADD                                      2  ~33     ~33, '%27+is+the+same+as+%27'
         53        ROPE_ADD                                      3  ~33     ~33, !2
         54        ROPE_END                                      4  ~32     ~33, '%27%21%21%0A'
         55        ECHO                                                     ~32
   18    56    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.42 ms | 1400 KiB | 17 Q