3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = "ab"; echo substr(stristr("cAbf",$s),0,count($s)+1);
Output for 7.2.0 - 7.3.0beta1
Warning: count(): Parameter must be an array or an object that implements Countable in /in/CSgkO on line 4 Ab
Output for 4.3.0 - 7.1.20
Ab