3v4l.org

run code in 300+ PHP versions simultaneously
<?php $posts = [/* put example data here */]; foreach ($posts as $post) { $fetchedurl = $post['data']['url']; $ids = $post['data']['author_fullname']; $fetchedurl = array($fetchedurl); $stmt = $db->prepare("INSERT INTO data ('fetched_url', 'author') VALUES ('?', '?')"); $db->beginTransaction(); $stmt->execute($fetchedurl); $db->commit(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 23
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/oPeOd
function name:  (null)
number of ops:  25
compiled vars:  !0 = $posts, !1 = $post, !2 = $fetchedurl, !3 = $ids, !4 = $stmt, !5 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1      > FE_RESET_R                                       $7      !0, ->23
          2    > > FE_FETCH_R                                               $7, !1, ->23
    7     3    >   FETCH_DIM_R                                      ~8      !1, 'data'
          4        FETCH_DIM_R                                      ~9      ~8, 'url'
          5        ASSIGN                                                   !2, ~9
    8     6        FETCH_DIM_R                                      ~11     !1, 'data'
          7        FETCH_DIM_R                                      ~12     ~11, 'author_fullname'
          8        ASSIGN                                                   !3, ~12
    9     9        INIT_ARRAY                                       ~14     !2
         10        ASSIGN                                                   !2, ~14
   10    11        INIT_METHOD_CALL                                         !5, 'prepare'
         12        SEND_VAL_EX                                              'INSERT+INTO+data+%28%27fetched_url%27%2C+%27author%27%29+VALUES+%28%27%3F%27%2C+%27%3F%27%29'
         13        DO_FCALL                                      0  $16     
         14        ASSIGN                                                   !4, $16
   11    15        INIT_METHOD_CALL                                         !5, 'beginTransaction'
         16        DO_FCALL                                      0          
   12    17        INIT_METHOD_CALL                                         !4, 'execute'
         18        SEND_VAR_EX                                              !2
         19        DO_FCALL                                      0          
   13    20        INIT_METHOD_CALL                                         !5, 'commit'
         21        DO_FCALL                                      0          
    6    22      > JMP                                                      ->2
         23    >   FE_FREE                                                  $7
   14    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.59 ms | 1394 KiB | 13 Q