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 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'); ?>" />

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0080.00818.56
8.3.50.0150.00322.09
8.3.40.0070.00719.13
8.3.30.0150.00019.20
8.3.20.0080.00020.45
8.3.10.0090.00020.50
8.3.00.0170.00328.09
8.2.180.0120.00316.75
8.2.170.0040.01122.96
8.2.160.0100.00720.56
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00428.09
8.2.120.0040.00428.09
8.1.280.0070.01325.92
8.1.270.0040.00422.31
8.1.260.0120.00628.09
8.1.250.0040.00428.09
7.4.10.0130.00715.58
7.4.00.0100.00915.65
7.3.130.0160.00715.63
7.3.120.0160.00715.77
7.3.110.0110.01315.73
7.3.100.0070.01215.74
7.3.90.0160.01315.77
7.3.80.0110.01015.63
7.3.70.0120.01215.69
7.3.60.0160.00815.59
7.3.50.0150.00615.69
7.3.40.0150.00715.67
7.3.30.0100.00915.78
7.3.20.0110.01016.54
7.3.10.0220.00716.56
7.3.00.0220.01016.55
7.2.260.0210.00515.97
7.2.250.0100.01216.00
7.2.240.0110.01015.92
7.2.230.0200.00516.05
7.2.220.0150.01115.98
7.2.210.0130.00815.97
7.2.200.0130.01115.76
7.2.190.0130.00915.75
7.2.180.0150.01115.82
7.2.170.0120.00715.90
7.2.160.0220.00415.91
7.2.150.0260.01316.90
7.2.140.0120.00916.72
7.2.130.0290.00616.79
7.2.120.0250.01016.81
7.2.110.0110.01316.70
7.2.100.0120.01216.69
7.2.90.0380.00916.84
7.2.80.0290.00414.67
7.2.70.0080.00914.62
7.2.60.0130.00514.72
7.2.50.0140.00514.59
7.2.40.0350.00814.66
7.2.30.0160.00414.75
7.2.20.0230.00316.64
7.2.10.0170.01016.67
7.2.00.0320.01116.76
7.1.330.0330.00815.69
7.1.320.0540.00715.61
7.1.310.0310.01015.70
7.1.300.0330.01215.71
7.1.290.0110.01115.53
7.1.280.0420.00315.77
7.1.270.0260.01015.77
7.1.260.0220.00515.57
7.1.250.0400.01115.69
7.1.240.0130.00815.79
7.1.230.0080.01615.63
7.1.220.0160.00915.63
7.1.210.0120.01115.59
7.1.200.0300.00915.61
7.1.190.0380.00614.05
7.1.180.0670.00514.21
7.1.170.0190.00514.12
7.1.160.0130.01015.80
7.1.150.0110.00915.53
7.1.140.0310.00715.60
7.1.130.0280.00415.27
7.1.120.0170.01115.58
7.1.110.0180.00515.70
7.1.100.0100.01015.56
7.1.90.0180.00915.75
7.1.80.0400.01015.70
7.1.70.0150.00615.61
7.1.60.0180.00815.57
7.1.50.0180.00614.09
7.1.40.0130.01015.53
7.1.30.0910.01215.75
7.1.20.0080.00614.12
7.1.10.0250.00915.71
7.1.00.0230.01015.56
7.0.330.0100.00915.42
7.0.320.0120.01415.37
7.0.310.0180.00613.95
7.0.300.0230.00713.97
7.0.290.0260.01215.41
7.0.280.0260.00815.35
7.0.270.0160.00915.20
7.0.260.0220.01015.38
7.0.250.0170.00815.25
7.0.240.0160.00715.25
7.0.230.0130.00815.29
7.0.220.0120.01415.30
7.0.210.0210.01115.49
7.0.200.0160.01115.39
7.0.190.0300.00915.31
7.0.180.0150.00715.11
7.0.170.0420.00214.04
7.0.160.0120.00615.30
7.0.150.0300.01113.90
7.0.140.0190.00313.87
7.0.130.0230.00815.40
7.0.120.0360.00613.84
7.0.110.0330.01115.40
7.0.100.0320.00513.84
7.0.90.0140.01415.29
7.0.80.0340.00715.32
7.0.70.0360.00515.37
7.0.60.0300.00615.22
7.0.50.0300.01315.43
7.0.40.0150.00213.09
7.0.30.0090.01214.29
7.0.20.0120.00514.08
7.0.10.0070.01414.17
7.0.00.0090.01214.20
5.6.400.0030.01215.16
5.6.390.0140.00915.16
5.6.380.0140.00715.11
5.6.370.0110.01015.08
5.6.360.0060.01315.12
5.6.350.0130.00315.21
5.6.340.0090.01013.44
5.6.330.0150.00313.47
5.6.320.0090.00913.35
5.6.310.0110.01015.15
5.6.300.0150.01215.05
5.6.290.0090.01415.09
5.6.280.0130.00815.10
5.6.270.0200.00315.30
5.6.260.0120.01015.00
5.6.250.0130.00914.98
5.6.240.0150.00615.04
5.6.230.0130.01315.15
5.6.220.0100.01215.08
5.6.210.0110.01015.16
5.6.200.0070.01213.45
5.6.190.0100.00915.03
5.6.180.0100.00915.11
5.6.170.0120.00915.18
5.6.160.0080.00814.99
5.6.150.0080.01115.03
5.6.140.0130.00615.11
5.6.130.0080.01215.08
5.6.120.0050.01315.12
5.6.110.0090.00915.05
5.6.100.0120.00515.22
5.6.90.0040.01115.13
5.6.80.0100.00815.10
5.6.70.0070.01214.98
5.6.60.0100.01014.99
5.6.50.0120.00715.07
5.6.40.0120.00815.12
5.6.30.0160.00414.92
5.6.20.0080.01014.95
5.6.10.0120.01015.02
5.6.00.0140.00714.94
5.5.380.0140.00715.07
5.5.370.0160.00614.99
5.5.360.0110.01015.04
5.5.350.0100.00815.09
5.5.340.0100.00715.06
5.5.330.0110.00815.06
5.5.320.0110.00914.94
5.5.310.0090.01214.89
5.5.300.0040.01315.04
5.5.290.0040.01415.08
5.5.280.0070.00815.00
5.5.270.0050.01214.91
5.5.260.0100.01115.04
5.5.250.0090.00914.92
5.5.240.0090.00914.79
5.5.230.0080.01014.88
5.5.220.0100.00914.82
5.5.210.0100.00815.05
5.5.200.0040.01415.05
5.5.190.0120.00814.72
5.5.180.0120.00615.01
5.5.170.0080.01315.03
5.5.160.0120.00614.84
5.5.150.0110.00815.03
5.5.140.0090.00714.92
5.5.130.0100.01115.08
5.5.120.0060.01514.97
5.5.110.0050.01415.09
5.5.100.0070.01314.84
5.5.90.0080.01015.08
5.5.80.0100.01214.93
5.5.70.0150.00615.11
5.5.60.0120.00814.86
5.5.50.0100.00914.79
5.5.40.0100.00814.97
5.5.30.0100.00714.91
5.5.20.0080.01214.95
5.5.10.0090.01114.64
5.5.00.0130.00814.75
5.4.450.0050.01011.98
5.4.440.0080.00411.98
5.4.430.0090.00611.98
5.4.420.0060.01011.98
5.4.410.0070.00811.98
5.4.400.0110.00511.98
5.4.390.0070.00511.98
5.4.380.0100.00311.98
5.4.370.0120.00211.98
5.4.360.0060.00711.98
5.4.350.0040.00812.03
5.4.340.0080.00511.98
5.4.330.0060.00811.98
5.4.320.0060.01812.16
5.4.310.0080.01612.15
5.4.300.0100.01512.15
5.4.290.0060.01512.15
5.4.280.0050.01812.13
5.4.270.0050.01912.12
5.4.260.0060.01712.12
5.4.250.0050.01912.12
5.4.240.0060.01712.12
5.4.230.0080.01412.12
5.4.220.0110.01612.12
5.4.210.0050.02112.12
5.4.200.0060.01912.12
5.4.190.0050.01712.12
5.4.180.0080.01412.12
5.4.170.0050.01712.12
5.4.160.0050.02012.12
5.4.150.0060.01912.12
5.4.140.0070.01912.02
5.4.130.0070.01612.01
5.4.120.0090.01511.99
5.4.110.0090.01511.99
5.4.100.0070.01612.00
5.4.90.0100.01212.00
5.4.80.0060.01812.00
5.4.70.0050.01711.99
5.4.60.0090.01711.99
5.4.50.0050.01911.99
5.4.40.0080.01811.99
5.4.30.0080.01511.99
5.4.20.0060.02211.99
5.4.10.0090.01611.99
5.4.00.0050.01811.82
5.3.290.0070.03912.80
5.3.280.0050.03912.71
5.3.270.0050.04012.72
5.3.260.0090.04712.72
5.3.250.0080.03612.72
5.3.240.0110.03412.72
5.3.230.0080.04112.71
5.3.220.0080.03912.68
5.3.210.0070.05512.68
5.3.200.0070.04012.68
5.3.190.0080.04512.68
5.3.180.0100.03912.68
5.3.170.0080.03412.67
5.3.160.0040.03812.67
5.3.150.0060.03712.67
5.3.140.0050.04512.66
5.3.130.0040.04012.66
5.3.120.0020.04212.66
5.3.110.0060.04012.66
5.3.100.0040.03812.12
5.3.90.0060.03712.10
5.3.80.0070.03612.09
5.3.70.0040.03812.10
5.3.60.0060.03612.08
5.3.50.0060.03612.03
5.3.40.0070.03812.03
5.3.30.0110.03411.99
5.3.20.0060.04111.77
5.3.10.0090.03111.73
5.3.00.0060.04011.72
5.2.170.0050.0339.27
5.2.160.0060.0299.27
5.2.150.0050.0329.27
5.2.140.0070.0329.27
5.2.130.0080.0289.22
5.2.120.0060.0279.23
5.2.110.0080.0269.23
5.2.100.0050.0289.23
5.2.90.0050.0319.23
5.2.80.0100.0279.23
5.2.70.0060.0359.23
5.2.60.0050.0379.18
5.2.50.0060.0329.15
5.2.40.0070.0309.13
5.2.30.0030.0319.10
5.2.20.0080.0349.09
5.2.10.0060.0339.02
5.2.00.0050.0298.86
5.1.60.0020.0308.15
5.1.50.0060.0258.15
5.1.40.0030.0258.13
5.1.30.0040.0268.49
5.1.20.0070.0258.51
5.1.10.0050.0258.23
5.1.00.0020.0278.23
5.0.50.0080.0206.73
5.0.40.0050.0186.59
5.0.30.0040.0306.40
5.0.20.0020.0226.37
5.0.10.0030.0206.36
5.0.00.0080.0296.35
4.4.90.0050.0214.78
4.4.80.0030.0224.75
4.4.70.0030.0194.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0020.0264.73
4.4.30.0050.0144.76
4.4.20.0030.0164.85
4.4.10.0030.0154.85
4.4.00.0050.0234.77
4.3.110.0030.0154.67
4.3.100.0040.0144.66
4.3.90.0020.0154.64
4.3.80.0050.0234.63
4.3.70.0020.0154.63
4.3.60.0060.0174.64
4.3.50.0030.0164.63
4.3.40.0030.0264.61
4.3.30.0030.0223.41
4.3.20.0010.0223.39
4.3.10.0030.0153.34
4.3.00.0070.0276.62

preferences:
45.79 ms | 401 KiB | 5 Q