3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "Hello this is dummy.test. in this string any character, any special character can appear. it is not a fixed type text and predefined. this string will not read manually check by the Programmer.Sorry for the bad English."; $test = strrpos($str, 'test'); $dummy = strrpos($str, 'dummy', -strlen($str) - $test); echo $dummy;
Output for 5.2.9 - 5.6.28, 7.0.0 - 7.1.0
Warning: strrpos(): Offset is greater than the length of haystack string in /in/JSsaB on line 9
Output for hhvm-3.10.0 - 3.12.0
Warning: Offset is greater than the length of haystack string in /in/JSsaB on line 9
Output for 5.0.0 - 5.2.8
Output for 4.3.0 - 4.4.9
<br /> <b>Warning</b>: Wrong parameter count for strrpos() in <b>/in/JSsaB</b> on line <b>9</b><br />