3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = true; $b = "ceva"; $c = 0; if (($a == $b) && ($b == $c)) { // daca sunt egale intre ele var_dump($a); var_dump($c); echo 'sunt egale'; } echo "\n\n\n"; if ((NULL == 0) && (NULL < -1)) { echo "0 e mai mic decat -1"; } echo "\n\n\n"; $string = "123abc"; $a = 123; $b = "123"; if (($a == $string) && ($b != $string)) { echo "$a == $string is true \n && $b != $string is true"; } echo "\n\n\n"; $s1 = " 6"; $s2 = "6"; if ($s1 == $s2) { echo "'$s1' == '$s2'"; } echo "\n\n\n"; $a = md5('240610708'); $b = md5('QNKCDZO'); if ($a == $b) { echo "$a\nsi\n$b\nsunt egale"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 36
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 47
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 63
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
Branch analysis from position: 47
Branch analysis from position: 36
Branch analysis from position: 26
Branch analysis from position: 18
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/gZaBD
function name:  (null)
number of ops:  64
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $string, !4 = $s1, !5 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                                   !1, 'ceva'
    4     2        ASSIGN                                                   !2, 0
    5     3        IS_EQUAL                                         ~9      !0, !1
          4      > JMPZ_EX                                          ~9      ~9, ->7
          5    >   IS_EQUAL                                         ~10     !1, !2
          6        BOOL                                             ~9      ~10
          7    > > JMPZ                                                     ~9, ->15
    6     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
    8    14        ECHO                                                     'sunt+egale'
   11    15    >   ECHO                                                     '%0A%0A%0A'
   13    16      > JMPZ                                                     <true>, ->18
   14    17    >   ECHO                                                     '0+e+mai+mic+decat+-1'
   17    18    >   ECHO                                                     '%0A%0A%0A'
   19    19        ASSIGN                                                   !3, '123abc'
   20    20        ASSIGN                                                   !0, 123
   21    21        ASSIGN                                                   !1, '123'
   22    22        IS_EQUAL                                         ~16     !0, !3
         23      > JMPZ_EX                                          ~16     ~16, ->26
         24    >   IS_NOT_EQUAL                                     ~17     !1, !3
         25        BOOL                                             ~16     ~17
         26    > > JMPZ                                                     ~16, ->36
   23    27    >   ROPE_INIT                                     8  ~19     !0
         28        ROPE_ADD                                      1  ~19     ~19, '+%3D%3D+'
         29        ROPE_ADD                                      2  ~19     ~19, !3
         30        ROPE_ADD                                      3  ~19     ~19, '+is+true+%0A+%26%26+'
         31        ROPE_ADD                                      4  ~19     ~19, !1
         32        ROPE_ADD                                      5  ~19     ~19, '+%21%3D+'
         33        ROPE_ADD                                      6  ~19     ~19, !3
         34        ROPE_END                                      7  ~18     ~19, '+is+true'
         35        ECHO                                                     ~18
   26    36    >   ECHO                                                     '%0A%0A%0A'
   28    37        ASSIGN                                                   !4, '+6'
   29    38        ASSIGN                                                   !5, '6'
   30    39        IS_EQUAL                                                 !4, !5
         40      > JMPZ                                                     ~25, ->47
   31    41    >   ROPE_INIT                                     5  ~27     '%27'
         42        ROPE_ADD                                      1  ~27     ~27, !4
         43        ROPE_ADD                                      2  ~27     ~27, '%27+%3D%3D+%27'
         44        ROPE_ADD                                      3  ~27     ~27, !5
         45        ROPE_END                                      4  ~26     ~27, '%27'
         46        ECHO                                                     ~26
   34    47    >   ECHO                                                     '%0A%0A%0A'
   36    48        INIT_FCALL                                               'md5'
         49        SEND_VAL                                                 '240610708'
         50        DO_ICALL                                         $30     
         51        ASSIGN                                                   !0, $30
   37    52        INIT_FCALL                                               'md5'
         53        SEND_VAL                                                 'QNKCDZO'
         54        DO_ICALL                                         $32     
         55        ASSIGN                                                   !1, $32
   38    56        IS_EQUAL                                                 !0, !1
         57      > JMPZ                                                     ~34, ->63
   39    58    >   ROPE_INIT                                     4  ~36     !0
         59        ROPE_ADD                                      1  ~36     ~36, '%0Asi%0A'
         60        ROPE_ADD                                      2  ~36     ~36, !1
         61        ROPE_END                                      3  ~35     ~36, '%0Asunt+egale'
         62        ECHO                                                     ~35
   40    63    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161 ms | 1400 KiB | 17 Q