3v4l.org

run code in 300+ PHP versions simultaneously
<?php $telefones = [ '(11) 3333-4353', '(11) 98000-2222', '(11) 3027-5555', '(11) 97000-0333', '(12) 99999-9999', '(12) 88888-8888', '(13) 11111-1111' ]; $inicio = microtime(true); for($i = 0; $i < 50000; $i++){ usort($telefones, function ($a, $b) { return strtr(substr($a, 5), ['-' => '']) <=> strtr(substr($b, 5), ['-' => '']); }); } echo 'Inkeliz:' . (microtime(true) - $inicio) . "\n";

preferences:
16.15 ms | 407 KiB | 5 Q