3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_file_info($file_id) { $query = $this->db->query("SELECT * FROM files WHERE f_id = ?", array($file_id)); return ($this->db->num_rows() > 0) ? $query->row() : FALSE; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2eQCE
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   1

Function get_file_info:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2eQCE
function name:  get_file_info
number of ops:  22
compiled vars:  !0 = $file_id, !1 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        FETCH_THIS                                       $2      
          2        FETCH_OBJ_R                                      ~3      $2, 'db'
          3        INIT_METHOD_CALL                                         ~3, 'query'
          4        SEND_VAL_EX                                              'SELECT+%2A+FROM+files+WHERE+f_id+%3D+%3F'
          5        INIT_ARRAY                                       ~4      !0
          6        SEND_VAL_EX                                              ~4
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !1, $5
    5     9        FETCH_THIS                                       $7      
         10        FETCH_OBJ_R                                      ~8      $7, 'db'
         11        INIT_METHOD_CALL                                         ~8, 'num_rows'
         12        DO_FCALL                                      0  $9      
         13        IS_SMALLER                                               0, $9
         14      > JMPZ                                                     ~10, ->19
         15    >   INIT_METHOD_CALL                                         !1, 'row'
         16        DO_FCALL                                      0  $11     
         17        QM_ASSIGN                                        ~12     $11
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~12     <false>
         20    > > RETURN                                                   ~12
    6    21*     > RETURN                                                   null

End of function get_file_info

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.81 ms | 1398 KiB | 13 Q