3v4l.org

run code in 300+ PHP versions simultaneously
<?php $posts = $posts = [ [ 'data' => [ 'url' => 'https://hashphp.org', 'author_fullname' => 'alvisleet' ] ], [ 'data' => [ 'url' => 'https://hashphp.org', 'author_fullname' => 'alvisleet' ] ] ]; 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 = 3, Position 2 = 24
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 24
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/MbfbG
function name:  (null)
number of ops:  26
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                                           ~6      !0, <array>
          1        ASSIGN                                                   !0, ~6
   19     2      > FE_RESET_R                                       $8      !0, ->24
          3    > > FE_FETCH_R                                               $8, !1, ->24
   20     4    >   FETCH_DIM_R                                      ~9      !1, 'data'
          5        FETCH_DIM_R                                      ~10     ~9, 'url'
          6        ASSIGN                                                   !2, ~10
   21     7        FETCH_DIM_R                                      ~12     !1, 'data'
          8        FETCH_DIM_R                                      ~13     ~12, 'author_fullname'
          9        ASSIGN                                                   !3, ~13
   22    10        INIT_ARRAY                                       ~15     !2
         11        ASSIGN                                                   !2, ~15
   23    12        INIT_METHOD_CALL                                         !5, 'prepare'
         13        SEND_VAL_EX                                              'INSERT+INTO+data+%28%27fetched_url%27%2C+%27author%27%29+VALUES+%28%27%3F%27%2C+%27%3F%27%29'
         14        DO_FCALL                                      0  $17     
         15        ASSIGN                                                   !4, $17
   24    16        INIT_METHOD_CALL                                         !5, 'beginTransaction'
         17        DO_FCALL                                      0          
   25    18        INIT_METHOD_CALL                                         !4, 'execute'
         19        SEND_VAR_EX                                              !2
         20        DO_FCALL                                      0          
   26    21        INIT_METHOD_CALL                                         !5, 'commit'
         22        DO_FCALL                                      0          
   19    23      > JMP                                                      ->3
         24    >   FE_FREE                                                  $8
   27    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.7 ms | 1394 KiB | 13 Q