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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.61 ms | 1400 KiB | 17 Q