3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foobar = 'string'; $length = strlen($foobar); var_dump(strpos('blarstring', $foobar, -$length));
based on NtjRh
Output for 7.1.0 - 7.2.0
int(4)
Output for 5.3.19 - 7.0.20
Warning: strpos(): Offset not contained in string in /in/DalB8 on line 5 bool(false)