3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $language = 'nl-BE'; $t = strpos('-', $language, 2); var_dump($t);
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: strpos(): Offset not contained in string in /in/nkjto on line 3 bool(false)
Output for hhvm-3.12.0
Warning: Offset not contained in string in /in/nkjto on line -1 bool(false)
Output for hhvm-3.10.0
Warning: Offset not contained in string in /in/nkjto on line 3 bool(false)
Output for 4.3.2 - 5.2.4
Warning: strpos(): Offset not contained in string. in /in/nkjto on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Warning: strpos() [http://www.php.net/function.strpos]: Offset not contained in string. in /in/nkjto on line 3 bool(false)