3v4l.org

run code in 300+ PHP versions simultaneously
<?php // @see https://gist.github.com/adrian-enspired/385c6830ba2932bc36a2 $db = new PDO($dsn, $user, $pass, $options); $stmt = $db->prepare("INSERT INTO data (fetched_url, author) VALUES (?, ?)"); // example data $posts = [ [ 'data' => [ 'url' => 'https://hashphp.org', 'author_fullname' => 'alvisleet' ] ], [ 'data' => [ 'url' => 'https://hashphp.org', 'author_fullname' => 'alvisleet' ] ] ]; foreach ($posts as $post) { $stmt->execute([$post['data']['url'], $post['data']['author_fullname']]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 24
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 24
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/FWKgf
function name:  (null)
number of ops:  26
compiled vars:  !0 = $db, !1 = $dsn, !2 = $user, !3 = $pass, !4 = $options, !5 = $stmt, !6 = $posts, !7 = $post
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   NEW                                              $8      :47
         1        SEND_VAR_EX                                              !1
         2        SEND_VAR_EX                                              !2
         3        SEND_VAR_EX                                              !3
         4        SEND_VAR_EX                                              !4
         5        DO_FCALL                                      0          
         6        QM_ASSIGN                                                !0
   6     7        INIT_METHOD_CALL                                         !0, 'prepare'
         8        SEND_VAL_EX                                              'INSERT+INTO+data+%28fetched_url%2C+author%29+VALUES+%28%3F%2C+%3F%29'
         9        DO_FCALL                                      0  $11     
        10        QM_ASSIGN                                                !5
  12    11        QM_ASSIGN                                                !6
  24    12      > FE_RESET_R                                       $14     !6, ->24
        13    > > FE_FETCH_R                                               $14, !7, ->24
  25    14    >   INIT_METHOD_CALL                                         !5, 'execute'
        15        FETCH_DIM_R                                      ~15     !7, 'data'
        16        FETCH_DIM_R                                      ~16     ~15, 'url'
        17        INIT_ARRAY                                       ~17     ~16
        18        FETCH_DIM_R                                      ~18     !7, 'data'
        19        FETCH_DIM_R                                      ~19     ~18, 'author_fullname'
        20        ADD_ARRAY_ELEMENT                                ~17     ~19
        21        SEND_VAL_EX                                              ~17
        22        DO_FCALL                                      0          
  24    23      > JMP                                                      ->13
        24    >   FE_FREE                                                  $14
  26    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
22.62 ms | 414 KiB | 13 Q