3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function rpc_int_unserialize(&$str, $size = 4) { $res = 0; for ($i = $size - 1; $i >= 0; $i--) { ech($str{$i}); $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); ?>
based on qZHqk
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function ech() in /in/qCE6g:8 Stack trace: #0 /in/qCE6g(16): rpc_int_unserialize('qwerty') #1 {main} thrown in /in/qCE6g on line 8
Process exited with code 255.
Output for 5.3.18 - 5.6.21
Fatal error: Call to undefined function ech() in /in/qCE6g on line 8
Process exited with code 255.