3v4l.org

run code in 300+ PHP versions simultaneously
<?php $funcs = get_defined_functions(); $funcs = array_merge($funcs['user'], $funcs['internal']); $shortest = 0; $closest = ''; $find = metaphone('pretty'); foreach ($funcs as $func) { $func = str_replace('_', ' ', $func); if (metaphone($func) === $find) { echo "Found $func"; break; } } echo 'Found ', $closest ? $closest : 'none';

preferences:
42.06 ms | 402 KiB | 5 Q