3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new PDO("sqlite::memory:"); $db->exec('CREATE TABLE test_table (test_column TEXT)'); $stmt = $db->prepare('INSERT INTO test_table (test_column) VALUES (?)'); $stmt->execute(array("val1")); $stmt->execute(array("val2")); $stmt->execute(array("val3")); $result = $db->query("SELECT * FROM test_table ORDER BY test_column ASC", PDO::FETCH_ASSOC); foreach($result as $r) { var_dump($r); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 31
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/TbeZc
function name:  (null)
number of ops:  33
compiled vars:  !0 = $db, !1 = $stmt, !2 = $result, !3 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'PDO'
          1        SEND_VAL_EX                                              'sqlite%3A%3Amemory%3A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        INIT_METHOD_CALL                                         !0, 'exec'
          5        SEND_VAL_EX                                              'CREATE+TABLE+test_table+%28test_column+TEXT%29'
          6        DO_FCALL                                      0          
    5     7        INIT_METHOD_CALL                                         !0, 'prepare'
          8        SEND_VAL_EX                                              'INSERT+INTO+test_table+%28test_column%29+VALUES+%28%3F%29'
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !1, $8
    6    11        INIT_METHOD_CALL                                         !1, 'execute'
         12        SEND_VAL_EX                                              <array>
         13        DO_FCALL                                      0          
    7    14        INIT_METHOD_CALL                                         !1, 'execute'
         15        SEND_VAL_EX                                              <array>
         16        DO_FCALL                                      0          
    8    17        INIT_METHOD_CALL                                         !1, 'execute'
         18        SEND_VAL_EX                                              <array>
         19        DO_FCALL                                      0          
   11    20        INIT_METHOD_CALL                                         !0, 'query'
         21        SEND_VAL_EX                                              'SELECT+%2A+FROM+test_table+ORDER+BY+test_column+ASC'
         22        SEND_VAL_EX                                              2
         23        DO_FCALL                                      0  $13     
         24        ASSIGN                                                   !2, $13
   12    25      > FE_RESET_R                                       $15     !2, ->31
         26    > > FE_FETCH_R                                               $15, !3, ->31
   13    27    >   INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !3
         29        DO_ICALL                                                 
   12    30      > JMP                                                      ->26
         31    >   FE_FREE                                                  $15
   14    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
277.14 ms | 1006 KiB | 14 Q