3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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');
based on LoYJo
Output for 4.3.0 - 7.1.0
Infernalz Infernalz