3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Post { function get_posts($num=20,$start=0){ $this->db->select()->from('posts')->where('active',1)->order_by('date_added','desc')->limit($num,$start); $query=$this->db->get(); return $query->result_array(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZhNYU
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   1

Class Post:
Function get_posts:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZhNYU
function name:  get_posts
number of ops:  28
compiled vars:  !0 = $num, !1 = $start, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      20
          1        RECV_INIT                                        !1      0
    5     2        FETCH_OBJ_R                                      ~3      'db'
          3        INIT_METHOD_CALL                                         ~3, 'select'
          4        DO_FCALL                                      0  $4      
          5        INIT_METHOD_CALL                                         $4, 'from'
          6        SEND_VAL_EX                                              'posts'
          7        DO_FCALL                                      0  $5      
          8        INIT_METHOD_CALL                                         $5, 'where'
          9        SEND_VAL_EX                                              'active'
         10        SEND_VAL_EX                                              1
         11        DO_FCALL                                      0  $6      
         12        INIT_METHOD_CALL                                         $6, 'order_by'
         13        SEND_VAL_EX                                              'date_added'
         14        SEND_VAL_EX                                              'desc'
         15        DO_FCALL                                      0  $7      
         16        INIT_METHOD_CALL                                         $7, 'limit'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0          
    6    20        FETCH_OBJ_R                                      ~9      'db'
         21        INIT_METHOD_CALL                                         ~9, 'get'
         22        DO_FCALL                                      0  $10     
         23        ASSIGN                                                   !2, $10
    7    24        INIT_METHOD_CALL                                         !2, 'result_array'
         25        DO_FCALL                                      0  $12     
         26      > RETURN                                                   $12
    8    27*     > RETURN                                                   null

End of function get_posts

End of class Post.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.64 ms | 1395 KiB | 13 Q