3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pw1 = 'my cool password keep it secrete please'; $pw2 = 'some other password'; $abc = strcmp($xyz, $pw1); if ($abc == 0) { echo "LOLPHP: yes '$pw1' is the same as '$xyz'\n"; } $def = strcmp($xyz, $pw2); if ($def == 0) { echo "LOLPHP: yep '$pw2' is the same as '$xyz'\n"; } $ghi = strcmp($pw1, $pw2); if ($ghi != 0) { echo "'$pw1' isn't the same as '$pw2'\n"; } else {echo "i am strcmp, and i declare that '$pw1' is the same as '$pw2'!!\n"; } $jkl = strcmp($xyz, $xyz); echo "jkl = $jkl\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 28
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 42
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 15
filename:       /in/8VbH8
function name:  (null)
number of ops:  58
compiled vars:  !0 = $pw1, !1 = $pw2, !2 = $abc, !3 = $xyz, !4 = $def, !5 = $ghi, !6 = $jkl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'my+cool+password+keep+it+secrete+please'
    5     1        ASSIGN                                                   !1, 'some+other+password'
    6     2        INIT_FCALL                                               'strcmp'
          3        SEND_VAR                                                 !3
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !2, $9
    7     7        IS_EQUAL                                                 !2, 0
          8      > JMPZ                                                     ~11, ->15
          9    >   ROPE_INIT                                     5  ~13     'LOLPHP%3A+yes+%27'
         10        ROPE_ADD                                      1  ~13     ~13, !0
         11        ROPE_ADD                                      2  ~13     ~13, '%27+is+the+same+as+%27'
         12        ROPE_ADD                                      3  ~13     ~13, !3
         13        ROPE_END                                      4  ~12     ~13, '%27%0A'
         14        ECHO                                                     ~12
    8    15    >   INIT_FCALL                                               'strcmp'
         16        SEND_VAR                                                 !3
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $16     
         19        ASSIGN                                                   !4, $16
    9    20        IS_EQUAL                                                 !4, 0
         21      > JMPZ                                                     ~18, ->28
         22    >   ROPE_INIT                                     5  ~20     'LOLPHP%3A+yep+%27'
         23        ROPE_ADD                                      1  ~20     ~20, !1
         24        ROPE_ADD                                      2  ~20     ~20, '%27+is+the+same+as+%27'
         25        ROPE_ADD                                      3  ~20     ~20, !3
         26        ROPE_END                                      4  ~19     ~20, '%27%0A'
         27        ECHO                                                     ~19
   10    28    >   INIT_FCALL                                               'strcmp'
         29        SEND_VAR                                                 !0
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                         $23     
         32        ASSIGN                                                   !5, $23
   11    33        IS_NOT_EQUAL                                             !5, 0
         34      > JMPZ                                                     ~25, ->42
         35    >   ROPE_INIT                                     5  ~27     '%27'
         36        ROPE_ADD                                      1  ~27     ~27, !0
         37        ROPE_ADD                                      2  ~27     ~27, '%27+isn%27t+the+same+as+%27'
         38        ROPE_ADD                                      3  ~27     ~27, !1
         39        ROPE_END                                      4  ~26     ~27, '%27%0A'
         40        ECHO                                                     ~26
         41      > JMP                                                      ->48
   12    42    >   ROPE_INIT                                     5  ~31     'i+am+strcmp%2C+and+i+declare+that+%27'
         43        ROPE_ADD                                      1  ~31     ~31, !0
         44        ROPE_ADD                                      2  ~31     ~31, '%27+is+the+same+as+%27'
         45        ROPE_ADD                                      3  ~31     ~31, !1
         46        ROPE_END                                      4  ~30     ~31, '%27%21%21%0A'
         47        ECHO                                                     ~30
   14    48    >   INIT_FCALL                                               'strcmp'
         49        SEND_VAR                                                 !3
         50        SEND_VAR                                                 !3
         51        DO_ICALL                                         $34     
         52        ASSIGN                                                   !6, $34
   15    53        ROPE_INIT                                     3  ~37     'jkl+%3D+'
         54        ROPE_ADD                                      1  ~37     ~37, !6
         55        ROPE_END                                      2  ~36     ~37, '%0A'
         56        ECHO                                                     ~36
         57      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.64 ms | 1405 KiB | 15 Q