3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $haystack = 'ba-dum-tss!'; var_dump(strpos($haystack, 'tss', strlen($haystack)+1));
Output for 5.2.5 - 7.1.0
Warning: strpos(): Offset not contained in string in /in/lSURt on line 4 bool(false)
Output for 4.3.2 - 5.2.4
Warning: strpos(): Offset not contained in string. in /in/lSURt on line 4 bool(false)
Output for 4.3.0 - 4.3.1
Warning: strpos() [http://www.php.net/function.strpos]: Offset not contained in string. in /in/lSURt on line 4 bool(false)