3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = "abc abc abc"; var_dump(strrpos($foo, 'abc', 7)); var_dump(strrpos($foo, 'abc', -3));
Output for 5.0.0 - 7.2.0
int(8) int(8)
Output for 4.3.0 - 4.4.9
<br /> <b>Warning</b>: Wrong parameter count for strrpos() in <b>/in/EGDqC</b> on line <b>5</b><br /> NULL <br /> <b>Warning</b>: Wrong parameter count for strrpos() in <b>/in/EGDqC</b> on line <b>6</b><br /> NULL