3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Web extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('banner_homepage_model', 'obj_banner', TRUE); $this->load->model('categories_model', 'obj_categories', TRUE); $this->load->model('pages_model', 'obj_pages', TRUE); $this->load->model('page_model', 'obj_pages', TRUE); $this->load->model('product_model', 'obj_product', TRUE); $lang_var = $this->session->userdata('lang'); if ($lang_var == "fr" || $lang_var == "") $this->lang->load('general', 'fr'); else $this->lang->load('general', 'en'); } public function index() { $data = array(); $limit = 3; $data['banner'] = $this->obj_banner->get_all($condition = array(), 'banner_display_order'); $data['categories'] = $this->obj_categories->get_all($condition = array(), 'categories_display_order'); $condition = array(); $data['banner'] = $this->obj_banner->get_all($condition, 'banner_display_order'); $data['categories'] = $this->obj_categories->get_all_entries($row = 0, $limit, $condition, 'categories_display_order', 'asc'); $condition1 = array('parent_id' => 2); $data['our_vision'] = $this->obj_pages->get_all($condition1); $this->load->view('web/index', $data); } }
Output for 5.5.3 - 5.6.30, 7.0.0 - 7.2.6
Fatal error: Class 'CI_Controller' not found in /in/L8GrF on line 2
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: unknown class CI_Controller in /in/L8GrF:2 Stack trace: #0 {main}
Process exited with code 255.