3v4l.org

run code in 500+ 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(); var_dump($statement->readOnly());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UAthI
function name:  (null)
number of ops:  23
compiled vars:  !0 = $conn, !1 = $statement, !2 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $3      'SQLite3'
          1        SEND_VAL_EX                                                  '%3Amemory%3A'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $3
    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  $8      
         13        ASSIGN                                                       !1, $8
    7    14        INIT_METHOD_CALL                                             !1, 'execute'
         15        DO_FCALL                                          0  $10     
         16        ASSIGN                                                       !2, $10
    8    17        INIT_FCALL                                                   'var_dump'
         18        INIT_METHOD_CALL                                             !1, 'readOnly'
         19        DO_FCALL                                          0  $12     
         20        SEND_VAR                                                     $12
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
821.94 ms | 2852 KiB | 14 Q