3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $paddedContentType = ' ' . 'javascriptwhatever'; $isJavascriptPresent = strpos(strtolower($paddedContentType), 'javascript'); if ($isJavascriptPresent !== false) { echo 'yeah its there'; }
based on BsgDs
Output for 5.6.38 - 7.3.0rc3
yeah its there