3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('BR', "\n"); define('DS', DIRECTORY_SEPARATOR); $str = 'template/base/files/js\jquery1.11.min.js'; $str = str_replace(array('\\', '/'), DS, $str); echo $str . BR; $pos = strpos($str, DS, -2); echo $pos;
Output for 7.1.0
template/base/files/js/jquery1.11.min.js
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.0.14
template/base/files/js/jquery1.11.min.js Warning: strpos(): Offset not contained in string in /in/2S45u on line 7
Output for hhvm-3.10.0 - 3.12.0
template/base/files/js/jquery1.11.min.js Warning: Offset not contained in string in /in/2S45u on line 7
Output for 4.3.2 - 5.2.4
template/base/files/js/jquery1.11.min.js Warning: strpos(): Offset not contained in string. in /in/2S45u on line 7
Output for 4.3.0 - 4.3.1
template/base/files/js/jquery1.11.min.js Warning: strpos() [http://www.php.net/function.strpos]: Offset not contained in string. in /in/2S45u on line 7