3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Source: https://bugs.php.net/bug.php?id=62922 var_dump(substr("", 0)); var_dump(substr("a", 1)); var_dump(substr("ab", 2));
Output for 7.0.0 - 7.3.0rc4
string(0) "" string(0) "" string(0) ""
Output for 4.3.0 - 5.6.28
bool(false) bool(false) bool(false)