3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$test = str_replace('-150wi', '', 'http://marriott2.typepad.com/.a/6a0128763ee05d970c01a511f170d1970c-150wi'); $test = strrchr('http://marriott2.typepad.com/.a/6a0128763ee05d970c01a511f170d1970c-150wi', '-'); if (substr($test, -2) === 'wi') { var_dump($test); }
based on kmku2
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
string(6) "-150wi"