3v4l.org

run code in 500+ PHP versions simultaneously
<?php include 'files/scraper.php'; $scraper = new Scrapeer\Scraper(); $tracker = array('udp://tracker.torrent.eu.org:451/announce', 'http://tracker.tfile.co:80/announce', 'http://retracker.spb.ru:80/announce', 'udp://open.demonii.si:1337/announce'); foreach($tracker as $track){ $hashx = array( '270C96D6ED251BB18A77F4989A928D7D00E849A6' ); $info = $scraper->scrape( $hashx, $track ); foreach ($info as $key => $value) { $openseed[] = $value['seeders']; } } echo array_sum($openseed); //it shows the last value from array its not getting total of all values ?>

preferences:
106.28 ms | 1743 KiB | 5 Q