3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class td_module_mega_menu extends td_module { function __construct($post) { //run the parrent constructor parent::__construct($post); } function render() { ob_start(); ?> <div class="td_mod_mega_menu"> <?php echo $this->get_image('art-big-1col');?> <div class="item-details"> <?php echo $this->get_title(td_util::get_option('tds_mod3_title_excerpt'));?> </div> </div> <?php return ob_get_clean(); } function get_title($excerpt_lenght = '') { $buffy = ''; $buffy .= '<h4 itemprop="name" class="entry-title">'; $buffy .='<a itemprop="url" href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">'; if (!empty($excerpt_lenght)) { $buffy .= td_util::excerpt($this->title, $excerpt_lenght, 'show_shortcodes'); } else { $buffy .= $this->title; } $buffy .='</a>'; $buffy .= '</h4>'; return $buffy; } }
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Fatal error: Class 'td_module' not found in /in/SQhKl on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: unknown class td_module in /in/SQhKl on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Class td_module_mega_menu: Cannot inherit from undefined class td_module in /in/SQhKl on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Class td_module_mega_menu: Cannot inherit from undefined class td_module in /in/SQhKl on line 3