3v4l.org

run code in 300+ PHP versions simultaneously
<?php print(intval(md5('QNKCDZO')) . "\n"); print(md5('QNKCDZO') . "\n"); print(md5('240610708') . "\n"); printmd5('aabg7XSs'); printmd5('aabC9RqS'); var_dump(md5('QNKCDZO') === md5('QNKCDZO')); var_dump(md5('240610708') === md5('QNKCDZO')); var_dump(md5('aabg7XSs') === md5('aabC9RqS')); var_dump(sha1('aaroZmOk') === sha1('aaK1STfY')); var_dump(sha1('aaO8zKZF') === sha1('aa3OFF9m')); var_dump('0010e2' === '1e3'); var_dump('0x1234Ab' === '1193131'); var_dump('0xABCdef' === ' 0xABCdef'); function printmd5($str) { print($str . " => " . md5($str) . "\n"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8L45K
function name:  (null)
number of ops:  82
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'md5'
          1        SEND_VAL                                                 'QNKCDZO'
          2        DO_ICALL                                         $0      
          3        CAST                                          4  ~1      $0
          4        CONCAT                                           ~2      ~1, '%0A'
          5        ECHO                                                     ~2
    6     6        INIT_FCALL                                               'md5'
          7        SEND_VAL                                                 'QNKCDZO'
          8        DO_ICALL                                         $3      
          9        CONCAT                                           ~4      $3, '%0A'
         10        ECHO                                                     ~4
    7    11        INIT_FCALL                                               'md5'
         12        SEND_VAL                                                 '240610708'
         13        DO_ICALL                                         $5      
         14        CONCAT                                           ~6      $5, '%0A'
         15        ECHO                                                     ~6
    9    16        INIT_FCALL_BY_NAME                                       'printmd5'
         17        SEND_VAL_EX                                              'aabg7XSs'
         18        DO_FCALL                                      0          
   10    19        INIT_FCALL_BY_NAME                                       'printmd5'
         20        SEND_VAL_EX                                              'aabC9RqS'
         21        DO_FCALL                                      0          
   12    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'md5'
         24        SEND_VAL                                                 'QNKCDZO'
         25        DO_ICALL                                         $9      
         26        INIT_FCALL                                               'md5'
         27        SEND_VAL                                                 'QNKCDZO'
         28        DO_ICALL                                         $10     
         29        IS_IDENTICAL                                     ~11     $9, $10
         30        SEND_VAL                                                 ~11
         31        DO_ICALL                                                 
   14    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'md5'
         34        SEND_VAL                                                 '240610708'
         35        DO_ICALL                                         $13     
         36        INIT_FCALL                                               'md5'
         37        SEND_VAL                                                 'QNKCDZO'
         38        DO_ICALL                                         $14     
         39        IS_IDENTICAL                                     ~15     $13, $14
         40        SEND_VAL                                                 ~15
         41        DO_ICALL                                                 
   15    42        INIT_FCALL                                               'var_dump'
         43        INIT_FCALL                                               'md5'
         44        SEND_VAL                                                 'aabg7XSs'
         45        DO_ICALL                                         $17     
         46        INIT_FCALL                                               'md5'
         47        SEND_VAL                                                 'aabC9RqS'
         48        DO_ICALL                                         $18     
         49        IS_IDENTICAL                                     ~19     $17, $18
         50        SEND_VAL                                                 ~19
         51        DO_ICALL                                                 
   16    52        INIT_FCALL                                               'var_dump'
         53        INIT_FCALL                                               'sha1'
         54        SEND_VAL                                                 'aaroZmOk'
         55        DO_ICALL                                         $21     
         56        INIT_FCALL                                               'sha1'
         57        SEND_VAL                                                 'aaK1STfY'
         58        DO_ICALL                                         $22     
         59        IS_IDENTICAL                                     ~23     $21, $22
         60        SEND_VAL                                                 ~23
         61        DO_ICALL                                                 
   17    62        INIT_FCALL                                               'var_dump'
         63        INIT_FCALL                                               'sha1'
         64        SEND_VAL                                                 'aaO8zKZF'
         65        DO_ICALL                                         $25     
         66        INIT_FCALL                                               'sha1'
         67        SEND_VAL                                                 'aa3OFF9m'
         68        DO_ICALL                                         $26     
         69        IS_IDENTICAL                                     ~27     $25, $26
         70        SEND_VAL                                                 ~27
         71        DO_ICALL                                                 
   18    72        INIT_FCALL                                               'var_dump'
         73        SEND_VAL                                                 <false>
         74        DO_ICALL                                                 
   19    75        INIT_FCALL                                               'var_dump'
         76        SEND_VAL                                                 <false>
         77        DO_ICALL                                                 
   20    78        INIT_FCALL                                               'var_dump'
         79        SEND_VAL                                                 <false>
         80        DO_ICALL                                                 
   25    81      > RETURN                                                   1

Function printmd5:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8L45K
function name:  printmd5
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
   23     1        CONCAT                                           ~1      !0, '+%3D%3E+'
          2        INIT_FCALL                                               'md5'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      ~1, $2
          6        CONCAT                                           ~4      ~3, '%0A'
          7        ECHO                                                     ~4
   25     8      > RETURN                                                   null

End of function printmd5

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.61 ms | 1404 KiB | 19 Q