3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x='abcdefPOL'; var_dump(substr($x, -3, 3));
Output for 5.5.13
string(3) "POL"