3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = date('Y-m-d h:20'); $today = date('Y-m-d'); $afternoon = date('Y-m-d 17:27'); // require Facebook PHP SDK // see: https://developers.facebook.com/docs/php/gettingstarted/ require_once("sdk/facebook.php"); // initialize Facebook class using your own Facebook App credentials // see: https://developers.facebook.com/docs/php/gettingstarted/#install $config = array(); $config['appId'] = '290692250950652'; // configure appropriately $config['secret'] = 'b796627dc623cee90ac49ac806d6b4e8'; // configure appropriately $config['fileUpload'] = false; // optional $fb = new Facebook($config); $user_id="1740048734"; $page_id="127287113972280"; $group_id="115454235207375"; $user_token = array(); $page_token = array(); $user_token['access_token'] = 'CAAEIYhBbWZCwBAEkHQxFNWkdVY52PGapKqccqQX2QlLHM2pqZB1dR7oumasYUhCkAZCW95Ab4f3HmzpPygWXkrHk0fl1t1iaGlfyaCjG04B8shEx3Bp3VzVakM5xZAFBUOLZB3T8TirYWwAGrZBrAEexymrA5YXGYMFgipex0Ho1kmt3BWdhVebcU2GLPJBiMZD'; $fb->setAccessToken($user_token['access_token']); $accounts = $fb->api('/'.$user_id.'/accounts'); foreach($accounts['data'] as $account){ if($account['id'] == $page_id){ $page_token['access_token'] = $account['access_token']; } } $conn = new mysqli("localhost", "mvawzuyw_admin", "#veyron_153", "mvawzuyw_sharecenter"); if ($conn->connect_error) { trigger_error('Database connection failed: ' . $conn->connect_error, E_USER_ERROR); } // create array with topics to be posted on Facebook $sql = 'SELECT * FROM queue WHERE date IS NOT NULL AND count > 0 ORDER BY date ASC'; $rs = $conn->query($sql); if($rs === false) { $user_error = 'Wrong SQL: ' . $sql . '<br>' . 'Error: ' . $conn->errno . ' ' . $conn->error; trigger_error($user_error, E_USER_ERROR); } $rs->data_seek(0); $share_topics = array(); while($res = $rs->fetch_assoc()) { $a_topic = array( "url" => $res["url"], "title" => $res["title"], "message" => $res["message"], "description" => $res["description"], "image" => $res["image"], "targets" => $res["targets"], "event_date" => $res["event_date"], "photo" => $res["photo"], "count" => $res["count"], "date" => $res["date"] ); array_push($share_topics, $a_topic); } $rs->free(); foreach($share_topics as $share_topic) { if($share_topic['date'] == $now ) { // define POST parameters $content = array( "message" => $share_topic["message"], "link" => $share_topic["url"], "name" => $share_topic["title"], "caption" => "https://sekazone.ro", // configure appropriately "description" => $share_topic["description"] ); try { $ret = $fb->api('/'.$page_id.'/feed', 'POST', array_merge($page_token, $content)); echo 'Successfully posted to Facebook'; } catch(Exception $e) { echo $e->getMessage(); } sleep(10); try { $ret = $fb->api('/'.$user_id.'/feed', 'POST', array_merge($user_token, $content)); echo 'Successfully posted to Facebook'; } catch(Exception $e) { echo $e->getMessage(); } sleep(10); try { $ret = $fb->api('/'.$group_id.'/feed', 'POST', array_merge($user_token, $content)); echo 'Successfully posted to Facebook'; } catch(Exception $e) { echo $e->getMessage(); } sleep(10); foreach ($share_topic['targets'] as $value) { try { $ret = $fb->api('/'.$value.'/feed', 'POST', array_merge($user_token, $content)); echo 'Successfully posted to Facebook'; } catch(Exception $e) { echo $e->getMessage(); } sleep(25); } $share_topic["count"] = $share_topic["count"] -1; $sql = 'UPDATE queue SET count = '.$share_topic['count'].' WHERE url = ' . $share_topic['url']; if($conn->query($sql) === false) : trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); endif; // IS TODAY __________________________________________________________________ } elseif ($share_topic['event_date'] == $today && $now == $afternoon) { $content = array( "message" => $share_topic["message"], "link" => $share_topic["url"], "name" => $share_topic["title"], "caption" => "https://sekazone.ro", // configure appropriately "description" => $share_topic["description"] ); try { $ret = $fb->api('/'.$page_id.'/feed', 'POST', array_merge($page_token, $content)); echo 'Successfully posted to Facebook'; } catch(Exception $e) { echo $e->getMessage(); } sleep(10); try { $ret = $fb->api('/'.$user_id.'/feed', 'POST', array_merge($user_token, $content)); echo 'Successfully posted to Facebook'; } catch(Exception $e) { echo $e->getMessage(); } sleep(10); try { $ret = $fb->api('/'.$group_id.'/feed', 'POST', array_merge($user_token, $content)); echo 'Successfully posted to Facebook'; } catch(Exception $e) { echo $e->getMessage(); } sleep(10); foreach ($share_topic['targets'] as $value) { try { $ret = $fb->api('/'.$value.'/feed', 'POST', array_merge($user_token, $content)); echo 'Successfully posted to Facebook'; } catch(Exception $e) { echo $e->getMessage(); } sleep(25); } $share_topic["count"] = $share_topic["count"] -1; $sql = 'UPDATE queue SET count = '.$share_topic['count'].' WHERE url = ' . $share_topic['url']; if($conn->query($sql) === false) : trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); endif; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 44, Position 2 = 52
Branch analysis from position: 44
2 jumps found. (Code = 78) Position 1 = 45, Position 2 = 52
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 51
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
Branch analysis from position: 51
Branch analysis from position: 52
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 68
Branch analysis from position: 62
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 88
Branch analysis from position: 75
1 jumps found. (Code = 42) Position 1 = 118
Branch analysis from position: 118
2 jumps found. (Code = 44) Position 1 = 122, Position 2 = 93
Branch analysis from position: 122
2 jumps found. (Code = 77) Position 1 = 125, Position 2 = 381
Branch analysis from position: 125
2 jumps found. (Code = 78) Position 1 = 126, Position 2 = 381
Branch analysis from position: 126
2 jumps found. (Code = 43) Position 1 = 129, Position 2 = 252
Branch analysis from position: 129
1 jumps found. (Code = 42) Position 1 = 157
Branch analysis from position: 157
1 jumps found. (Code = 42) Position 1 = 178
Branch analysis from position: 178
1 jumps found. (Code = 42) Position 1 = 199
Branch analysis from position: 199
2 jumps found. (Code = 77) Position 1 = 204, Position 2 = 227
Branch analysis from position: 204
2 jumps found. (Code = 78) Position 1 = 205, Position 2 = 227
Branch analysis from position: 205
1 jumps found. (Code = 42) Position 1 = 223
Branch analysis from position: 223
1 jumps found. (Code = 42) Position 1 = 204
Branch analysis from position: 204
Branch analysis from position: 227
2 jumps found. (Code = 43) Position 1 = 243, Position 2 = 251
Branch analysis from position: 243
1 jumps found. (Code = 42) Position 1 = 380
Branch analysis from position: 380
1 jumps found. (Code = 42) Position 1 = 125
Branch analysis from position: 125
Branch analysis from position: 251
Branch analysis from position: 227
Branch analysis from position: 252
2 jumps found. (Code = 46) Position 1 = 255, Position 2 = 257
Branch analysis from position: 255
2 jumps found. (Code = 43) Position 1 = 258, Position 2 = 380
Branch analysis from position: 258
1 jumps found. (Code = 42) Position 1 = 286
Branch analysis from position: 286
1 jumps found. (Code = 42) Position 1 = 307
Branch analysis from position: 307
1 jumps found. (Code = 42) Position 1 = 328
Branch analysis from position: 328
2 jumps found. (Code = 77) Position 1 = 333, Position 2 = 356
Branch analysis from position: 333
2 jumps found. (Code = 78) Position 1 = 334, Position 2 = 356
Branch analysis from position: 334
1 jumps found. (Code = 42) Position 1 = 352
Branch analysis from position: 352
1 jumps found. (Code = 42) Position 1 = 333
Branch analysis from position: 333
Branch analysis from position: 356
2 jumps found. (Code = 43) Position 1 = 372, Position 2 = 380
Branch analysis from position: 372
1 jumps found. (Code = 42) Position 1 = 125
Branch analysis from position: 125
Branch analysis from position: 380
Branch analysis from position: 356
Branch analysis from position: 380
Branch analysis from position: 257
Branch analysis from position: 381
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 381
Branch analysis from position: 93
2 jumps found. (Code = 44) Position 1 = 122, Position 2 = 93
Branch analysis from position: 122
Branch analysis from position: 93
Branch analysis from position: 88
Branch analysis from position: 68
Branch analysis from position: 52
Found catch point at position: 153
Branch analysis from position: 153
2 jumps found. (Code = 107) Position 1 = 154, Position 2 = -2
Branch analysis from position: 154
1 jumps found. (Code = 42) Position 1 = 178
Branch analysis from position: 178
Found catch point at position: 174
Branch analysis from position: 174
2 jumps found. (Code = 107) Position 1 = 175, Position 2 = -2
Branch analysis from position: 175
1 jumps found. (Code = 42) Position 1 = 199
Branch analysis from position: 199
Found catch point at position: 195
Branch analysis from position: 195
2 jumps found. (Code = 107) Position 1 = 196, Position 2 = -2
Branch analysis from position: 196
2 jumps found. (Code = 77) Position 1 = 204, Position 2 = 227
Branch analysis from position: 204
Branch analysis from position: 227
Found catch point at position: 219
Branch analysis from position: 219
2 jumps found. (Code = 107) Position 1 = 220, Position 2 = -2
Branch analysis from position: 220
1 jumps found. (Code = 42) Position 1 = 204
Branch analysis from position: 204
Found catch point at position: 282
Branch analysis from position: 282
2 jumps found. (Code = 107) Position 1 = 283, Position 2 = -2
Branch analysis from position: 283
1 jumps found. (Code = 42) Position 1 = 307
Branch analysis from position: 307
Found catch point at position: 303
Branch analysis from position: 303
2 jumps found. (Code = 107) Position 1 = 304, Position 2 = -2
Branch analysis from position: 304
1 jumps found. (Code = 42) Position 1 = 328
Branch analysis from position: 328
Found catch point at position: 324
Branch analysis from position: 324
2 jumps found. (Code = 107) Position 1 = 325, Position 2 = -2
Branch analysis from position: 325
2 jumps found. (Code = 77) Position 1 = 333, Position 2 = 356
Branch analysis from position: 333
Branch analysis from position: 356
Found catch point at position: 348
Branch analysis from position: 348
2 jumps found. (Code = 107) Position 1 = 349, Position 2 = -2
Branch analysis from position: 349
1 jumps found. (Code = 42) Position 1 = 333
Branch analysis from position: 333
filename:       /in/6sWhL
function name:  (null)
number of ops:  383
compiled vars:  !0 = $now, !1 = $today, !2 = $afternoon, !3 = $config, !4 = $fb, !5 = $user_id, !6 = $page_id, !7 = $group_id, !8 = $user_token, !9 = $page_token, !10 = $accounts, !11 = $account, !12 = $conn, !13 = $sql, !14 = $rs, !15 = $user_error, !16 = $share_topics, !17 = $a_topic, !18 = $res, !19 = $share_topic, !20 = $content, !21 = $ret, !22 = $e, !23 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+h%3A20'
          2        DO_ICALL                                         $24     
          3        ASSIGN                                                   !0, $24
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y-m-d'
          6        DO_ICALL                                         $26     
          7        ASSIGN                                                   !1, $26
    4     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d+17%3A27'
         10        DO_ICALL                                         $28     
         11        ASSIGN                                                   !2, $28
    7    12        INCLUDE_OR_EVAL                                          'sdk%2Ffacebook.php', REQUIRE_ONCE
   11    13        ASSIGN                                                   !3, <array>
   12    14        ASSIGN_DIM                                               !3, 'appId'
         15        OP_DATA                                                  '290692250950652'
   13    16        ASSIGN_DIM                                               !3, 'secret'
         17        OP_DATA                                                  'b796627dc623cee90ac49ac806d6b4e8'
   14    18        ASSIGN_DIM                                               !3, 'fileUpload'
         19        OP_DATA                                                  <false>
   16    20        NEW                                              $35     'Facebook'
         21        SEND_VAR_EX                                              !3
         22        DO_FCALL                                      0          
         23        ASSIGN                                                   !4, $35
   17    24        ASSIGN                                                   !5, '1740048734'
   18    25        ASSIGN                                                   !6, '127287113972280'
   19    26        ASSIGN                                                   !7, '115454235207375'
   20    27        ASSIGN                                                   !8, <array>
   21    28        ASSIGN                                                   !9, <array>
   24    29        ASSIGN_DIM                                               !8, 'access_token'
         30        OP_DATA                                                  'CAAEIYhBbWZCwBAEkHQxFNWkdVY52PGapKqccqQX2QlLHM2pqZB1dR7oumasYUhCkAZCW95Ab4f3HmzpPygWXkrHk0fl1t1iaGlfyaCjG04B8shEx3Bp3VzVakM5xZAFBUOLZB3T8TirYWwAGrZBrAEexymrA5YXGYMFgipex0Ho1kmt3BWdhVebcU2GLPJBiMZD'
   25    31        INIT_METHOD_CALL                                         !4, 'setAccessToken'
         32        CHECK_FUNC_ARG                                           
         33        FETCH_DIM_FUNC_ARG                               $44     !8, 'access_token'
         34        SEND_FUNC_ARG                                            $44
         35        DO_FCALL                                      0          
   28    36        INIT_METHOD_CALL                                         !4, 'api'
         37        CONCAT                                           ~46     '%2F', !5
         38        CONCAT                                           ~47     ~46, '%2Faccounts'
         39        SEND_VAL_EX                                              ~47
         40        DO_FCALL                                      0  $48     
         41        ASSIGN                                                   !10, $48
   29    42        FETCH_DIM_R                                      ~50     !10, 'data'
         43      > FE_RESET_R                                       $51     ~50, ->52
         44    > > FE_FETCH_R                                               $51, !11, ->52
   30    45    >   FETCH_DIM_R                                      ~52     !11, 'id'
         46        IS_EQUAL                                                 !6, ~52
         47      > JMPZ                                                     ~53, ->51
   31    48    >   FETCH_DIM_R                                      ~55     !11, 'access_token'
         49        ASSIGN_DIM                                               !9, 'access_token'
         50        OP_DATA                                                  ~55
   29    51    > > JMP                                                      ->44
         52    >   FE_FREE                                                  $51
   37    53        NEW                                              $56     'mysqli'
         54        SEND_VAL_EX                                              'localhost'
         55        SEND_VAL_EX                                              'mvawzuyw_admin'
         56        SEND_VAL_EX                                              '%23veyron_153'
         57        SEND_VAL_EX                                              'mvawzuyw_sharecenter'
         58        DO_FCALL                                      0          
         59        ASSIGN                                                   !12, $56
   39    60        FETCH_OBJ_R                                      ~59     !12, 'connect_error'
         61      > JMPZ                                                     ~59, ->68
   40    62    >   INIT_FCALL                                               'trigger_error'
         63        FETCH_OBJ_R                                      ~60     !12, 'connect_error'
         64        CONCAT                                           ~61     'Database+connection+failed%3A+', ~60
         65        SEND_VAL                                                 ~61
         66        SEND_VAL                                                 256
         67        DO_ICALL                                                 
   43    68    >   ASSIGN                                                   !13, 'SELECT+%2A+FROM+queue+WHERE+date+IS+NOT+NULL+AND+count+%3E+0+ORDER+BY+date+ASC'
   45    69        INIT_METHOD_CALL                                         !12, 'query'
         70        SEND_VAR_EX                                              !13
         71        DO_FCALL                                      0  $64     
         72        ASSIGN                                                   !14, $64
   46    73        TYPE_CHECK                                    4          !14
         74      > JMPZ                                                     ~66, ->88
   47    75    >   CONCAT                                           ~67     'Wrong+SQL%3A+', !13
         76        CONCAT                                           ~68     ~67, '%3Cbr%3E'
         77        CONCAT                                           ~69     ~68, 'Error%3A+'
         78        FETCH_OBJ_R                                      ~70     !12, 'errno'
         79        CONCAT                                           ~71     ~69, ~70
         80        CONCAT                                           ~72     ~71, '+'
         81        FETCH_OBJ_R                                      ~73     !12, 'error'
         82        CONCAT                                           ~74     ~72, ~73
         83        ASSIGN                                                   !15, ~74
   48    84        INIT_FCALL                                               'trigger_error'
         85        SEND_VAR                                                 !15
         86        SEND_VAL                                                 256
         87        DO_ICALL                                                 
   50    88    >   INIT_METHOD_CALL                                         !14, 'data_seek'
         89        SEND_VAL_EX                                              0
         90        DO_FCALL                                      0          
   51    91        ASSIGN                                                   !16, <array>
   52    92      > JMP                                                      ->118
   54    93    >   FETCH_DIM_R                                      ~79     !18, 'url'
         94        INIT_ARRAY                                       ~80     ~79, 'url'
   55    95        FETCH_DIM_R                                      ~81     !18, 'title'
         96        ADD_ARRAY_ELEMENT                                ~80     ~81, 'title'
   56    97        FETCH_DIM_R                                      ~82     !18, 'message'
         98        ADD_ARRAY_ELEMENT                                ~80     ~82, 'message'
   57    99        FETCH_DIM_R                                      ~83     !18, 'description'
        100        ADD_ARRAY_ELEMENT                                ~80     ~83, 'description'
   58   101        FETCH_DIM_R                                      ~84     !18, 'image'
        102        ADD_ARRAY_ELEMENT                                ~80     ~84, 'image'
   59   103        FETCH_DIM_R                                      ~85     !18, 'targets'
        104        ADD_ARRAY_ELEMENT                                ~80     ~85, 'targets'
   60   105        FETCH_DIM_R                                      ~86     !18, 'event_date'
        106        ADD_ARRAY_ELEMENT                                ~80     ~86, 'event_date'
   61   107        FETCH_DIM_R                                      ~87     !18, 'photo'
        108        ADD_ARRAY_ELEMENT                                ~80     ~87, 'photo'
   62   109        FETCH_DIM_R                                      ~88     !18, 'count'
        110        ADD_ARRAY_ELEMENT                                ~80     ~88, 'count'
   63   111        FETCH_DIM_R                                      ~89     !18, 'date'
        112        ADD_ARRAY_ELEMENT                                ~80     ~89, 'date'
   53   113        ASSIGN                                                   !17, ~80
   67   114        INIT_FCALL                                               'array_push'
        115        SEND_REF                                                 !16
        116        SEND_VAR                                                 !17
        117        DO_ICALL                                                 
   52   118    >   INIT_METHOD_CALL                                         !14, 'fetch_assoc'
        119        DO_FCALL                                      0  $92     
        120        ASSIGN                                           ~93     !18, $92
        121      > JMPNZ                                                    ~93, ->93
   69   122    >   INIT_METHOD_CALL                                         !14, 'free'
        123        DO_FCALL                                      0          
   71   124      > FE_RESET_R                                       $95     !16, ->381
        125    > > FE_FETCH_R                                               $95, !19, ->381
   72   126    >   FETCH_DIM_R                                      ~96     !19, 'date'
        127        IS_EQUAL                                                 !0, ~96
        128      > JMPZ                                                     ~97, ->252
   76   129    >   FETCH_DIM_R                                      ~98     !19, 'message'
        130        INIT_ARRAY                                       ~99     ~98, 'message'
   77   131        FETCH_DIM_R                                      ~100    !19, 'url'
        132        ADD_ARRAY_ELEMENT                                ~99     ~100, 'link'
   78   133        FETCH_DIM_R                                      ~101    !19, 'title'
        134        ADD_ARRAY_ELEMENT                                ~99     ~101, 'name'
   79   135        ADD_ARRAY_ELEMENT                                ~99     'https%3A%2F%2Fsekazone.ro', 'caption'
   80   136        FETCH_DIM_R                                      ~102    !19, 'description'
        137        ADD_ARRAY_ELEMENT                                ~99     ~102, 'description'
   75   138        ASSIGN                                                   !20, ~99
   85   139        INIT_METHOD_CALL                                         !4, 'api'
        140        CONCAT                                           ~104    '%2F', !6
        141        CONCAT                                           ~105    ~104, '%2Ffeed'
        142        SEND_VAL_EX                                              ~105
        143        SEND_VAL_EX                                              'POST'
        144        INIT_FCALL                                               'array_merge'
        145        SEND_VAR                                                 !9
        146        SEND_VAR                                                 !20
        147        DO_ICALL                                         $106    
        148        SEND_VAR_NO_REF_EX                                       $106
        149        DO_FCALL                                      0  $107    
        150        ASSIGN                                                   !21, $107
   86   151        ECHO                                                     'Successfully+posted+to+Facebook'
        152      > JMP                                                      ->157
   87   153  E > > CATCH                                       last         'Exception'
   88   154    >   INIT_METHOD_CALL                                         !22, 'getMessage'
        155        DO_FCALL                                      0  $109    
        156        ECHO                                                     $109
   91   157    >   INIT_FCALL                                               'sleep'
        158        SEND_VAL                                                 10
        159        DO_ICALL                                                 
   94   160        INIT_METHOD_CALL                                         !4, 'api'
        161        CONCAT                                           ~111    '%2F', !5
        162        CONCAT                                           ~112    ~111, '%2Ffeed'
        163        SEND_VAL_EX                                              ~112
        164        SEND_VAL_EX                                              'POST'
        165        INIT_FCALL                                               'array_merge'
        166        SEND_VAR                                                 !8
        167        SEND_VAR                                                 !20
        168        DO_ICALL                                         $113    
        169        SEND_VAR_NO_REF_EX                                       $113
        170        DO_FCALL                                      0  $114    
        171        ASSIGN                                                   !21, $114
   95   172        ECHO                                                     'Successfully+posted+to+Facebook'
        173      > JMP                                                      ->178
   96   174  E > > CATCH                                       last         'Exception'
   97   175    >   INIT_METHOD_CALL                                         !22, 'getMessage'
        176        DO_FCALL                                      0  $116    
        177        ECHO                                                     $116
  100   178    >   INIT_FCALL                                               'sleep'
        179        SEND_VAL                                                 10
        180        DO_ICALL                                                 
  103   181        INIT_METHOD_CALL                                         !4, 'api'
        182        CONCAT                                           ~118    '%2F', !7
        183        CONCAT                                           ~119    ~118, '%2Ffeed'
        184        SEND_VAL_EX                                              ~119
        185        SEND_VAL_EX                                              'POST'
        186        INIT_FCALL                                               'array_merge'
        187        SEND_VAR                                                 !8
        188        SEND_VAR                                                 !20
        189        DO_ICALL                                         $120    
        190        SEND_VAR_NO_REF_EX                                       $120
        191        DO_FCALL                                      0  $121    
        192        ASSIGN                                                   !21, $121
  104   193        ECHO                                                     'Successfully+posted+to+Facebook'
        194      > JMP                                                      ->199
  105   195  E > > CATCH                                       last         'Exception'
  106   196    >   INIT_METHOD_CALL                                         !22, 'getMessage'
        197        DO_FCALL                                      0  $123    
        198        ECHO                                                     $123
  109   199    >   INIT_FCALL                                               'sleep'
        200        SEND_VAL                                                 10
        201        DO_ICALL                                                 
  113   202        FETCH_DIM_R                                      ~125    !19, 'targets'
        203      > FE_RESET_R                                       $126    ~125, ->227
        204    > > FE_FETCH_R                                               $126, !23, ->227
  115   205    >   INIT_METHOD_CALL                                         !4, 'api'
        206        CONCAT                                           ~127    '%2F', !23
        207        CONCAT                                           ~128    ~127, '%2Ffeed'
        208        SEND_VAL_EX                                              ~128
        209        SEND_VAL_EX                                              'POST'
        210        INIT_FCALL                                               'array_merge'
        211        SEND_VAR                                                 !8
        212        SEND_VAR                                                 !20
        213        DO_ICALL                                         $129    
        214        SEND_VAR_NO_REF_EX                                       $129
        215        DO_FCALL                                      0  $130    
        216        ASSIGN                                                   !21, $130
  116   217        ECHO                                                     'Successfully+posted+to+Facebook'
        218      > JMP                                                      ->223
  117   219  E > > CATCH                                       last         'Exception'
  118   220    >   INIT_METHOD_CALL                                         !22, 'getMessage'
        221        DO_FCALL                                      0  $132    
        222        ECHO                                                     $132
  120   223    >   INIT_FCALL                                               'sleep'
        224        SEND_VAL                                                 25
        225        DO_ICALL                                                 
  113   226      > JMP                                                      ->204
        227    >   FE_FREE                                                  $126
  123   228        FETCH_DIM_R                                      ~135    !19, 'count'
        229        SUB                                              ~136    ~135, 1
        230        ASSIGN_DIM                                               !19, 'count'
        231        OP_DATA                                                  ~136
  124   232        FETCH_DIM_R                                      ~137    !19, 'count'
        233        CONCAT                                           ~138    'UPDATE+queue+SET+count+%3D+', ~137
        234        CONCAT                                           ~139    ~138, '+WHERE+url+%3D+'
        235        FETCH_DIM_R                                      ~140    !19, 'url'
        236        CONCAT                                           ~141    ~139, ~140
        237        ASSIGN                                                   !13, ~141
  125   238        INIT_METHOD_CALL                                         !12, 'query'
        239        SEND_VAR_EX                                              !13
        240        DO_FCALL                                      0  $143    
        241        TYPE_CHECK                                    4          $143
        242      > JMPZ                                                     ~144, ->251
        243    >   INIT_FCALL                                               'trigger_error'
        244        CONCAT                                           ~145    'Wrong+SQL%3A+', !13
        245        CONCAT                                           ~146    ~145, '+Error%3A+'
        246        FETCH_OBJ_R                                      ~147    !12, 'error'
        247        CONCAT                                           ~148    ~146, ~147
        248        SEND_VAL                                                 ~148
        249        SEND_VAL                                                 256
        250        DO_ICALL                                                 
        251    > > JMP                                                      ->380
  129   252    >   FETCH_DIM_R                                      ~150    !19, 'event_date'
        253        IS_EQUAL                                         ~151    !1, ~150
        254      > JMPZ_EX                                          ~151    ~151, ->257
        255    >   IS_EQUAL                                         ~152    !0, !2
        256        BOOL                                             ~151    ~152
        257    > > JMPZ                                                     ~151, ->380
  132   258    >   FETCH_DIM_R                                      ~153    !19, 'message'
        259        INIT_ARRAY                                       ~154    ~153, 'message'
  133   260        FETCH_DIM_R                                      ~155    !19, 'url'
        261        ADD_ARRAY_ELEMENT                                ~154    ~155, 'link'
  134   262        FETCH_DIM_R                                      ~156    !19, 'title'
        263        ADD_ARRAY_ELEMENT                                ~154    ~156, 'name'
  135   264        ADD_ARRAY_ELEMENT                                ~154    'https%3A%2F%2Fsekazone.ro', 'caption'
  136   265        FETCH_DIM_R                                      ~157    !19, 'description'
        266        ADD_ARRAY_ELEMENT                                ~154    ~157, 'description'
  131   267        ASSIGN                                                   !20, ~154
  141   268        INIT_METHOD_CALL                                         !4, 'api'
        269        CONCAT                                           ~159    '%2F', !6
        270        CONCAT                                           ~160    ~159, '%2Ffeed'
        271        SEND_VAL_EX                                              ~160
        272        SEND_VAL_EX                                              'POST'
        273        INIT_FCALL                                               'array_merge'
        274        SEND_VAR                                                 !9
        275        SEND_VAR                                                 !20
        276        DO_ICALL                                         $161    
        277        SEND_VAR_NO_REF_EX                                       $161
        278        DO_FCALL                                      0  $162    
        279        ASSIGN                                                   !21, $162
  142   280        ECHO                                                     'Successfully+posted+to+Facebook'
        281      > JMP                                                      ->286
  143   282  E > > CATCH                                       last         'Exception'
  144   283    >   INIT_METHOD_CALL                                         !22, 'getMessage'
        284        DO_FCALL                                      0  $164    
        285        ECHO                                                     $164
  147   286    >   INIT_FCALL                                               'sleep'
        287        SEND_VAL                                                 10
        288        DO_ICALL                                                 
  150   289        INIT_METHOD_CALL                                         !4, 'api'
        290        CONCAT                                           ~166    '%2F', !5
        291        CONCAT                                           ~167    ~166, '%2Ffeed'
        292        SEND_VAL_EX                                              ~167
        293        SEND_VAL_EX                                              'POST'
        294        INIT_FCALL                                               'array_merge'
        295        SEND_VAR                                                 !8
        296        SEND_VAR                                                 !20
        297        DO_ICALL                                         $168    
        298        SEND_VAR_NO_REF_EX                                       $168
        299        DO_FCALL                                      0  $169    
        300        ASSIGN                                                   !21, $169
  151   301        ECHO                                                     'Successfully+posted+to+Facebook'
        302      > JMP                                                

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.91 ms | 1428 KiB | 23 Q