3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $str = "This is nice"; substr_count($str,"is",11,9); ?>
based on vXqHE
Output for 7.1.0 - 7.2.0
This is nice Warning: substr_count(): Invalid length value in /in/EQUZH on line 3
Output for 5.3.21 - 7.0.20
This is nice Warning: substr_count(): Length value 9 exceeds string length in /in/EQUZH on line 3