3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(substr("abc", "123123123123123123123123123123123123123121231231231231231231231231231231231231231231231231231231231231233123123123123123123123123123123123123123123123123123123123123123123"));
Output for 7.0.0 - 7.1.0
Warning: substr() expects parameter 2 to be integer, string given in /in/luXtg on line 2 NULL
Output for 4.3.0 - 5.2.17, hhvm-3.10.0 - 3.12.0
string(1) "c"
Output for 5.3.0 - 5.6.25
string(3) "abc"