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 ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 22
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/HnlMr
function name:  (null)
number of ops:  28
compiled vars:  !0 = $scraper, !1 = $tracker, !2 = $track, !3 = $hashx, !4 = $info, !5 = $value, !6 = $key, !7 = $openseed
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                              'files%2Fscraper.php', INCLUDE
    4     1        NEW                                                  $9      'Scrapeer%5CScraper'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $9
    6     4        ASSIGN                                                       !1, <array>
    8     5      > FE_RESET_R                                           $13     !1, ->22
          6    > > FE_FETCH_R                                                   $13, !2, ->22
    9     7    >   ASSIGN                                                       !3, <array>
   10     8        INIT_METHOD_CALL                                             !0, 'scrape'
          9        SEND_VAR_EX                                                  !3
         10        SEND_VAR_EX                                                  !2
         11        DO_FCALL                                          0  $15     
         12        ASSIGN                                                       !4, $15
   11    13      > FE_RESET_R                                           $17     !4, ->20
         14    > > FE_FETCH_R                                           ~18     $17, !5, ->20
         15    >   ASSIGN                                                       !6, ~18
   12    16        FETCH_DIM_R                                          ~21     !5, 'seeders'
         17        ASSIGN_DIM                                                   !7
         18        OP_DATA                                                      ~21
   11    19      > JMP                                                          ->14
         20    >   FE_FREE                                                      $17
    8    21      > JMP                                                          ->6
         22    >   FE_FREE                                                      $13
   15    23        INIT_FCALL                                                   'array_sum'
         24        SEND_VAR                                                     !7
         25        DO_ICALL                                             $22     
         26        ECHO                                                         $22
   16    27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
185.34 ms | 2362 KiB | 14 Q