3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getIndex($name) { $algorithm = null; if ($pos = stripos($name, '_USING_')) { $algorithm = substr($name, $pos + 7); } return $algorithm; } echo getIndex('textsearch_index_USING_GIST');

preferences:
36.1 ms | 402 KiB | 5 Q