3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); //$start = microtime(true); // Turn off all error reporting //error_reporting(0); $page=1; //echo strtotime('2013-12-25 04:16:25'); //echo '<br>'; //echo strtotime('2013-12-26 14:26:25'); ?> <script> // Add the following into your HEAD section var timer = 0; function set_interval() {//alert("Anwar"); // the interval 'timer' is set as soon as the page loads timer = setInterval("auto_logout()", 10*60000); // the figure '10000' above indicates how many milliseconds the timer be set to. // Eg: to set it to 5 mins, calculate 5min = 5x60 = 300 sec = 300,000 millisec. // So set it to 300000 } function reset_interval() { //resets the timer. The timer is reset on each of the below events: // 1. mousemove 2. mouseclick 3. key press 4. scroliing //first step: clear the existing timer if (timer != 0) { clearInterval(timer); timer = 0; // second step: implement the timer again timer = setInterval("auto_logout()", 10*60000); // completed the reset of the timer } } function auto_logout() { // this function will redirect the user to the logout script //window.location = '<?php echo base_url(); ?>dashboard/logout'; } // Add the following attributes into your BODY tag //window.onload="set_interval()"; //onmousemove="reset_interval()" //onclick="reset_interval()" //onkeypress="reset_interval()" //onscroll="reset_interval()" $(window).load(function(){ //set_interval(); }); $('body').mousemove(function() { reset_interval(); //alert("mousemove"); }).click(function() { //alert("onclick"); reset_interval(); }).keypress(function() { //alert("keypress"); reset_interval(); }).scroll(function() { //alert("keypress"); reset_interval(); }); </script> <div id="sidebar" class="sidebar"> <script type="text/javascript"> try{ace.settings.check('sidebar' , 'fixed')}catch(e){} </script> <script> $(document).ready(function(){ $('.tooltip_custom').hide(); $('.toolinfo').mouseenter(function(ev){ //alert($(this).attr('id')); offSet=$(this).offset(); var txt=$(this).attr('tooltip_txt'); //alert(offSet.top+">>> "+offSet.left); $('.tooltip_custom').css('top',offSet.top-20); $('.tooltip_custom').css('left',offSet.left); $('.tooltip_custom').css('z-index',99999); $('.tooltip_custom span').text(txt); $('.tooltip_custom').show(); }); $('.toolinfo').mouseleave(function(eve){ $('.tooltip_custom').hide(); }); }); </script> <div class="tooltip_custom" style="width: 91px; height: 44px; position: absolute; background-image: url('<?php echo base_url();?>assets/images/tool_tip_bg.png'); text-align:center; color:#FFFFFF; display:none;"><span style="float:left; padding-top: 15px; padding-left:10px;"></span></div> <div class="sidebar-shortcuts" id="sidebar-shortcuts"> <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large"> <span class="btn btn-small btn-success tooltip-info toolinfo" data-placement="bottom" tooltip_txt="Add Patient" onclick="location.href='<?php echo base_url()?>dashboard/add_patient'"> <!--<i class="icon-signal"></i>--> <i class="icon-plus"></i> </span> <?php if($this->session->userdata['user_data']['user_type_id']==1){ ?> <span class="btn btn-info btn-small tooltip-info toolinfo" data-placement="bottom" tooltip_txt="Add Provider" onclick="location.href='<?php echo base_url()?>dashboard/add_provider'"> <i class="icon-user-md"></i> </span> <?php } ?> <span class="btn btn-info btn-small tooltip-info toolinfo" data-placement="bottom" tooltip_txt="Inbox" onclick="location.href='<?php echo base_url()?>dashboard/messages'"> <i class="icon-envelope"></i> </span> </div> <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini"> <span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger"></span> </div> </div> <!--#sidebar-shortcuts--> <ul class="nav nav-list"> <li class="active"> <a href="<?php echo base_url();?>dashboard/home"> <i class="icon-dashboard"></i> <span class="menu-text"> Dashboard </span> </a> </li> <!--<li> <a href="typography.html"> <i class="icon-text-width"></i> <span class="menu-text"> Typography </span> </a> </li>--> <?php if($this->session->userdata['user_data']['user_type_id']== ROLE_ADMIN){ ?> <li> <a class="dropdown-toggle" href="javascript:void(0);"> <i class="icon-user-md"></i> <span class="menu-text"> Providers <span class="badge badge-primary "> <?php echo $total_providers; ?> </span> </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li> <a href="<?php echo base_url();?>dashboard/provider_list"> <i class="icon-double-angle-right"></i> List All </a> </li> <li><?php //echo base_url();?> <!--newdash_provider/add_physician--> <a href="<?php echo base_url();?>dashboard/add_provider"> <i class="icon-double-angle-right"></i> Add A Physician </a> </li> </ul> </li> <?php } ?> <li> <a class="dropdown-toggle" href="#"> <i class="icon-group"></i> <span class="menu-text"> Patients <span class="badge badge-primary "><?php //$arr = $this->common->patient(); echo $total_patient; ?></span> </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li> <a href="<?php echo base_url();?>dashboard/patient_list"> <i class="icon-double-angle-right"></i> Patient list </a> </li> <!--<li> <a href="<?php //echo base_url();?>patient_search"> <i class="icon-double-angle-right"></i> Patient Search </a> </li>--> <li> <a href="<?php echo base_url();?>dashboard/add_patient"> <i class="icon-double-angle-right"></i> Add A Patient </a> </li> </ul> </li> <?php if($this->session->userdata['user_data']['user_type_id']==1){ ?> <li> <a class="dropdown-toggle" href="#"> <i class="icon-cogs"></i> <span class="menu-text"> Settings </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li> <a href="<?php echo base_url();?>dashboard/location"> <i class="icon-double-angle-right"></i> Rounding Locations </a> </li> <li> <a href="<?php echo base_url();?>dashboard/referral_list"> <i class="icon-double-angle-right"></i> Referral Network </a> </li> <li> <a href="<?php echo base_url();?>dashboard/coverage_type_list"> <i class="icon-double-angle-right"></i> Coverage Types </a> </li> <li> <a href="<?php echo base_url();?>dashboard/quick_list"> <i class="icon-double-angle-right"></i> Quick List </a> </li> <li> <a href="<?php echo base_url();?>dashboard/template/management_templates"> <!-- changed here on 20/11/2013--> <i class="icon-double-angle-right"></i> Templates </a> </li> <li> <a href="<?php echo base_url();?>dashboard/fee/view"> <i class="icon-double-angle-right"></i> Fee Schedule </a> </li> <li> <a href="<?php echo base_url();?>dashboard/account_information"> <i class="icon-double-angle-right"></i> Account Information </a> </li> <li> <a href="<?php echo base_url();?>dashboard/preferences"> <i class="icon-double-angle-right"></i> Preferences </a> </li> </ul> </li> <?php } ?> <?php if($this->session->userdata['user_data']['user_type_id']==1){ ?> <li> <a class="dropdown-toggle" href="#"> <i class="icon-user"></i> <span class="menu-text"> Staff <span class="badge badge-primary "><?php echo $billers_count; ?></span> </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <?php /*?> <?php if($arr['total_physician'] != '0'){ foreach($arr['detail'] as $val){ ?> <li> <a href="edit_biller.php?biller_id=<?php echo base64_encode($val->id);?>"> <i class="icon-double-angle-right"></i> <?php echo ucfirst(stripslashes($val->first_name))?> <?php echo ucfirst(stripslashes($val->last_name))?></span> </a> </li> <?php }} ?><?php */?> <li> <!--<a href="<?php //echo base_url();?>admin/billers">--> <a href="<?php echo base_url();?>dashboard/biller_list"> <i class="icon-double-angle-right"></i> User List </a> </li> <li> <!--<a href="<?php //echo base_url();?>admin/add_biller">--> <a href="<?php echo base_url();?>dashboard/add_biller"> <i class="icon-double-angle-right"></i> Add User </a> </li> </ul> </li> <li> <a class="dropdown-toggle" href="#"> <i class="icon-share-sign"></i> <span class="menu-text"> Sharing Information </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li> <a href="<?php echo base_url();?>dashboard/member_search"> <i class="icon-double-angle-right"></i> Member Search </a> </li> <li> <a href="<?php echo base_url();?>dashboard/pending_sharing_requests"> <i class="icon-double-angle-right"></i> Pending </a> </li> <li> <a href="<?php echo base_url();?>dashboard/sharing"> <i class="icon-double-angle-right"></i> Sharing </a> </li> </ul> </li> <?php } ?> <li> <a class="dropdown-toggle" href="#"> <i class="icon-table"></i> <span class="menu-text"> Reports </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li> <a href="<?php echo base_url();?>dashboard/downloads"> <i class="icon-double-angle-right"></i> Download </a> </li> <li> <a href="<?php echo base_url();?>reports/readmissions/"> <i class='icon-double-angle-right'></i>Readmissions </a> </li> <li> <a href="<?php echo base_url();?>rvu_reporting/"> <i class='icon-double-angle-right'></i> RVU </a> </li> <li> <a href="<?php echo base_url();?>dashboard/urgent_messages_report"> <i class='icon-double-angle-right'></i> Urgent Messages Report </a> </li> </ul> </li> </ul><!--/.nav-list--> <div id="sidebar-collapse" class="sidebar-collapse"> <i data-icon2="icon-double-angle-right" data-icon1="icon-double-angle-left" class="icon-double-angle-left"></i> </div> <script type="text/javascript"> try{ace.settings.check('sidebar' , 'collapsed')}catch(e){} </script> </div> <input type="hidden" id="messaging_data_global_id" value="<?php echo $this->session->userdata['user_data']['id']; ?>" /> <input type="hidden" id="messaging_data_global_username" value="<?php echo $this->session->userdata['user_data']['first_name'].' '.$this->session->userdata['user_data']['last_name']; ?>" /> <input type="hidden" id="messaging_data_global_org_id" value="<?php echo $this->session->userdata['user_data']['org_id']; ?>" /> <input type="hidden" id="messaging_data_global_role" value="<?php echo $this->session->userdata['user_data']['user_type_id']; ?>" /> <input type="hidden" id="messaging_data_global_img" value="<?php echo $this->session->userdata['user_data']['image']; ?>" /> <input type="hidden" id="messaging_data_global_org_name" value="<?php echo $this->session->userdata['user_data']['org_name']; ?>" /> <input type="hidden" id="messaging_data_global_phone_number" value="<?php echo $this->session->userdata['user_data']['phone_number']; ?>" /> <input type="hidden" id="messaging_data_global_base_url" value="<?php echo base_url() ?>" /> <input type="hidden" id="base_url" value="<?php echo base_url(); ?>" /> <input type="hidden" id="node_url" value="<?php echo $this->config->item('node_url'); ?>" />
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
<script> // Add the following into your HEAD section var timer = 0; function set_interval() {//alert("Anwar"); // the interval 'timer' is set as soon as the page loads timer = setInterval("auto_logout()", 10*60000); // the figure '10000' above indicates how many milliseconds the timer be set to. // Eg: to set it to 5 mins, calculate 5min = 5x60 = 300 sec = 300,000 millisec. // So set it to 300000 } function reset_interval() { //resets the timer. The timer is reset on each of the below events: // 1. mousemove 2. mouseclick 3. key press 4. scroliing //first step: clear the existing timer if (timer != 0) { clearInterval(timer); timer = 0; // second step: implement the timer again timer = setInterval("auto_logout()", 10*60000); // completed the reset of the timer } } function auto_logout() { // this function will redirect the user to the logout script //window.location = ' Fatal error: Uncaught Error: Call to undefined function base_url() in /in/g58Jc:42 Stack trace: #0 {main} thrown in /in/g58Jc on line 42
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.25
<script> // Add the following into your HEAD section var timer = 0; function set_interval() {//alert("Anwar"); // the interval 'timer' is set as soon as the page loads timer = setInterval("auto_logout()", 10*60000); // the figure '10000' above indicates how many milliseconds the timer be set to. // Eg: to set it to 5 mins, calculate 5min = 5x60 = 300 sec = 300,000 millisec. // So set it to 300000 } function reset_interval() { //resets the timer. The timer is reset on each of the below events: // 1. mousemove 2. mouseclick 3. key press 4. scroliing //first step: clear the existing timer if (timer != 0) { clearInterval(timer); timer = 0; // second step: implement the timer again timer = setInterval("auto_logout()", 10*60000); // completed the reset of the timer } } function auto_logout() { // this function will redirect the user to the logout script //window.location = ' Fatal error: Call to undefined function base_url() in /in/g58Jc on line 42
Process exited with code 255.

preferences:
225.05 ms | 403 KiB | 311 Q