3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "http://media.topman.com/wcsstore/TopMan/images/catalog/97C08EBLK_normal.jpg"; $image_id = substr($s, strripos($s,"/")+1); var_dump(stristr($image_id,'_',true)); ?>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(9) "97C08EBLK"
Output for 5.0.0 - 5.2.17
Warning: Wrong parameter count for stristr() in /in/1C41q on line 5 NULL
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: strripos() in /in/1C41q on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: strripos() in /in/1C41q on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: strripos() in /in/1C41q on line 4