3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "T014789_Purple"; var_dump(stristr($s,"_",true)); ?>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(7) "T014789"
Output for 5.2.3 - 5.2.17
Warning: Wrong parameter count for stristr() in /in/6v0o7 on line 5 NULL
Output for 4.3.0 - 5.2.2
<br /> <b>Warning</b>: Wrong parameter count for stristr() in <b>/in/6v0o7</b> on line <b>5</b><br /> NULL