3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paddedContentType = ' ' . 'this'; $isJavascriptPresent = strpos(strtolower($paddedContentType), 'javascript'); if ($isJavascriptPresent !== false || $isJavascriptPresent == 0) { echo 'yeah its there'; }

preferences:
53.48 ms | 402 KiB | 5 Q