3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'String_With_Underscores'; $start = microtime(true); for ($i = 0; $i < 10000; $i++) { $result = implode('', array_map('ucfirst', explode('_', strtolower($test)))); } echo 'Time taken: ' . (microtime(true) - $start) . 's';

preferences:
30.81 ms | 402 KiB | 5 Q