3v4l.org

run code in 300+ PHP versions simultaneously
<?php function d2m($d) { $m = ''; foreach (str_split($d, 2) as $h) { $m .= chr(base_convert($h, 16, 10)); } return $m; } $d1 = 'd131dd02c5e6eec4693d9a0698aff95c2fcab58712467eab4004583eb8fb7f8955ad340609f4b30283e488832571415a085125e8f7cdc99fd91dbdf280373c5bd8823e3156348f5bae6dacd436c919c6dd53e2b487da03fd02396306d248cda0e99f33420f577ee8ce54b67080a80d1ec69821bcb6a8839396f9652b6ff72a70'; $d2 = 'd131dd02c5e6eec4693d9a0698aff95c2fcab50712467eab4004583eb8fb7f8955ad340609f4b30283e4888325f1415a085125e8f7cdc99fd91dbd7280373c5bd8823e3156348f5bae6dacd436c919c6dd53e23487da03fd02396306d248cda0e99f33420f577ee8ce54b67080280d1ec69821bcb6a8839396f965ab6ff72a70'; $message1 = d2m($d1); $message2 = d2m($d2); echo $message1 . "\r\n"; echo $message2 . "\r\n"; var_dump($message1 == $message2); //bool(false) var_dump(md5($message1) == md5($message2)); //bool(true)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iRK5k
function name:  (null)
number of ops:  29
compiled vars:  !0 = $d1, !1 = $d2, !2 = $message1, !3 = $message2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, 'd131dd02c5e6eec4693d9a0698aff95c2fcab58712467eab4004583eb8fb7f8955ad340609f4b30283e488832571415a085125e8f7cdc99fd91dbdf280373c5bd8823e3156348f5bae6dacd436c919c6dd53e2b487da03fd02396306d248cda0e99f33420f577ee8ce54b67080a80d1ec69821bcb6a8839396f9652b6ff72a70'
   17     1        ASSIGN                                                   !1, 'd131dd02c5e6eec4693d9a0698aff95c2fcab50712467eab4004583eb8fb7f8955ad340609f4b30283e4888325f1415a085125e8f7cdc99fd91dbd7280373c5bd8823e3156348f5bae6dacd436c919c6dd53e23487da03fd02396306d248cda0e99f33420f577ee8ce54b67080280d1ec69821bcb6a8839396f965ab6ff72a70'
   19     2        INIT_FCALL                                               'd2m'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !2, $6
   20     6        INIT_FCALL                                               'd2m'
          7        SEND_VAR                                                 !1
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !3, $8
   21    10        CONCAT                                           ~10     !2, '%0D%0A'
         11        ECHO                                                     ~10
   22    12        CONCAT                                           ~11     !3, '%0D%0A'
         13        ECHO                                                     ~11
   24    14        INIT_FCALL                                               'var_dump'
         15        IS_EQUAL                                         ~12     !2, !3
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
   25    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'md5'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $14     
         22        INIT_FCALL                                               'md5'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $15     
         25        IS_EQUAL                                         ~16     $14, $15
         26        SEND_VAL                                                 ~16
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Function d2m:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/iRK5k
function name:  d2m
number of ops:  21
compiled vars:  !0 = $d, !1 = $m, !2 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        ASSIGN                                                   !1, ''
    8     2        INIT_FCALL                                               'str_split'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $4      
          6      > FE_RESET_R                                       $5      $4, ->18
          7    > > FE_FETCH_R                                               $5, !2, ->18
    9     8    >   INIT_FCALL                                               'chr'
          9        INIT_FCALL                                               'base_convert'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 16
         12        SEND_VAL                                                 10
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                         $7      
         16        ASSIGN_OP                                     8          !1, $7
    8    17      > JMP                                                      ->7
         18    >   FE_FREE                                                  $5
   12    19      > RETURN                                                   !1
   13    20*     > RETURN                                                   null

End of function d2m

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.03 ms | 1394 KiB | 25 Q