3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Pdf extends ci_controller { function index(){ $this->load->helper(array('My_Pdf')); include("CONN.pdf"); header("Content-type: application/pdf"); header('Content-disposition: inline; filename="' . $fv->getFileName() . '"'); } } ?>
Output for 5.0.0 - 5.2.17, 7.0.0 - 7.1.0
Fatal error: Class 'ci_controller' not found in /in/XYoJn on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: unknown class ci_controller in /in/XYoJn on line 3
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Fatal error: Class 'ci_controller' not found in /in/XYoJn on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Class pdf: Cannot inherit from undefined class ci_controller in /in/XYoJn on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Class pdf: Cannot inherit from undefined class ci_controller in /in/XYoJn on line 3