3v4l.org

run code in 300+ PHP versions simultaneously
<?php $LOGINSERVER_HOST = "217.23.133.119"; $LOGINSERVER_PORT = 28511; function GetAccountRegisterDate($account) { $buf = pack("c", 0x0b); // $buf .= pack("a*x",$account); // account name echo pack("s", (strlen($buf)+2)).$buf; echo $buf; } function tounicode($string) { $rs = ""; for($i = 0; $i < strlen($string); $i++) $rs .= $string[$i].chr(0); return($rs.chr(0).chr(0)); } echo GetAccountRegisterDate('Infernalz');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NYHeX
function name:  (null)
number of ops:  7
compiled vars:  !0 = $LOGINSERVER_HOST, !1 = $LOGINSERVER_PORT
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '217.23.133.119'
    4     1        ASSIGN                                                   !1, 28511
   25     2        INIT_FCALL                                               'getaccountregisterdate'
          3        SEND_VAL                                                 'Infernalz'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

Function getaccountregisterdate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NYHeX
function name:  GetAccountRegisterDate
number of ops:  21
compiled vars:  !0 = $account, !1 = $buf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'pack'
          2        SEND_VAL                                                 'c'
          3        SEND_VAL                                                 11
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    9     6        INIT_FCALL                                               'pack'
          7        SEND_VAL                                                 'a%2Ax'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN_OP                                     8          !1, $4
   12    11        INIT_FCALL                                               'pack'
         12        SEND_VAL                                                 's'
         13        STRLEN                                           ~6      !1
         14        ADD                                              ~7      ~6, 2
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                         $8      
         17        CONCAT                                           ~9      $8, !1
         18        ECHO                                                     ~9
   13    19        ECHO                                                     !1
   16    20      > RETURN                                                   null

End of function getaccountregisterdate

Function tounicode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/NYHeX
function name:  tounicode
number of ops:  15
compiled vars:  !0 = $string, !1 = $rs, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   21     1        ASSIGN                                                   !1, ''
          2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->8
          4    >   FETCH_DIM_R                                      ~5      !0, !2
          5        CONCAT                                           ~6      ~5, '%00'
          6        ASSIGN_OP                                     8          !1, ~6
          7        PRE_INC                                                  !2
          8    >   STRLEN                                           ~9      !0
          9        IS_SMALLER                                               !2, ~9
         10      > JMPNZ                                                    ~10, ->4
   22    11    >   CONCAT                                           ~11     !1, '%00'
         12        CONCAT                                           ~12     ~11, '%00'
         13      > RETURN                                                   ~12
   23    14*     > RETURN                                                   null

End of function tounicode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.48 ms | 1403 KiB | 16 Q