3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function rpc_str_serialize($val) { $len = strlen($val); if ($len < 255) { $rt = chr($len).$val; return $rt; } else { $rt =chr(255).rpc_int_serialize($len).$val; return $rt; } } echo(ord(rpc_str_serialize("momoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjuk")[0])); ?>
based on TGQIP
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function rpc_int_serialize() in /in/KX3Xt:12 Stack trace: #0 /in/KX3Xt(17): rpc_str_serialize('momoqwertyuioas...') #1 {main} thrown in /in/KX3Xt on line 12
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Call to undefined function rpc_int_serialize() in /in/KX3Xt on line 12
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/KX3Xt on line 17
Process exited with code 255.