3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors', 1); function run(){ $apiKey = 'demo'; $clanMembers = json_decode(getData('http://api.worldoftanks.com/wgn/clans/info/?application_id='.$apiKey.'&fields=members.account_name%2Cmembers.account_id&clan_id=1000021200'),true); $data = array(); $players = array(); foreach ($clanMembers['data']['1000021200']['members'] as $key) { $urls[] = 'http://api.worldoftanks.com/wot/globalmap/eventaccountinfo/?application_id='.$apiKey.'&fields=events.battles%2Cevents.battles_to_award%2Cevents.fame_points%2Cevents.rank&event_id=black_gold_first_step&front_id=1511_us_c4event1_front_1&account_id='.$key['account_id']; $players[] = array($key['account_name'],$key['account_id']); } $urls = array_chunk($urls, 20,true); for($i = 0;$i<5;$i++){ $data = array_merge($data,multiRequest($urls[$i])); } $data2 = array(); foreach ($data as $key => $value) { //echo $key; $data2[$players[$key][1]] = json_decode($value,true)['data'][$players[$key][1]]['events']['black_gold_first_step']; $data2[$players[$key][1]][0]['account_name'] = $players[$key][0]; $data2[$players[$key][1]][0]['account_id'] = $players[$key][1]; } print_r($data2); return $data2; } function getData($url){ $rCURL = curl_init(); curl_setopt($rCURL, CURLOPT_URL, $url); curl_setopt($rCURL, CURLOPT_HEADER, 0); curl_setopt($rCURL, CURLOPT_RETURNTRANSFER, 1); $aData = curl_exec($rCURL); curl_close($rCURL); return $aData; } function multiRequest($data, $options = array()) { // array of curl handles $curly = array(); // data to be returned $result = array(); // multi handle $mh = curl_multi_init(); // loop through $data and create curl handles // then add them to the multi-handle foreach ($data as $id => $d) { $curly[$id] = curl_init(); $url = (is_array($d) && !empty($d['url'])) ? $d['url'] : $d; curl_setopt($curly[$id], CURLOPT_URL, $url); curl_setopt($curly[$id], CURLOPT_HEADER, 0); curl_setopt($curly[$id], CURLOPT_RETURNTRANSFER, 1); // post? if (is_array($d)) { if (!empty($d['post'])) { curl_setopt($curly[$id], CURLOPT_POST, 1); curl_setopt($curly[$id], CURLOPT_POSTFIELDS, $d['post']); } } // extra options? if (!empty($options)) { curl_setopt_array($curly[$id], $options); } curl_multi_add_handle($mh, $curly[$id]); } // execute the handles $running = null; do { curl_multi_exec($mh, $running); } while($running > 0); // get content and remove handles foreach($curly as $id => $c) { $result[$id] = curl_multi_getcontent($c); curl_multi_remove_handle($mh, $c); } // all done curl_multi_close($mh); return $result; } ?> <html> <head> <title>Fame Points -MO-</title> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css"> <script type="text/javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/s/dt/dt-1.10.10/datatables.min.css"/> <script type="text/javascript" src="https://cdn.datatables.net/s/dt/dt-1.10.10/datatables.min.js"></script> </head> <body> <table id="example" class="display" cellspacing="0"> <thead> <tr> <th>Player</th> <th>Battles</th> <th>Rank</th> <th>Fame Points</th> <th>Battles Needed</th> </tr> </thead> <tbody> <?php $data = run(); //print_r($data); foreach ($data as $value) { if($value[0]['battles']>0){ echo "<tr> <td>".$value[0]['account_name']."</td> <td>".$value[0]['battles']."</td> <td>".$value[0]['rank']."</td> <td>".$value[0]['fame_points']."</td> <td>".$value[0]['battles_to_award']."</td> </tr>"; } } ?> </tbody> </table> <script type="text/javascript"> $(document).ready(function() { $('#example').DataTable(); } ); </script> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 39
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 39
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 38
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 38
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
filename:       /in/djbtm
function name:  (null)
number of ops:  42
compiled vars:  !0 = $data, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
  119     7        ECHO                                                     '%0A%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EFame+Points+-MO-%3C%2Ftitle%3E%0A%3Clink+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+href%3D%22https%3A%2F%2Fcdn.datatables.net%2F1.10.10%2Fcss%2Fjquery.dataTables.min.css%22%3E%0A%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22%2F%2Fcode.jquery.com%2Fjquery-1.11.3.min.js%22%3E%3C%2Fscript%3E%0A%3Clink+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+href%3D%22https%3A%2F%2Fcdn.datatables.net%2Fs%2Fdt%2Fdt-1.10.10%2Fdatatables.min.css%22%2F%3E%0A+%0A%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22https%3A%2F%2Fcdn.datatables.net%2Fs%2Fdt%2Fdt-1.10.10%2Fdatatables.min.js%22%3E%3C%2Fscript%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%0A%0A%3Ctable+id%3D%22example%22+class%3D%22display%22+cellspacing%3D%220%22%3E%0A++%3Cthead%3E%0A++%3Ctr%3E%0A++++%3Cth%3EPlayer%3C%2Fth%3E%0A++++%3Cth%3EBattles%3C%2Fth%3E%0A++++%3Cth%3ERank%3C%2Fth%3E%0A++++%3Cth%3EFame+Points%3C%2Fth%3E%0A++++%3Cth%3EBattles+Needed%3C%2Fth%3E%0A++%3C%2Ftr%3E%0A++%3C%2Fthead%3E%0A++%3Ctbody%3E%0A++++'
  144     8        INIT_FCALL                                               'run'
          9        DO_FCALL                                      0  $4      
         10        ASSIGN                                                   !0, $4
  146    11      > FE_RESET_R                                       $6      !0, ->39
         12    > > FE_FETCH_R                                               $6, !1, ->39
  147    13    >   FETCH_DIM_R                                      ~7      !1, 0
         14        FETCH_DIM_R                                      ~8      ~7, 'battles'
         15        IS_SMALLER                                               0, ~8
         16      > JMPZ                                                     ~9, ->38
  149    17    >   FETCH_DIM_R                                      ~10     !1, 0
         18        FETCH_DIM_R                                      ~11     ~10, 'account_name'
         19        CONCAT                                           ~12     '%3Ctr%3E%0A++++%3Ctd%3E', ~11
         20        CONCAT                                           ~13     ~12, '%3C%2Ftd%3E%0A++++%3Ctd%3E'
  150    21        FETCH_DIM_R                                      ~14     !1, 0
         22        FETCH_DIM_R                                      ~15     ~14, 'battles'
         23        CONCAT                                           ~16     ~13, ~15
         24        CONCAT                                           ~17     ~16, '%3C%2Ftd%3E%0A++++%3Ctd%3E'
  151    25        FETCH_DIM_R                                      ~18     !1, 0
         26        FETCH_DIM_R                                      ~19     ~18, 'rank'
         27        CONCAT                                           ~20     ~17, ~19
         28        CONCAT                                           ~21     ~20, '%3C%2Ftd%3E%0A++++%3Ctd%3E'
  152    29        FETCH_DIM_R                                      ~22     !1, 0
         30        FETCH_DIM_R                                      ~23     ~22, 'fame_points'
         31        CONCAT                                           ~24     ~21, ~23
         32        CONCAT                                           ~25     ~24, '%3C%2Ftd%3E%0A++++%3Ctd%3E'
  153    33        FETCH_DIM_R                                      ~26     !1, 0
         34        FETCH_DIM_R                                      ~27     ~26, 'battles_to_award'
         35        CONCAT                                           ~28     ~25, ~27
         36        CONCAT                                           ~29     ~28, '%3C%2Ftd%3E%0A++%3C%2Ftr%3E'
         37        ECHO                                                     ~29
  146    38    > > JMP                                                      ->12
         39    >   FE_FREE                                                  $6
  161    40        ECHO                                                     '++%3C%2Ftbody%3E%0A%3C%2Ftable%3E%0A%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A%09%0A%09%24%28document%29.ready%28function%28%29+%7B%0A++++%24%28%27%23example%27%29.DataTable%28%29%3B%0A%7D+%29%3B%0A%3C%2Fscript%3E%0A%3C%2Fbody%3E%0A%0A%3C%2Fhtml%3E'
  171    41      > RETURN                                                   1

Function run:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 31
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 31
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
2 jumps found. (Code = 44) Position 1 = 53, Position 2 = 40
Branch analysis from position: 53
2 jumps found. (Code = 77) Position 1 = 55, Position 2 = 88
Branch analysis from position: 55
2 jumps found. (Code = 78) Position 1 = 56, Position 2 = 88
Branch analysis from position: 56
1 jumps found. (Code = 42) Position 1 = 55
Branch analysis from position: 55
Branch analysis from position: 88
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 88
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 53, Position 2 = 40
Branch analysis from position: 53
Branch analysis from position: 40
Branch analysis from position: 31
filename:       /in/djbtm
function name:  run
number of ops:  94
compiled vars:  !0 = $apiKey, !1 = $clanMembers, !2 = $data, !3 = $players, !4 = $key, !5 = $urls, !6 = $i, !7 = $data2, !8 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'demo'
    9     1        INIT_FCALL                                               'json_decode'
          2        INIT_FCALL_BY_NAME                                       'getData'
          3        CONCAT                                           ~10     'http%3A%2F%2Fapi.worldoftanks.com%2Fwgn%2Fclans%2Finfo%2F%3Fapplication_id%3D', !0
          4        CONCAT                                           ~11     ~10, '%26fields%3Dmembers.account_name%252Cmembers.account_id%26clan_id%3D1000021200'
          5        SEND_VAL_EX                                              ~11
          6        DO_FCALL                                      0  $12     
          7        SEND_VAR                                                 $12
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $13     
         10        ASSIGN                                                   !1, $13
   10    11        ASSIGN                                                   !2, <array>
   11    12        ASSIGN                                                   !3, <array>
   12    13        FETCH_DIM_R                                      ~17     !1, 'data'
         14        FETCH_DIM_R                                      ~18     ~17, 1000021200
         15        FETCH_DIM_R                                      ~19     ~18, 'members'
         16      > FE_RESET_R                                       $20     ~19, ->31
         17    > > FE_FETCH_R                                               $20, !4, ->31
   13    18    >   CONCAT                                           ~22     'http%3A%2F%2Fapi.worldoftanks.com%2Fwot%2Fglobalmap%2Feventaccountinfo%2F%3Fapplication_id%3D', !0
         19        CONCAT                                           ~23     ~22, '%26fields%3Devents.battles%252Cevents.battles_to_award%252Cevents.fame_points%252Cevents.rank%26event_id%3Dblack_gold_first_step%26front_id%3D1511_us_c4event1_front_1%26account_id%3D'
         20        FETCH_DIM_R                                      ~24     !4, 'account_id'
         21        CONCAT                                           ~25     ~23, ~24
         22        ASSIGN_DIM                                               !5
         23        OP_DATA                                                  ~25
   14    24        FETCH_DIM_R                                      ~27     !4, 'account_name'
         25        INIT_ARRAY                                       ~28     ~27
         26        FETCH_DIM_R                                      ~29     !4, 'account_id'
         27        ADD_ARRAY_ELEMENT                                ~28     ~29
         28        ASSIGN_DIM                                               !3
         29        OP_DATA                                                  ~28
   12    30      > JMP                                                      ->17
         31    >   FE_FREE                                                  $20
   17    32        INIT_FCALL                                               'array_chunk'
         33        SEND_VAR                                                 !5
         34        SEND_VAL                                                 20
         35        SEND_VAL                                                 <true>
         36        DO_ICALL                                         $30     
         37        ASSIGN                                                   !5, $30
   18    38        ASSIGN                                                   !6, 0
         39      > JMP                                                      ->51
   19    40    >   INIT_FCALL                                               'array_merge'
         41        SEND_VAR                                                 !2
         42        INIT_FCALL_BY_NAME                                       'multiRequest'
         43        CHECK_FUNC_ARG                                           
         44        FETCH_DIM_FUNC_ARG                               $33     !5, !6
         45        SEND_FUNC_ARG                                            $33
         46        DO_FCALL                                      0  $34     
         47        SEND_VAR                                                 $34
         48        DO_ICALL                                         $35     
         49        ASSIGN                                                   !2, $35
   18    50        PRE_INC                                                  !6
         51    >   IS_SMALLER                                               !6, 5
         52      > JMPNZ                                                    ~38, ->40
   22    53    >   ASSIGN                                                   !7, <array>
   23    54      > FE_RESET_R                                       $40     !2, ->88
         55    > > FE_FETCH_R                                       ~41     $40, !8, ->88
         56    >   ASSIGN                                                   !4, ~41
   25    57        FETCH_DIM_R                                      ~43     !3, !4
         58        FETCH_DIM_R                                      ~44     ~43, 1
         59        INIT_FCALL                                               'json_decode'
         60        SEND_VAR                                                 !8
         61        SEND_VAL                                                 <true>
         62        DO_ICALL                                         $46     
         63        FETCH_DIM_R                                      ~48     !3, !4
         64        FETCH_DIM_R                                      ~49     ~48, 1
         65        FETCH_DIM_R                                      ~47     $46, 'data'
         66        FETCH_DIM_R                                      ~50     ~47, ~49
         67        FETCH_DIM_R                                      ~51     ~50, 'events'
         68        FETCH_DIM_R                                      ~52     ~51, 'black_gold_first_step'
         69        ASSIGN_DIM                                               !7, ~44
         70        OP_DATA                                                  ~52
   26    71        FETCH_DIM_R                                      ~53     !3, !4
         72        FETCH_DIM_R                                      ~54     ~53, 1
         73        FETCH_DIM_R                                      ~58     !3, !4
         74        FETCH_DIM_R                                      ~59     ~58, 0
         75        FETCH_DIM_W                                      $55     !7, ~54
         76        FETCH_DIM_W                                      $56     $55, 0
         77        ASSIGN_DIM                                               $56, 'account_name'
         78        OP_DATA                                                  ~59
   27    79        FETCH_DIM_R                                      ~60     !3, !4
         80        FETCH_DIM_R                                      ~61     ~60, 1
         81        FETCH_DIM_R                                      ~65     !3, !4
         82        FETCH_DIM_R                                      ~66     ~65, 1
         83        FETCH_DIM_W                                      $62     !7, ~61
         84        FETCH_DIM_W                                      $63     $62, 0
         85        ASSIGN_DIM                                               $63, 'account_id'
         86        OP_DATA                                                  ~66
   23    87      > JMP                                                      ->55
         88    >   FE_FREE                                                  $40
   29    89        INIT_FCALL                                               'print_r'
         90        SEND_VAR                                                 !7
         91        DO_ICALL                                                 
   30    92      > RETURN                                                   !7
   31    93*     > RETURN                                                   null

End of function run

Function getdata:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/djbtm
function name:  getData
number of ops:  31
compiled vars:  !0 = $url, !1 = $rCURL, !2 = $aData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   RECV                                             !0      
   37     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
   39     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !1
          6        FETCH_CONSTANT                                   ~5      'CURLOPT_URL'
          7        SEND_VAL_EX                                              ~5
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   40    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !1
         12        FETCH_CONSTANT                                   ~7      'CURLOPT_HEADER'
         13        SEND_VAL_EX                                              ~7
         14        SEND_VAL_EX                                              0
         15        DO_FCALL                                      0          
   41    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !1
         18        FETCH_CONSTANT                                   ~9      'CURLOPT_RETURNTRANSFER'
         19        SEND_VAL_EX                                              ~9
         20        SEND_VAL_EX                                              1
         21        DO_FCALL                                      0          
   43    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0  $11     
         25        ASSIGN                                                   !2, $11
   45    26        INIT_FCALL_BY_NAME                                       'curl_close'
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0          
   47    29      > RETURN                                                   !2
   48    30*     > RETURN                                                   null

End of function getdata

Function multirequest:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 88
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 88
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 72
Branch analysis from position: 51
2 jumps found. (Code = 43) Position 1 = 54, Position 2 = 72
Branch analysis from position: 54
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 81
Branch analysis from position: 75
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 81
Branch analysis from position: 72
Branch analysis from position: 72
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 72
Branch analysis from position: 51
Branch analysis from position: 72
Branch analysis from position: 19
Branch analysis from position: 88
2 jumps found. (Code = 44) Position 1 = 96, Position 2 = 90
Branch analysis from position: 96
2 jumps found. (Code = 77) Position 1 = 97, Position 2 = 109
Branch analysis from position: 97
2 jumps found. (Code = 78) Position 1 = 98, Position 2 = 109
Branch analysis from position: 98
1 jumps found. (Code = 42) Position 1 = 97
Branch analysis from position: 97
Branch analysis from position: 109
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 109
Branch analysis from position: 90
Branch analysis from position: 88
filename:       /in/djbtm
function name:  multiRequest
number of ops:  115
compiled vars:  !0 = $data, !1 = $options, !2 = $curly, !3 = $result, !4 = $mh, !5 = $d, !6 = $id, !7 = $url, !8 = $running, !9 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   55     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   58     2        ASSIGN                                                   !2, <array>
   60     3        ASSIGN                                                   !3, <array>
   63     4        INIT_FCALL_BY_NAME                                       'curl_multi_init'
          5        DO_FCALL                                      0  $12     
          6        ASSIGN                                                   !4, $12
   67     7      > FE_RESET_R                                       $14     !0, ->88
          8    > > FE_FETCH_R                                       ~15     $14, !5, ->88
          9    >   ASSIGN                                                   !6, ~15
   69    10        INIT_FCALL_BY_NAME                                       'curl_init'
         11        DO_FCALL                                      0  $18     
         12        ASSIGN_DIM                                               !2, !6
         13        OP_DATA                                                  $18
   71    14        TYPE_CHECK                                  128  ~19     !5
         15      > JMPZ_EX                                          ~19     ~19, ->19
         16    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~20     !5, 'url'
         17        BOOL_NOT                                         ~21     ~20
         18        BOOL                                             ~19     ~21
         19    > > JMPZ                                                     ~19, ->23
         20    >   FETCH_DIM_R                                      ~22     !5, 'url'
         21        QM_ASSIGN                                        ~23     ~22
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~23     !5
         24    >   ASSIGN                                                   !7, ~23
   72    25        INIT_FCALL_BY_NAME                                       'curl_setopt'
         26        CHECK_FUNC_ARG                                           
         27        FETCH_DIM_FUNC_ARG                               $25     !2, !6
         28        SEND_FUNC_ARG                                            $25
         29        FETCH_CONSTANT                                   ~26     'CURLOPT_URL'
         30        SEND_VAL_EX                                              ~26
         31        SEND_VAR_EX                                              !7
         32        DO_FCALL                                      0          
   73    33        INIT_FCALL_BY_NAME                                       'curl_setopt'
         34        CHECK_FUNC_ARG                                           
         35        FETCH_DIM_FUNC_ARG                               $28     !2, !6
         36        SEND_FUNC_ARG                                            $28
         37        FETCH_CONSTANT                                   ~29     'CURLOPT_HEADER'
         38        SEND_VAL_EX                                              ~29
         39        SEND_VAL_EX                                              0
         40        DO_FCALL                                      0          
   74    41        INIT_FCALL_BY_NAME                                       'curl_setopt'
         42        CHECK_FUNC_ARG                                           
         43        FETCH_DIM_FUNC_ARG                               $31     !2, !6
         44        SEND_FUNC_ARG                                            $31
         45        FETCH_CONSTANT                                   ~32     'CURLOPT_RETURNTRANSFER'
         46        SEND_VAL_EX                                              ~32
         47        SEND_VAL_EX                                              1
         48        DO_FCALL                                      0          
   77    49        TYPE_CHECK                                  128          !5
         50      > JMPZ                                                     ~34, ->72
   78    51    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~35     !5, 'post'
         52        BOOL_NOT                                         ~36     ~35
         53      > JMPZ                                                     ~36, ->72
   79    54    >   INIT_FCALL_BY_NAME                                       'curl_setopt'
         55        CHECK_FUNC_ARG                                           
         56        FETCH_DIM_FUNC_ARG                               $37     !2, !6
         57        SEND_FUNC_ARG                                            $37
         58        FETCH_CONSTANT                                   ~38     'CURLOPT_POST'
         59        SEND_VAL_EX                                              ~38
         60        SEND_VAL_EX                                              1
         61        DO_FCALL                                      0          
   80    62        INIT_FCALL_BY_NAME                                       'curl_setopt'
         63        CHECK_FUNC_ARG                                           
         64        FETCH_DIM_FUNC_ARG                               $40     !2, !6
         65        SEND_FUNC_ARG                                            $40
         66        FETCH_CONSTANT                                   ~41     'CURLOPT_POSTFIELDS'
         67        SEND_VAL_EX                                              ~41
         68        CHECK_FUNC_ARG                                           
         69        FETCH_DIM_FUNC_ARG                               $42     !5, 'post'
         70        SEND_FUNC_ARG                                            $42
         71        DO_FCALL                                      0          
   85    72    >   ISSET_ISEMPTY_CV                                 ~44     !1
         73        BOOL_NOT                                         ~45     ~44
         74      > JMPZ                                                     ~45, ->81
   86    75    >   INIT_FCALL_BY_NAME                                       'curl_setopt_array'
         76        CHECK_FUNC_ARG                                           
         77        FETCH_DIM_FUNC_ARG                               $46     !2, !6
         78        SEND_FUNC_ARG                                            $46
         79        SEND_VAR_EX                                              !1
         80        DO_FCALL                                      0          
   89    81    >   INIT_FCALL_BY_NAME                                       'curl_multi_add_handle'
         82        SEND_VAR_EX                                              !4
         83        CHECK_FUNC_ARG                                           
         84        FETCH_DIM_FUNC_ARG                               $48     !2, !6
         85        SEND_FUNC_ARG                                            $48
         86        DO_FCALL                                      0          
   67    87      > JMP                                                      ->8
         88    >   FE_FREE                                                  $14
   93    89        ASSIGN                                                   !8, null
   95    90    >   INIT_FCALL_BY_NAME                                       'curl_multi_exec'
         91        SEND_VAR_EX                                              !4
         92        SEND_VAR_EX                                              !8
         93        DO_FCALL                                      0          
   96    94        IS_SMALLER                                               0, !8
         95      > JMPNZ                                                    ~52, ->90
  100    96    > > FE_RESET_R                                       $53     !2, ->109
         97    > > FE_FETCH_R                                       ~54     $53, !9, ->109
         98    >   ASSIGN                                                   !6, ~54
  101    99        INIT_FCALL_BY_NAME                                       'curl_multi_getcontent'
        100        SEND_VAR_EX                                              !9
        101        DO_FCALL                                      0  $57     
        102        ASSIGN_DIM                                               !3, !6
        103        OP_DATA                                                  $57
  102   104        INIT_FCALL_BY_NAME                                       'curl_multi_remove_handle'
        105        SEND_VAR_EX                                              !4
        106        SEND_VAR_EX                                              !9
        107        DO_FCALL                                      0          
  100   108      > JMP                                                      ->97
        109    >   FE_FREE                                                  $53
  106   110        INIT_FCALL_BY_NAME                                       'curl_multi_close'
        111        SEND_VAR_EX                                              !4
        112        DO_FCALL                                      0          
  108   113      > RETURN                                                   !3
  109   114*     > RETURN                                                   null

End of function multirequest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.79 ms | 1427 KiB | 26 Q