3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Nick hráče, jehož offline mode uuid chceme zjistit $nick = 'itzjake1'; //Přidáme před nick "OfflinePlayer:" $nick = "OfflinePlayer:".$nick; //zahashujeme MD5tkou $uuid = md5($nick); //A máme uuid! (zatím bez pomlček) echo("UUID: ".$uuid."<br />"); //určíme si pozice pro pomlčky $dashpositions = array(8, 13, 18, 23); //A pomlčky přidáme foreach($dashpositions as $pos){ $uuid = substr_replace($uuid, "-", $pos, 0); } //A UUID s pomlčkami je na světě! echo("Splitted UUID: ".$uuid); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 21
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/F8ERC
function name:  (null)
number of ops:  25
compiled vars:  !0 = $nick, !1 = $uuid, !2 = $dashpositions, !3 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'itzjake1'
    6     1        CONCAT                                           ~5      'OfflinePlayer%3A', !0
          2        ASSIGN                                                   !0, ~5
    9     3        INIT_FCALL                                               'md5'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !1, $7
   12     7        CONCAT                                           ~9      'UUID%3A+', !1
          8        CONCAT                                           ~10     ~9, '%3Cbr+%2F%3E'
          9        ECHO                                                     ~10
   15    10        ASSIGN                                                   !2, <array>
   18    11      > FE_RESET_R                                       $12     !2, ->21
         12    > > FE_FETCH_R                                               $12, !3, ->21
   19    13    >   INIT_FCALL                                               'substr_replace'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 '-'
         16        SEND_VAR                                                 !3
         17        SEND_VAL                                                 0
         18        DO_ICALL                                         $13     
         19        ASSIGN                                                   !1, $13
   18    20      > JMP                                                      ->12
         21    >   FE_FREE                                                  $12
   23    22        CONCAT                                           ~15     'Splitted+UUID%3A+', !1
         23        ECHO                                                     ~15
   24    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.02 ms | 1395 KiB | 17 Q