<?php
$var = '(1) - (2) - (3)';
$resultado = $output[1];//Pega apenas os nĂºmeros
PD9waHAKCiR2YXIgPSAnKDEpIC0gKDIpIC0gKDMpJzsKCnByZWdfbWF0Y2hfYWxsKCcjXCgoXGQrKVwpIycsICR2YXIsICRvdXRwdXQpOwoKJHJlc3VsdGFkbyA9ICRvdXRwdXRbMV07Ly9QZWdhIGFwZW5hcyBvcyBuw7ptZXJvcwoKcHJpbnRfcigkcmVzdWx0YWRvKTs=