3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conn = new SQLite3(':memory:'); $conn->exec('CREATE TABLE test (id int)'); $conn->exec('INSERT INTO test VALUES (1)'); $statement= $conn->prepare('SELECT * FROM test'); $result = $statement->execute(); $statement->close(); $row = $result->fetchArray();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AYuI3
function name:  (null)
number of ops:  23
compiled vars:  !0 = $conn, !1 = $statement, !2 = $result, !3 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'SQLite3'
          1        SEND_VAL_EX                                              '%3Amemory%3A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        INIT_METHOD_CALL                                         !0, 'exec'
          5        SEND_VAL_EX                                              'CREATE+TABLE+test+%28id+int%29'
          6        DO_FCALL                                      0          
    5     7        INIT_METHOD_CALL                                         !0, 'exec'
          8        SEND_VAL_EX                                              'INSERT+INTO+test+VALUES+%281%29'
          9        DO_FCALL                                      0          
    6    10        INIT_METHOD_CALL                                         !0, 'prepare'
         11        SEND_VAL_EX                                              'SELECT+%2A+FROM+test'
         12        DO_FCALL                                      0  $9      
         13        ASSIGN                                                   !1, $9
    7    14        INIT_METHOD_CALL                                         !1, 'execute'
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !2, $11
    8    17        INIT_METHOD_CALL                                         !1, 'close'
         18        DO_FCALL                                      0          
    9    19        INIT_METHOD_CALL                                         !2, 'fetchArray'
         20        DO_FCALL                                      0  $14     
         21        ASSIGN                                                   !3, $14
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.44 ms | 1393 KiB | 13 Q