3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(substr(123, " 1")); var_dump(substr(456, "1a"));
Output for 5.3.0 - 7.1.0
string(2) "23" Notice: A non well formed numeric value encountered in /in/pNpAb on line 3 string(2) "56"
Output for 4.3.0 - 5.2.17
string(2) "23" string(2) "56"