3v4l.org

run code in 300+ PHP versions simultaneously
<?php $st = chr(84).chr(66).chr(78).chr(80).chr(36).chr(0).chr(0).chr(0).chr(0).chr(0).chr(0).chr(0) echo(st); function rpc_int_unserialize(&$str, $size = 4) { $res = 0; for ($i = $size - 1; $i >= 0; $i--) { echo($str{$i}); echo("\n"); echo("i"); echo("\n"); $res = ($res * 256) + ord($str{$i}); }; $str = substr($str, $size); return $res; } $head = "qwerty"; echo(rpc_int_unserialize($head)); echo(rpc_int_unserialize($head)); echo($head); ?>
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/X216P on line 3
Process exited with code 255.

preferences:
189.78 ms | 1395 KiB | 64 Q