3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $uid = 1; $radio_uid = substr(0,8,md5($uid)); echo md5($uid); echo "\n"; echo $radio_uid; echo "\n"; echo "d88cd95b-05e8-4fa6-a11d-31a80e17b992";
based on W1B2N
Output for 7.0.0 - 7.2.0
Warning: substr() expects parameter 3 to be integer, string given in /in/0uW2l on line 3 c4ca4238a0b923820dcc509a6f75849b d88cd95b-05e8-4fa6-a11d-31a80e17b992
Output for 5.3.20 - 5.6.28
Warning: substr() expects parameter 3 to be long, string given in /in/0uW2l on line 3 c4ca4238a0b923820dcc509a6f75849b d88cd95b-05e8-4fa6-a11d-31a80e17b992