3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string1 = "My string"; $string2 = "string"; if(substr_count($string1) > 0) echo "string have a string inside it"; else echo "not substring exsist";
Output for 5.3.0 - 7.2.0
Warning: substr_count() expects at least 2 parameters, 1 given in /in/V2WUT on line 4 not substring exsist
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for substr_count() in /in/V2WUT on line 4 not substring exsist