3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(stripos('test', '')); var_dump(strrpos('test', '')); var_dump(strripos('test', '')); var_dump(strpos('test', ''));
Output for 5.3.22 - 5.3.29, 5.4.12 - 5.6.28, 7.0.0 - 7.1.0
bool(false) bool(false) bool(false) Warning: strpos(): Empty needle in /in/hOM17 on line 6 bool(false)
Output for hhvm-3.12.0
bool(false) bool(false) bool(false) Warning: Empty delimiter in /in/hOM17 on line 6 bool(false)
Output for hhvm-3.10.0
bool(false) bool(false) bool(false) Warning: Empty delimiter in /in/hOM17 on line 29 bool(false)
Output for 5.2.5 - 5.3.21, 5.4.0 - 5.4.11
bool(false) bool(false) bool(false) Warning: strpos(): Empty delimiter in /in/hOM17 on line 6 bool(false)
Output for 5.0.0 - 5.2.4
bool(false) bool(false) bool(false) Warning: strpos(): Empty delimiter. in /in/hOM17 on line 6 bool(false)
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: stripos() in /in/hOM17 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: stripos() in /in/hOM17 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: stripos() in /in/hOM17 on line 3