3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "Date fiind următoarele variabile inițializate cu următoarele valori: \n\n"; $var1 = md5('240610708'); $var2 = md5('QNKCDZO'); echo "\$var1 = md5('240610708') = " . $var1 . "\n"; echo "\$var2 = md5('QNKCDZO') = " . $var2 . "\n"; echo "De ce, totuși:\n\n"; echo "var_dump(md5('240610708') == md5('QNKCDZO')) = \n\t "; var_dump(md5('240610708') == md5('QNKCDZO')); echo "\n\nÎ: \tDe ce cele 2 hashuri sunt văzute ca 'egale'?\n\n"; echo "\n\nR: \tPentru că sunt evaluate ca întregi:\n\n"; echo "\t++\$var2 = " . ++$var1 . "\n"; echo "\t++\$var2 = " . ++$var2 . "\n";
based on o3Tp0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6jOaO
function name:  (null)
number of ops:  38
compiled vars:  !0 = $var1, !1 = $var2
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ECHO                                                     'Date+fiind+urm%C4%83toarele+variabile+ini%C8%9Bializate+cu+urm%C4%83toarele+valori%3A+%0A%0A'
   3     1        INIT_FCALL                                               'md5'
         2        SEND_VAL                                                 '240610708'
         3        DO_ICALL                                         $2      
         4        ASSIGN                                                   !0, $2
   4     5        INIT_FCALL                                               'md5'
         6        SEND_VAL                                                 'QNKCDZO'
         7        DO_ICALL                                         $4      
         8        ASSIGN                                                   !1, $4
   5     9        CONCAT                                           ~6      '%24var1+%3D+md5%28%27240610708%27%29+%3D+', !0
        10        CONCAT                                           ~7      ~6, '%0A'
        11        ECHO                                                     ~7
   6    12        CONCAT                                           ~8      '%24var2+%3D+md5%28%27QNKCDZO%27%29+%3D+', !1
        13        CONCAT                                           ~9      ~8, '%0A'
        14        ECHO                                                     ~9
   8    15        ECHO                                                     'De+ce%2C+totu%C8%99i%3A%0A%0A'
   9    16        ECHO                                                     'var_dump%28md5%28%27240610708%27%29+%3D%3D+md5%28%27QNKCDZO%27%29%29+%3D+%0A%09+'
  10    17        INIT_FCALL                                               'var_dump'
        18        INIT_FCALL                                               'md5'
        19        SEND_VAL                                                 '240610708'
        20        DO_ICALL                                         $10     
        21        INIT_FCALL                                               'md5'
        22        SEND_VAL                                                 'QNKCDZO'
        23        DO_ICALL                                         $11     
        24        IS_EQUAL                                         ~12     $10, $11
        25        SEND_VAL                                                 ~12
        26        DO_ICALL                                                 
  12    27        ECHO                                                     '%0A%0A%C3%8E%3A+%09De+ce+cele+2+hashuri+sunt+v%C4%83zute+ca+%27egale%27%3F%0A%0A'
  13    28        ECHO                                                     '%0A%0AR%3A+%09Pentru+c%C4%83+sunt+evaluate+ca+%C3%AEntregi%3A%0A%0A'
  14    29        PRE_INC                                          $14     !0
        30        CONCAT                                           ~15     '%09%2B%2B%24var2+%3D+', $14
        31        CONCAT                                           ~16     ~15, '%0A'
        32        ECHO                                                     ~16
  15    33        PRE_INC                                          $17     !1
        34        CONCAT                                           ~18     '%09%2B%2B%24var2+%3D+', $17
        35        CONCAT                                           ~19     ~18, '%0A'
        36        ECHO                                                     ~19
        37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0