3v4l.org

run code in 300+ PHP versions simultaneously
<?php function insert() { $this->form_validation->set_message('required', '*column must be filled'); $this->form_validation->set_rules('judul', 'Judul', 'required'); $this->form_validation->set_rules('isi', 'Isi', 'required'); if ($this->form_validation->run() == FALSE) { $this->layout->addJs('ckeditor/ckeditor.js'); $this->layout->addJs('js/rakunpanel/b267648789c30a07b0efa5bce7bdd9fe.js'); $this->layout->view('rakunpanel/newsPan_view/insertNews_pan_view'); } else { $data = array( 'title' => $this->input->post('judul'), 'content' => $this->input->post('isi'), ); $this->db->insert('newses', $data); $judul = $this->input->post('judul'); $this->load->helper('file'); $pictureFiles = get_filenames('picture_news'); $this->db->select('*'); $this->db->from('newses'); $this->db->where('title', $judul); $query = $this->db->get(); foreach ($query->result() as $row) { $id = $row->id; $post_date = $row->post_date; } $datapic = array( 'pictureFiles' => $pictureFiles, 'id' => $id, 'post_date' => $post_date, 'title' => $this->input->post('judul'), 'content' => $this->input->post('isi'), ); $this->layout->view('rakunpanel/newsPan_view/insertNewsPict_pan_view', $datapic); //} } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QTsL4
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E > > RETURN                                                   1

Function insert:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 42
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 129
Branch analysis from position: 129
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
2 jumps found. (Code = 77) Position 1 = 100, Position 2 = 106
Branch analysis from position: 100
2 jumps found. (Code = 78) Position 1 = 101, Position 2 = 106
Branch analysis from position: 101
1 jumps found. (Code = 42) Position 1 = 100
Branch analysis from position: 100
Branch analysis from position: 106
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 106
filename:       /in/QTsL4
function name:  insert
number of ops:  130
compiled vars:  !0 = $data, !1 = $judul, !2 = $pictureFiles, !3 = $query, !4 = $row, !5 = $id, !6 = $post_date, !7 = $datapic
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_THIS                                       $8      
          1        FETCH_OBJ_R                                      ~9      $8, 'form_validation'
          2        INIT_METHOD_CALL                                         ~9, 'set_message'
          3        SEND_VAL_EX                                              'required'
          4        SEND_VAL_EX                                              '%2Acolumn+must+be+filled'
          5        DO_FCALL                                      0          
    4     6        FETCH_THIS                                       $11     
          7        FETCH_OBJ_R                                      ~12     $11, 'form_validation'
          8        INIT_METHOD_CALL                                         ~12, 'set_rules'
          9        SEND_VAL_EX                                              'judul'
         10        SEND_VAL_EX                                              'Judul'
         11        SEND_VAL_EX                                              'required'
         12        DO_FCALL                                      0          
    5    13        FETCH_THIS                                       $14     
         14        FETCH_OBJ_R                                      ~15     $14, 'form_validation'
         15        INIT_METHOD_CALL                                         ~15, 'set_rules'
         16        SEND_VAL_EX                                              'isi'
         17        SEND_VAL_EX                                              'Isi'
         18        SEND_VAL_EX                                              'required'
         19        DO_FCALL                                      0          
    7    20        FETCH_THIS                                       $17     
         21        FETCH_OBJ_R                                      ~18     $17, 'form_validation'
         22        INIT_METHOD_CALL                                         ~18, 'run'
         23        DO_FCALL                                      0  $19     
         24        BOOL_NOT                                         ~20     $19
         25      > JMPZ                                                     ~20, ->42
    8    26    >   FETCH_THIS                                       $21     
         27        FETCH_OBJ_R                                      ~22     $21, 'layout'
         28        INIT_METHOD_CALL                                         ~22, 'addJs'
         29        SEND_VAL_EX                                              'ckeditor%2Fckeditor.js'
         30        DO_FCALL                                      0          
    9    31        FETCH_THIS                                       $24     
         32        FETCH_OBJ_R                                      ~25     $24, 'layout'
         33        INIT_METHOD_CALL                                         ~25, 'addJs'
         34        SEND_VAL_EX                                              'js%2Frakunpanel%2Fb267648789c30a07b0efa5bce7bdd9fe.js'
         35        DO_FCALL                                      0          
   10    36        FETCH_THIS                                       $27     
         37        FETCH_OBJ_R                                      ~28     $27, 'layout'
         38        INIT_METHOD_CALL                                         ~28, 'view'
         39        SEND_VAL_EX                                              'rakunpanel%2FnewsPan_view%2FinsertNews_pan_view'
         40        DO_FCALL                                      0          
         41      > JMP                                                      ->129
   13    42    >   FETCH_THIS                                       $30     
         43        FETCH_OBJ_R                                      ~31     $30, 'input'
         44        INIT_METHOD_CALL                                         ~31, 'post'
         45        SEND_VAL_EX                                              'judul'
         46        DO_FCALL                                      0  $32     
         47        INIT_ARRAY                                       ~33     $32, 'title'
   14    48        FETCH_THIS                                       $34     
         49        FETCH_OBJ_R                                      ~35     $34, 'input'
         50        INIT_METHOD_CALL                                         ~35, 'post'
         51        SEND_VAL_EX                                              'isi'
         52        DO_FCALL                                      0  $36     
         53        ADD_ARRAY_ELEMENT                                ~33     $36, 'content'
   12    54        ASSIGN                                                   !0, ~33
   16    55        FETCH_THIS                                       $38     
         56        FETCH_OBJ_R                                      ~39     $38, 'db'
         57        INIT_METHOD_CALL                                         ~39, 'insert'
         58        SEND_VAL_EX                                              'newses'
         59        SEND_VAR_EX                                              !0
         60        DO_FCALL                                      0          
   17    61        FETCH_THIS                                       $41     
         62        FETCH_OBJ_R                                      ~42     $41, 'input'
         63        INIT_METHOD_CALL                                         ~42, 'post'
         64        SEND_VAL_EX                                              'judul'
         65        DO_FCALL                                      0  $43     
         66        ASSIGN                                                   !1, $43
   19    67        FETCH_THIS                                       $45     
         68        FETCH_OBJ_R                                      ~46     $45, 'load'
         69        INIT_METHOD_CALL                                         ~46, 'helper'
         70        SEND_VAL_EX                                              'file'
         71        DO_FCALL                                      0          
   20    72        INIT_FCALL_BY_NAME                                       'get_filenames'
         73        SEND_VAL_EX                                              'picture_news'
         74        DO_FCALL                                      0  $48     
         75        ASSIGN                                                   !2, $48
   22    76        FETCH_THIS                                       $50     
         77        FETCH_OBJ_R                                      ~51     $50, 'db'
         78        INIT_METHOD_CALL                                         ~51, 'select'
         79        SEND_VAL_EX                                              '%2A'
         80        DO_FCALL                                      0          
   23    81        FETCH_THIS                                       $53     
         82        FETCH_OBJ_R                                      ~54     $53, 'db'
         83        INIT_METHOD_CALL                                         ~54, 'from'
         84        SEND_VAL_EX                                              'newses'
         85        DO_FCALL                                      0          
   24    86        FETCH_THIS                                       $56     
         87        FETCH_OBJ_R                                      ~57     $56, 'db'
         88        INIT_METHOD_CALL                                         ~57, 'where'
         89        SEND_VAL_EX                                              'title'
         90        SEND_VAR_EX                                              !1
         91        DO_FCALL                                      0          
   25    92        FETCH_THIS                                       $59     
         93        FETCH_OBJ_R                                      ~60     $59, 'db'
         94        INIT_METHOD_CALL                                         ~60, 'get'
         95        DO_FCALL                                      0  $61     
         96        ASSIGN                                                   !3, $61
   26    97        INIT_METHOD_CALL                                         !3, 'result'
         98        DO_FCALL                                      0  $63     
         99      > FE_RESET_R                                       $64     $63, ->106
        100    > > FE_FETCH_R                                               $64, !4, ->106
   27   101    >   FETCH_OBJ_R                                      ~65     !4, 'id'
        102        ASSIGN                                                   !5, ~65
   28   103        FETCH_OBJ_R                                      ~67     !4, 'post_date'
        104        ASSIGN                                                   !6, ~67
   26   105      > JMP                                                      ->100
        106    >   FE_FREE                                                  $64
   32   107        INIT_ARRAY                                       ~69     !2, 'pictureFiles'
   33   108        ADD_ARRAY_ELEMENT                                ~69     !5, 'id'
   34   109        ADD_ARRAY_ELEMENT                                ~69     !6, 'post_date'
   35   110        FETCH_THIS                                       $70     
        111        FETCH_OBJ_R                                      ~71     $70, 'input'
        112        INIT_METHOD_CALL                                         ~71, 'post'
        113        SEND_VAL_EX                                              'judul'
        114        DO_FCALL                                      0  $72     
        115        ADD_ARRAY_ELEMENT                                ~69     $72, 'title'
   36   116        FETCH_THIS                                       $73     
        117        FETCH_OBJ_R                                      ~74     $73, 'input'
        118        INIT_METHOD_CALL                                         ~74, 'post'
        119        SEND_VAL_EX                                              'isi'
        120        DO_FCALL                                      0  $75     
        121        ADD_ARRAY_ELEMENT                                ~69     $75, 'content'
   31   122        ASSIGN                                                   !7, ~69
   39   123        FETCH_THIS                                       $77     
        124        FETCH_OBJ_R                                      ~78     $77, 'layout'
        125        INIT_METHOD_CALL                                         ~78, 'view'
        126        SEND_VAL_EX                                              'rakunpanel%2FnewsPan_view%2FinsertNewsPict_pan_view'
        127        SEND_VAR_EX                                              !7
        128        DO_FCALL                                      0          
   42   129    > > RETURN                                                   null

End of function insert

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1407 KiB | 13 Q