$file = 'https://td2.info.pl/api/launcher-task.xml';
if(!$xml = simplexml_load_file($file))
exit('Failed to open '.$file);
$total ='';
$total += $xml->Stations + $xml->Trains;
echo "Trains: ";
echo $xml->Trains;
echo '
';
echo "Stations: ";
echo $xml->Stations;
echo '
';
echo "Combined: ";
echo $total;
echo '
';
echo "Driven: ";
echo $xml->CountTrainDistance;
echo '
';
echo "Routed: ";
echo $xml->CountStations;
echo '
';
?>