3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; $a = substr('', 0, 10); var_dump($a); var_dump(gettype('0'));
based on fo10g
Output for 7.0.0 - 7.2.0
string(0) "" string(6) "string"
Output for 5.3.18 - 5.6.28
bool(false) string(6) "string"