3v4l.org

run code in 300+ PHP versions simultaneously
<?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); ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /in/qCE6g on line 8
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/qCE6g on line 8 Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/qCE6g on line 9 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 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
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.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Call to undefined function ech() in /in/qCE6g on line 8
Process exited with code 255.

preferences:
261.09 ms | 402 KiB | 372 Q