3v4l.org

run code in 300+ PHP versions simultaneously
<?php ##################################### # # CoSo cleaner. Delete posts older than X days # # Find me at awk_it_up@counter.social # # usage php ./coso_cleaner.php [--dry-run] # # Steps # # 1. Get your CoSo ID. # * Log into CoSo. # * Click your @name to view your profile. # * In the URL bar you will see the URL is now https://counter.social/web/accounts/XXXXXX. XXXXX is your CoSo ID. # * Copy that XXXXX value into the $coso_id variable below. # 2. Create a CoSo app. # * Edit your profile in CoSo and click the "Developement" link. # * Click the New Application button # * Create name (doesn't matter what) # * Select the Scopes: read & write and click the Submit button. This will bring you to the "Your Applications" page # * Click the name of your new application. # * Copy the "Your access token" value and paste it into the $coso_key variable below. # 3. Decide how many days of toots you want to keep and enter that value into the $age variable below. Default is 7. # 4. If you want to keep toots with specific tags regardless of age, enter the tags into the $ignore_tags variable below. Case insensitive, comma separated (no spaces), leave "" for none. # 5. If you want to keep specific toots regardless of age, enter the toot ID(s) into the $ignore_toots variable below. Case insensitive, comma separated (no spaces), leave "" for none. # 6. Run CoSo cleaner # * This is a PHP script so you must run it on a system with PHP installed # * The PHP curl module must also be installed # * Run: 'php coso_cleaner.php' or 'php ./coso_cleaner.php' on Linux systems # * Use the --dry-run switch to see what coso_cleaner WOULD delete, but not delete it # 7. Automate it # * On a system with a cron scheduler, use this entry to run it every day at 1AM # * 0 1 * * * /path/to/coso_cleaner/coso_cleaner.php >> /path/to/coso_cleaner/coso_cleaner.log # 8. Verify # * Check the coso_cleaner.log each day to see what it has deleted # #################################### $coso_key="82567dce7a829c44008c9d41bf65425a378fca5fd5548d4bc59aba09edbd6478"; # Your CoSo Key $coso_id="11036"; # Your CoSo ID $age = 6; # In days $ignore_tags = "cososec, pipepoem, cosopoetry, explicit"; # Comma separated, no spaces, leave "" for none. $ignore_toots =""; # Comma separated, no spaces, leave "" for none. ## Should not have to change anything below this $limit=40; $since_id=0; $url = "https://counter.social/api/v1/accounts/$coso_id/statuses?limit=$limit"; $statuses; $num_statuses; $max_status=0; $min_status=0; $status_array=[]; $range = 0; $min_date = 0; $dry_run = FALSE; $date = time(); $delete = 0; # Dry run? if ( isset($argv[1]) && $argv[1] == "--dry-run" ) { $dry_run = TRUE; print "Doing dry run (will not actually delete anything.\n"; } # Tags to ignore? if ( strlen($ignore_tags) > 0 ) { $ignore_tag_array = explode(",", $ignore_tags); print "Ignoring tags: $ignore_tags\n"; } # Toots to ignore? if ( strlen($ignore_toots) > 0 ) { $ignore_toot_array = explode(",", $ignore_toots); print "Ignoring toots: $ignore_toots\n"; } print "Run time: ".date("Y-M-d:H:i:s")."\n"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer $coso_key")); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_USERAGENT, 'CoSo Cleaner: awk_it_up@counter.social'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_MAXREDIRS, 0); $output = curl_exec($ch); curl_close($ch); $statuses = json_decode($output, TRUE); $num_statuses = $statuses[0]['account']['statuses_count']."\n"; # Find status id range $min_status = $statuses[0]['id']; print "Statuses found: $num_statuses\n"; # Get the max and min status IDs for ( $i = 0 ; $i < $num_statuses; $i += $limit ) { foreach ($statuses as $status ) { $delete = 1; if ( $max_status < $status['id'] ) { $max_status = $status['id']; } if ( $min_status > $status['id'] ) { $min_status = $status['id']; } # Ignore toots with specified IDs set if ( @count($ignore_toot_array) > 0) { foreach ($ignore_toot_array as $ignore_toot ) { if ( ($status['id'] == $ignore_toot) && $delete == 1 ) { $delete = 0; break; } else { $delete = 1; } } } # Ignore toots with specified tag set if ( count($status['tags']) > 0 && @count($ignore_tag_array) > 0 ) { foreach ($ignore_tag_array as $ignore_tag) { foreach ($status['tags'] as $status_tag ) { if ( $ignore_tag == $status_tag['name'] && $delete == 1 ) { $delete = 0; break 2; } else { $delete = 1; } } } } if ( $delete == 1 ) { $status_array[$status['id']]['id'] = $status['id']; $status_array[$status['id']]['date'] = $status['created_at']; $status_array[$status['id']]['content'] = $status['content']; } } # Reset curl to get the next batch o' statuses $url = "https://counter.social/api/v1/accounts/$coso_id/statuses?limit=$limit&max_id=$min_status"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer $coso_key")); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_USERAGENT, 'CoSo Cleaner: awk_it_up@counter.social'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_MAXREDIRS, 0); $output = curl_exec($ch); curl_close($ch); $statuses = json_decode($output, TRUE); } # Set up the date parameters $range =$age*86400; $today = time(); $min_date = $today - $range; # Set up the generic curl params again $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer $coso_key")); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_USERAGENT, 'CoSo Cleaner: awk_it_up@counter.social'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_MAXREDIRS, 0); # Delete 'em! $delete = 0; foreach ($status_array as $status ) { if ( strtotime($status['date']) < $min_date ) { $delete++; if ( $dry_run ) { print "Dry run: Status ".$status['id']." on ".$status['date'].": \"".$status['content']."\" is in scope, but not actually being deleted due to dry run.\n\n\n"; } else { print "Deleting ".$status['id']." on ".$status['date'].": \"".$status['content']."\"\n\n\n"; curl_setopt($ch, CURLOPT_URL, "https://counter.social/api/v1/statuses/".$status['id']); curl_exec($ch); } } } print "Total affected toots: $delete.\n"; # Cleanup, bye bye. curl_close($ch);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 42
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 54
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 273
Branch analysis from position: 273
2 jumps found. (Code = 44) Position 1 = 275, Position 2 = 129
Branch analysis from position: 275
2 jumps found. (Code = 77) Position 1 = 332, Position 2 = 374
Branch analysis from position: 332
2 jumps found. (Code = 78) Position 1 = 333, Position 2 = 374
Branch analysis from position: 333
2 jumps found. (Code = 43) Position 1 = 339, Position 2 = 373
Branch analysis from position: 339
2 jumps found. (Code = 43) Position 1 = 341, Position 2 = 352
Branch analysis from position: 341
1 jumps found. (Code = 42) Position 1 = 373
Branch analysis from position: 373
1 jumps found. (Code = 42) Position 1 = 332
Branch analysis from position: 332
Branch analysis from position: 352
1 jumps found. (Code = 42) Position 1 = 332
Branch analysis from position: 332
Branch analysis from position: 373
Branch analysis from position: 374
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 374
Branch analysis from position: 129
2 jumps found. (Code = 77) Position 1 = 130, Position 2 = 209
Branch analysis from position: 130
2 jumps found. (Code = 78) Position 1 = 131, Position 2 = 209
Branch analysis from position: 131
2 jumps found. (Code = 43) Position 1 = 135, Position 2 = 137
Branch analysis from position: 135
2 jumps found. (Code = 43) Position 1 = 140, Position 2 = 142
Branch analysis from position: 140
2 jumps found. (Code = 43) Position 1 = 147, Position 2 = 161
Branch analysis from position: 147
2 jumps found. (Code = 77) Position 1 = 148, Position 2 = 160
Branch analysis from position: 148
2 jumps found. (Code = 78) Position 1 = 149, Position 2 = 160
Branch analysis from position: 149
2 jumps found. (Code = 46) Position 1 = 152, Position 2 = 154
Branch analysis from position: 152
2 jumps found. (Code = 43) Position 1 = 155, Position 2 = 158
Branch analysis from position: 155
1 jumps found. (Code = 42) Position 1 = 160
Branch analysis from position: 160
2 jumps found. (Code = 46) Position 1 = 165, Position 2 = 170
Branch analysis from position: 165
2 jumps found. (Code = 43) Position 1 = 171, Position 2 = 191
Branch analysis from position: 171
2 jumps found. (Code = 77) Position 1 = 172, Position 2 = 190
Branch analysis from position: 172
2 jumps found. (Code = 78) Position 1 = 173, Position 2 = 190
Branch analysis from position: 173
2 jumps found. (Code = 77) Position 1 = 175, Position 2 = 188
Branch analysis from position: 175
2 jumps found. (Code = 78) Position 1 = 176, Position 2 = 188
Branch analysis from position: 176
2 jumps found. (Code = 46) Position 1 = 179, Position 2 = 181
Branch analysis from position: 179
2 jumps found. (Code = 43) Position 1 = 182, Position 2 = 186
Branch analysis from position: 182
1 jumps found. (Code = 42) Position 1 = 190
Branch analysis from position: 190
2 jumps found. (Code = 43) Position 1 = 193, Position 2 = 208
Branch analysis from position: 193
1 jumps found. (Code = 42) Position 1 = 130
Branch analysis from position: 130
Branch analysis from position: 208
Branch analysis from position: 186
1 jumps found. (Code = 42) Position 1 = 175
Branch analysis from position: 175
Branch analysis from position: 181
Branch analysis from position: 188
1 jumps found. (Code = 42) Position 1 = 172
Branch analysis from position: 172
Branch analysis from position: 188
Branch analysis from position: 190
Branch analysis from position: 190
Branch analysis from position: 191
Branch analysis from position: 170
Branch analysis from position: 158
1 jumps found. (Code = 42) Position 1 = 148
Branch analysis from position: 148
Branch analysis from position: 154
Branch analysis from position: 160
Branch analysis from position: 160
Branch analysis from position: 161
Branch analysis from position: 142
Branch analysis from position: 137
Branch analysis from position: 209
2 jumps found. (Code = 44) Position 1 = 275, Position 2 = 129
Branch analysis from position: 275
Branch analysis from position: 129
Branch analysis from position: 209
Branch analysis from position: 54
Branch analysis from position: 42
Branch analysis from position: 30
Branch analysis from position: 27
filename:       /in/uu7XN
function name:  (null)
number of ops:  383
compiled vars:  !0 = $coso_key, !1 = $coso_id, !2 = $age, !3 = $ignore_tags, !4 = $ignore_toots, !5 = $limit, !6 = $since_id, !7 = $url, !8 = $statuses, !9 = $num_statuses, !10 = $max_status, !11 = $min_status, !12 = $status_array, !13 = $range, !14 = $min_date, !15 = $dry_run, !16 = $date, !17 = $delete, !18 = $argv, !19 = $ignore_tag_array, !20 = $ignore_toot_array, !21 = $ch, !22 = $output, !23 = $i, !24 = $status, !25 = $ignore_toot, !26 = $ignore_tag, !27 = $status_tag, !28 = $today
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   ASSIGN                                                   !0, '82567dce7a829c44008c9d41bf65425a378fca5fd5548d4bc59aba09edbd6478'
   41     1        ASSIGN                                                   !1, '11036'
   42     2        ASSIGN                                                   !2, 6
   43     3        ASSIGN                                                   !3, 'cososec%2C+pipepoem%2C+cosopoetry%2C+explicit'
   44     4        ASSIGN                                                   !4, ''
   47     5        ASSIGN                                                   !5, 40
   48     6        ASSIGN                                                   !6, 0
   49     7        ROPE_INIT                                     4  ~37     'https%3A%2F%2Fcounter.social%2Fapi%2Fv1%2Faccounts%2F'
          8        ROPE_ADD                                      1  ~37     ~37, !1
          9        ROPE_ADD                                      2  ~37     ~37, '%2Fstatuses%3Flimit%3D'
         10        ROPE_END                                      3  ~36     ~37, !5
         11        ASSIGN                                                   !7, ~36
   52    12        ASSIGN                                                   !10, 0
   53    13        ASSIGN                                                   !11, 0
   54    14        ASSIGN                                                   !12, <array>
   55    15        ASSIGN                                                   !13, 0
   56    16        ASSIGN                                                   !14, 0
   57    17        ASSIGN                                                   !15, <false>
   58    18        INIT_FCALL                                               'time'
         19        DO_ICALL                                         $46     
         20        ASSIGN                                                   !16, $46
   59    21        ASSIGN                                                   !17, 0
   62    22        ISSET_ISEMPTY_DIM_OBJ                         0  ~49     !18, 1
         23      > JMPZ_EX                                          ~49     ~49, ->27
         24    >   FETCH_DIM_R                                      ~50     !18, 1
         25        IS_EQUAL                                         ~51     ~50, '--dry-run'
         26        BOOL                                             ~49     ~51
         27    > > JMPZ                                                     ~49, ->30
   63    28    >   ASSIGN                                                   !15, <true>
   64    29        ECHO                                                     'Doing+dry+run+%28will+not+actually+delete+anything.%0A'
   68    30    >   STRLEN                                           ~53     !3
         31        IS_SMALLER                                               0, ~53
         32      > JMPZ                                                     ~54, ->42
   69    33    >   INIT_FCALL                                               'explode'
         34        SEND_VAL                                                 '%2C'
         35        SEND_VAR                                                 !3
         36        DO_ICALL                                         $55     
         37        ASSIGN                                                   !19, $55
   70    38        ROPE_INIT                                     3  ~58     'Ignoring+tags%3A+'
         39        ROPE_ADD                                      1  ~58     ~58, !3
         40        ROPE_END                                      2  ~57     ~58, '%0A'
         41        ECHO                                                     ~57
   74    42    >   STRLEN                                           ~60     !4
         43        IS_SMALLER                                               0, ~60
         44      > JMPZ                                                     ~61, ->54
   75    45    >   INIT_FCALL                                               'explode'
         46        SEND_VAL                                                 '%2C'
         47        SEND_VAR                                                 !4
         48        DO_ICALL                                         $62     
         49        ASSIGN                                                   !20, $62
   76    50        ROPE_INIT                                     3  ~65     'Ignoring+toots%3A+'
         51        ROPE_ADD                                      1  ~65     ~65, !4
         52        ROPE_END                                      2  ~64     ~65, '%0A'
         53        ECHO                                                     ~64
   79    54    >   INIT_FCALL                                               'date'
         55        SEND_VAL                                                 'Y-M-d%3AH%3Ai%3As'
         56        DO_ICALL                                         $67     
         57        CONCAT                                           ~68     'Run+time%3A+', $67
         58        CONCAT                                           ~69     ~68, '%0A'
         59        ECHO                                                     ~69
   81    60        INIT_FCALL_BY_NAME                                       'curl_init'
         61        SEND_VAR_EX                                              !7
         62        DO_FCALL                                      0  $70     
         63        ASSIGN                                                   !21, $70
   82    64        INIT_FCALL_BY_NAME                                       'curl_setopt'
         65        SEND_VAR_EX                                              !21
         66        FETCH_CONSTANT                                   ~72     'CURLOPT_HTTPHEADER'
         67        SEND_VAL_EX                                              ~72
         68        NOP                                                      
         69        FAST_CONCAT                                      ~73     'Authorization%3A+Bearer+', !0
         70        INIT_ARRAY                                       ~74     ~73
         71        SEND_VAL_EX                                              ~74
         72        DO_FCALL                                      0          
   83    73        INIT_FCALL_BY_NAME                                       'curl_setopt'
         74        SEND_VAR_EX                                              !21
         75        FETCH_CONSTANT                                   ~76     'CURLOPT_RETURNTRANSFER'
         76        SEND_VAL_EX                                              ~76
         77        SEND_VAL_EX                                              1
         78        DO_FCALL                                      0          
   84    79        INIT_FCALL_BY_NAME                                       'curl_setopt'
         80        SEND_VAR_EX                                              !21
         81        FETCH_CONSTANT                                   ~78     'CURLOPT_CONNECTTIMEOUT'
         82        SEND_VAL_EX                                              ~78
         83        SEND_VAL_EX                                              10
         84        DO_FCALL                                      0          
   85    85        INIT_FCALL_BY_NAME                                       'curl_setopt'
         86        SEND_VAR_EX                                              !21
         87        FETCH_CONSTANT                                   ~80     'CURLOPT_USERAGENT'
         88        SEND_VAL_EX                                              ~80
         89        SEND_VAL_EX                                              'CoSo+Cleaner%3A+awk_it_up%40counter.social'
         90        DO_FCALL                                      0          
   86    91        INIT_FCALL_BY_NAME                                       'curl_setopt'
         92        SEND_VAR_EX                                              !21
         93        FETCH_CONSTANT                                   ~82     'CURLOPT_FOLLOWLOCATION'
         94        SEND_VAL_EX                                              ~82
         95        SEND_VAL_EX                                              <true>
         96        DO_FCALL                                      0          
   87    97        INIT_FCALL_BY_NAME                                       'curl_setopt'
         98        SEND_VAR_EX                                              !21
         99        FETCH_CONSTANT                                   ~84     'CURLOPT_MAXREDIRS'
        100        SEND_VAL_EX                                              ~84
        101        SEND_VAL_EX                                              0
        102        DO_FCALL                                      0          
   88   103        INIT_FCALL_BY_NAME                                       'curl_exec'
        104        SEND_VAR_EX                                              !21
        105        DO_FCALL                                      0  $86     
        106        ASSIGN                                                   !22, $86
   89   107        INIT_FCALL_BY_NAME                                       'curl_close'
        108        SEND_VAR_EX                                              !21
        109        DO_FCALL                                      0          
   91   110        INIT_FCALL                                               'json_decode'
        111        SEND_VAR                                                 !22
        112        SEND_VAL                                                 <true>
        113        DO_ICALL                                         $89     
        114        ASSIGN                                                   !8, $89
   92   115        FETCH_DIM_R                                      ~91     !8, 0
        116        FETCH_DIM_R                                      ~92     ~91, 'account'
        117        FETCH_DIM_R                                      ~93     ~92, 'statuses_count'
        118        CONCAT                                           ~94     ~93, '%0A'
        119        ASSIGN                                                   !9, ~94
   95   120        FETCH_DIM_R                                      ~96     !8, 0
        121        FETCH_DIM_R                                      ~97     ~96, 'id'
        122        ASSIGN                                                   !11, ~97
   96   123        ROPE_INIT                                     3  ~100    'Statuses+found%3A+'
        124        ROPE_ADD                                      1  ~100    ~100, !9
        125        ROPE_END                                      2  ~99     ~100, '%0A'
        126        ECHO                                                     ~99
   99   127        ASSIGN                                                   !23, 0
        128      > JMP                                                      ->273
  100   129    > > FE_RESET_R                                       $103    !8, ->209
        130    > > FE_FETCH_R                                               $103, !24, ->209
  101   131    >   ASSIGN                                                   !17, 1
  103   132        FETCH_DIM_R                                      ~105    !24, 'id'
        133        IS_SMALLER                                               !10, ~105
        134      > JMPZ                                                     ~106, ->137
  104   135    >   FETCH_DIM_R                                      ~107    !24, 'id'
        136        ASSIGN                                                   !10, ~107
  106   137    >   FETCH_DIM_R                                      ~109    !24, 'id'
        138        IS_SMALLER                                               ~109, !11
        139      > JMPZ                                                     ~110, ->142
  107   140    >   FETCH_DIM_R                                      ~111    !24, 'id'
        141        ASSIGN                                                   !11, ~111
  112   142    >   BEGIN_SILENCE                                    ~113    
        143        COUNT                                            ~114    !20
        144        END_SILENCE                                              ~113
        145        IS_SMALLER                                               0, ~114
        146      > JMPZ                                                     ~115, ->161
  113   147    > > FE_RESET_R                                       $116    !20, ->160
        148    > > FE_FETCH_R                                               $116, !25, ->160
  114   149    >   FETCH_DIM_R                                      ~117    !24, 'id'
        150        IS_EQUAL                                         ~118    !25, ~117
        151      > JMPZ_EX                                          ~118    ~118, ->154
        152    >   IS_EQUAL                                         ~119    !17, 1
        153        BOOL                                             ~118    ~119
        154    > > JMPZ                                                     ~118, ->158
  115   155    >   ASSIGN                                                   !17, 0
  116   156      > JMP                                                      ->160
        157*       JMP                                                      ->159
  119   158    >   ASSIGN                                                   !17, 1
  113   159      > JMP                                                      ->148
        160    >   FE_FREE                                                  $116
  125   161    >   FETCH_DIM_R                                      ~122    !24, 'tags'
        162        COUNT                                            ~123    ~122
        163        IS_SMALLER                                       ~124    0, ~123
        164      > JMPZ_EX                                          ~124    ~124, ->170
        165    >   BEGIN_SILENCE                                    ~125    
        166        COUNT                                            ~126    !19
        167        END_SILENCE                                              ~125
        168        IS_SMALLER                                       ~127    0, ~126
        169        BOOL                                             ~124    ~127
        170    > > JMPZ                                                     ~124, ->191
  126   171    > > FE_RESET_R                                       $128    !19, ->190
        172    > > FE_FETCH_R                                               $128, !26, ->190
  127   173    >   FETCH_DIM_R                                      ~129    !24, 'tags'
        174      > FE_RESET_R                                       $130    ~129, ->188
        175    > > FE_FETCH_R                                               $130, !27, ->188
  128   176    >   FETCH_DIM_R                                      ~131    !27, 'name'
        177        IS_EQUAL                                         ~132    !26, ~131
        178      > JMPZ_EX                                          ~132    ~132, ->181
        179    >   IS_EQUAL                                         ~133    !17, 1
        180        BOOL                                             ~132    ~133
        181    > > JMPZ                                                     ~132, ->186
  129   182    >   ASSIGN                                                   !17, 0
  130   183        FE_FREE                                                  $130
        184      > JMP                                                      ->190
        185*       JMP                                                      ->187
  133   186    >   ASSIGN                                                   !17, 1
  127   187      > JMP                                                      ->175
        188    >   FE_FREE                                                  $130
  126   189      > JMP                                                      ->172
        190    >   FE_FREE                                                  $128
  139   191    >   IS_EQUAL                                                 !17, 1
        192      > JMPZ                                                     ~136, ->208
  140   193    >   FETCH_DIM_R                                      ~137    !24, 'id'
        194        FETCH_DIM_R                                      ~140    !24, 'id'
        195        FETCH_DIM_W                                      $138    !12, ~137
        196        ASSIGN_DIM                                               $138, 'id'
        197        OP_DATA                                                  ~140
  141   198        FETCH_DIM_R                                      ~141    !24, 'id'
        199        FETCH_DIM_R                                      ~144    !24, 'created_at'
        200        FETCH_DIM_W                                      $142    !12, ~141
        201        ASSIGN_DIM                                               $142, 'date'
        202        OP_DATA                                                  ~144
  142   203        FETCH_DIM_R                                      ~145    !24, 'id'
        204        FETCH_DIM_R                                      ~148    !24, 'content'
        205        FETCH_DIM_W                                      $146    !12, ~145
        206        ASSIGN_DIM                                               $146, 'content'
        207        OP_DATA                                                  ~148
  100   208    > > JMP                                                      ->130
        209    >   FE_FREE                                                  $103
  147   210        ROPE_INIT                                     6  ~150    'https%3A%2F%2Fcounter.social%2Fapi%2Fv1%2Faccounts%2F'
        211        ROPE_ADD                                      1  ~150    ~150, !1
        212        ROPE_ADD                                      2  ~150    ~150, '%2Fstatuses%3Flimit%3D'
        213        ROPE_ADD                                      3  ~150    ~150, !5
        214        ROPE_ADD                                      4  ~150    ~150, '%26max_id%3D'
        215        ROPE_END                                      5  ~149    ~150, !11
        216        ASSIGN                                                   !7, ~149
  148   217        INIT_FCALL_BY_NAME                                       'curl_init'
        218        SEND_VAR_EX                                              !7
        219        DO_FCALL                                      0  $154    
        220        ASSIGN                                                   !21, $154
  149   221        INIT_FCALL_BY_NAME                                       'curl_setopt'
        222        SEND_VAR_EX                                              !21
        223        FETCH_CONSTANT                                   ~156    'CURLOPT_HTTPHEADER'
        224        SEND_VAL_EX                                              ~156
        225        NOP                                                      
        226        FAST_CONCAT                                      ~157    'Authorization%3A+Bearer+', !0
        227        INIT_ARRAY                                       ~158    ~157
        228        SEND_VAL_EX                                              ~158
        229        DO_FCALL                                      0          
  150   230        INIT_FCALL_BY_NAME                                       'curl_setopt'
        231        SEND_VAR_EX                                              !21
        232        FETCH_CONSTANT                                   ~160    'CURLOPT_RETURNTRANSFER'
        233        SEND_VAL_EX                                              ~160
        234        SEND_VAL_EX                                              1
        235        DO_FCALL                                      0          
  151   236        INIT_FCALL_BY_NAME                                       'curl_setopt'
        237        SEND_VAR_EX                                              !21
        238        FETCH_CONSTANT                                   ~162    'CURLOPT_CONNECTTIMEOUT'
        239        SEND_VAL_EX                                              ~162
        240        SEND_VAL_EX                                              10
        241        DO_FCALL                                      0          
  152   242        INIT_FCALL_BY_NAME                                       'curl_setopt'
        243        SEND_VAR_EX                                              !21
        244        FETCH_CONSTANT                                   ~164    'CURLOPT_USERAGENT'
        245        SEND_VAL_EX                                              ~164
        246        SEND_VAL_EX                                              'CoSo+Cleaner%3A+awk_it_up%40counter.social'
        247        DO_FCALL                                      0          
  153   248        INIT_FCALL_BY_NAME                                       'curl_setopt'
        249        SEND_VAR_EX                                              !21
        250        FETCH_CONSTANT                                   ~166    'CURLOPT_FOLLOWLOCATION'
        251        SEND_VAL_EX                                              ~166
        252        SEND_VAL_EX                                              <true>
        253        DO_FCALL                                      0          
  154   254        INIT_FCALL_BY_NAME                                       'curl_setopt'
        255        SEND_VAR_EX                                              !21
        256        FETCH_CONSTANT                                   ~168    'CURLOPT_MAXREDIRS'
        257        SEND_VAL_EX                                              ~168
        258        SEND_VAL_EX                                              0
        259        DO_FCALL                                      0          
  155   260        INIT_FCALL_BY_NAME                                       'curl_exec'
        261        SEND_VAR_EX                                              !21
        262        DO_FCALL                                      0  $170    
        263        ASSIGN                                                   !22, $170
  156   264        INIT_FCALL_BY_NAME                                       'curl_close'
        265        SEND_VAR_EX                                              !21
        266        DO_FCALL                                      0          
  157   267        INIT_FCALL                                               'json_decode'
        268        SEND_VAR                                                 !22
        269        SEND_VAL                                                 <true>
        270        DO_ICALL                                         $173    
        271        ASSIGN                                                   !8, $173
   99   272        ASSIGN_OP                                     1          !23, !5
        273    >   IS_SMALLER                                               !23, !9
        274      > JMPNZ                                                    ~176, ->129
  161   275    >   MUL                                              ~177    !2, 86400
        276        ASSIGN                                                   !13, ~177
  162   277        INIT_FCALL                                               'time'
        278        DO_ICALL                                         $179    
        279        ASSIGN                                                   !28, $179
  163   280        SUB                                              ~181    !28, !13
        281        ASSIGN                                                   !14, ~181
  166   282        INIT_FCALL_BY_NAME                                       'curl_init'
        283        DO_FCALL                                      0  $183    
        284        ASSIGN                                                   !21, $183
  167   285        INIT_FCALL_BY_NAME                                       'curl_setopt'
        286        SEND_VAR_EX                                              !21
        287        FETCH_CONSTANT                                   ~185    'CURLOPT_HTTPHEADER'
        288        SEND_VAL_EX                                              ~185
        289        NOP                                                      
        290        FAST_CONCAT                                      ~186    'Authorization%3A+Bearer+', !0
        291        INIT_ARRAY                                       ~187    ~186
        292        SEND_VAL_EX                                              ~187
        293        DO_FCALL                                      0          
  168   294        INIT_FCALL_BY_NAME                                       'curl_setopt'
        295        SEND_VAR_EX                                              !21
        296        FETCH_CONSTANT                                   ~189    'CURLOPT_CUSTOMREQUEST'
        297        SEND_VAL_EX                                              ~189
        298        SEND_VAL_EX                                              'DELETE'
        299        DO_FCALL                                      0          
  169   300        INIT_FCALL_BY_NAME                                       'curl_setopt'
        301        SEND_VAR_EX                                              !21
        302        FETCH_CONSTANT                                   ~191    'CURLOPT_RETURNTRANSFER'
        303        SEND_VAL_EX                                              ~191
        304        SEND_VAL_EX                                              1
        305        DO_FCALL                                      0          
  170   306        INIT_FCALL_BY_NAME                                       'curl_setopt'
        307        SEND_VAR_EX                                              !21
        308        FETCH_CONSTANT                                   ~193    'CURLOPT_CONNECTTIMEOUT'
        309        SEND_VAL_EX                                              ~193
        310        SEND_VAL_EX                                              10
        311        DO_FCALL                                      0          
  171   312        INIT_FCALL_BY_NAME                                       'curl_setopt'
        313        SEND_VAR_EX                                              !21
        314        FETCH_CONSTANT                                   ~195    'CURLOPT_USERAGENT'
        315        SEND_VAL_EX                                              ~195
        316        SEND_VAL_EX                                              'CoSo+Cleaner%3A+awk_it_up%40counter.social'
        317        DO_FCALL                                      0          
  172   318        INIT_FCALL_BY_NAME                                       'curl_setopt'
        319        SEND_VAR_EX                                    

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.83 ms | 1428 KiB | 21 Q