3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = 'charanjeet/working/with/php'; echo strrpos($foo, '/', -5); echo (bool)strrpos($foo, '/', -5); //Answer: 18 => It will start searching it reverse direction after ignoring 5 five characters. //It will then return the position of the / after working, from the beginning charanjeet/working/ gạch / ở vị trí 18
based on GfROL
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0beta1
181