3v4l.org

run code in 500+ PHP versions simultaneously
<?php $name = "GodWeedZao"; //here is real player tag you can get it in pmmp like: # $player->getNameTag(); $tag = "XGamerX"; //here is tag //set name tag like: $nameTag = $name . "\n" . $tag; //explode it $nameTag = explode("\n", $nameTag); //now use $nameTag[0] in ChatEvent to set real player Tag. echo $nameTag[0]; //$nameTag[0] will get real player tag, $nameTag[1] will get tag you set in player.
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g31at
function name:  (null)
number of ops:  13
compiled vars:  !0 = $name, !1 = $tag, !2 = $nameTag
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'GodWeedZao'
    5     1        ASSIGN                                                       !1, 'XGamerX'
    7     2        CONCAT                                               ~5      !0, '%0A'
          3        CONCAT                                               ~6      ~5, !1
          4        ASSIGN                                                       !2, ~6
    9     5        INIT_FCALL                                                   'explode'
          6        SEND_VAL                                                     '%0A'
          7        SEND_VAR                                                     !2
          8        DO_ICALL                                             $8      
          9        ASSIGN                                                       !2, $8
   11    10        FETCH_DIM_R                                          ~10     !2, 0
         11        ECHO                                                         ~10
   12    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
146.58 ms | 476 KiB | 8 Q