Risolto modificando il meta in questo modo:

echo "<meta http-equiv=\"refresh\" content=\"" . $tempo . ";URL=" . $url . "\">";