3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.72 ms | 1400 KiB | 17 Q