3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = sqlite_open(':memory:'); $sql = "SELECT * FROM mytable"; $res = sqlite_query($sql, $db); sqlite_close($db); while ( $thisRow = sqlite_fetch_array($res) ) { print_r($thisRow); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 14
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 14
Branch analysis from position: 22
Branch analysis from position: 14
filename:       /in/gvuX8
function name:  (null)
number of ops:  23
compiled vars:  !0 = $db, !1 = $sql, !2 = $res, !3 = $thisRow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'sqlite_open'
          1        SEND_VAL_EX                                              '%3Amemory%3A'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                                   !0, $4
    4     4        ASSIGN                                                   !1, 'SELECT+%2A+FROM+mytable'
    5     5        INIT_FCALL_BY_NAME                                       'sqlite_query'
          6        SEND_VAR_EX                                              !1
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !2, $7
    6    10        INIT_FCALL_BY_NAME                                       'sqlite_close'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
    8    13      > JMP                                                      ->17
   10    14    >   INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
    8    17    >   INIT_FCALL_BY_NAME                                       'sqlite_fetch_array'
         18        SEND_VAR_EX                                              !2
         19        DO_FCALL                                      0  $11     
         20        ASSIGN                                           ~12     !3, $11
         21      > JMPNZ                                                    ~12, ->14
   11    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.58 ms | 1395 KiB | 15 Q