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 ?>
Output for git.master_jit, git.master, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(files/scraper.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/HnlMr on line 2 Warning: include(files/scraper.php): Failed to open stream: Operation not permitted in /in/HnlMr on line 2 Warning: include(): Failed opening 'files/scraper.php' for inclusion (include_path='.:') in /in/HnlMr on line 2 Fatal error: Uncaught Error: Class "Scrapeer\Scraper" not found in /in/HnlMr:4 Stack trace: #0 {main} thrown in /in/HnlMr on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.8 ms | 1742 KiB | 4 Q