3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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';
based on eOa76
Output for 4.3.0 - 7.2.0
Found none