3v4l.org

run code in 300+ PHP versions simultaneously
<?php function create_path($hash) { return preg_replace('#(\w)#', '/$1', strtolower(substr($hash, 0, 5))) .'/'; } echo 'path: '.create_path('ahq6dree');

preferences:
33.32 ms | 406 KiB | 5 Q