3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/ES-Comun.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>infointegro</title> <!-- InstanceEndEditable --> <link href="/archivos/css/estilos.css" rel="stylesheet" type="text/css" /> <!-- InstanceParam name="OpcionMenuSuperior" type="text" value="" --> <!-- InstanceBeginEditable name="head" --> <link href="/archivos/css/estilos-formularios.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript" src="/archivos/js/jquery-1.9.0.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js"></script> <script language="javascript" type="text/javascript"> jQuery(document).ready(function($) { $(".selector-interior").removeClass("oculto"); $("#Sector").addClass("oculto"); $("#Area").addClass("oculto"); $("#selector-interior-paso-1 .enlace").click(function(e) { var sector = $(this).attr("data-sector"); $("#Sector option").each(function(indice,opcion) { $(opcion).prop("selected", ( $(opcion).attr("data-sector") == sector ) ); }); marcaOpcion( $("#selector-interior-paso-1") , $(this) ); }); $("#selector-interior-paso-2 .enlace").click(function(e) { if ( $("#Sector").val() != "" ) { var area = $(this).attr("data-area"); $("#Area option").each(function(indice,opcion) { $(opcion).prop("selected", ( $(opcion).attr("data-area") == area ) ); }); marcaOpcion( $("#selector-interior-paso-2") , $(this) ); } else { muestraError( "SELECCIONA PRIMERO UN SECTOR" ); } }); $("#selector-interior-paso-3 .enlace").click(function(e) { e.preventDefault(); if ( ( $("#Sector").val() != "" ) && ( $("#Area").val() != "" ) ) { // Envío del formulario $("#frmSelector").submit(); } else if ( $("#Sector").val() == "" ) { muestraError( "SELECCIONA PRIMERO UN SECTOR" ); } else if ( $("#Area").val() == "" ) { muestraError( "SELECCIONA UN ÁREA" ); } }); function marcaOpcion( panel , opcion ) { $(panel).find(".enlace").removeClass("seleccionada"); $(opcion).addClass("seleccionada"); } function muestraError( error ) { alert( error ); } }); </script> <!-- InstanceEndEditable --> </head> <body lang="es"> <div id="contenedor"> <div id="cabecera"> <div class="contenido"> <h1 id="logotipo"><a href="/" target="_self">infointegro</a></h1> <div id="menu-superior"> <ul> <li><a href="/" target="_self" class="">Inicio</a></li> <li><a href="#" target="_self" class="">¿Qué es infointegro?</a></li> <li><a href="#" target="_self" class="">Acceso Temas</a></li> <li><a href="#" target="_self" class="">Contacto</a></li> </ul> </div> </div> </div> <div id="cuerpo"> <!-- InstanceBeginEditable name="Contenido" --> <div class="panel-sombra-inferior"> <div id="selector-interior"> <div class="selector-interior oculto" id="selector-interior-paso-1"> <h2 class="selector-interior-titulo">Seleccione un Sector</h2> <ul> <li class="sector-construccion"><span class="enlace seleccionada" data-sector="1">Construcción</span></li> <li class="sector-industria"><span class="enlace" data-sector="2">Industria</span></li> <li class="sector-agricultura"><span class="enlace" data-sector="3">Agricultura</span></li> <li class="sector-comercio"><span class="enlace" data-sector="4">Comercio</span></li> <li class="sector-admon-servicios"><span class="enlace" data-sector="5">Admon. Servicios</span></li> </ul> <div class="terminador"></div> </div> <div class="selector-interior oculto" id="selector-interior-paso-2"> <h2 class="selector-interior-titulo">Seleccione un Área</h2> <ul> <li class="area-coordinador-grupo-de-trabajo"><span class="enlace seleccionada" data-area="1">ÁREA COORDINADOR / GRUPO DE TRABAJO</span></li> <li class="area-encargados-instructores"><span class="enlace" data-area="2">ÁREA ENCARGADOS / INSTRUCTORES</span></li> <li class="area-trabajadores"><span class="enlace" data-area="3">ÁREA TRABAJADORES</span></li> </ul> <div class="terminador"></div> </div> <div class="selector-interior" id="selector-interior-paso-3"> <form action="/temas.html" method="post" enctype="multipart/form-data" name="frmSelector" id="frmSelector"> <select name="Sector" id="Sector"> <option value="" data-sector="">Seleccione un Sector</option> <option value="construccion" data-sector="1" selected="selected">Construcción</option> <option value="industria" data-sector="2">Industria</option> <option value="agricultura" data-sector="3">Agricultura</option> <option value="comercio" data-sector="4">Comercio</option> <option value="admon-servicios" data-sector="5">Admon. Servicios</option> </select> <select name="Area" id="Area"> <option value="" data-area="">Seleccione un Área</option> <option value="coordinador" data-area="1" selected="selected">ÁREA COORDINADOR / GRUPO DE TRABAJO</option> <option value="encargado" data-area="2">ÁREA ENCARGADOS / INSTRUCTORES</option> <option value="trabajador" data-area="3">ÁREA TRABAJADORES</option> </select> <div class="botones"> <input type="submit" name="Comenzar" id="Comenzar" value="COMENZAR" class="enlace" /> </div> </form> <div class="terminador"></div> </div> </div> </div> <div class="fila"> <div class="columna cuatro"> <h2>&nbsp;</h2> <p>[MENÚ ARCHIVOS]</p> </div> <div class="columna ocho"> <div class="marco-visor"> <iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fwww.uniondemutuas.es%2Fimages%2FJornadas%2Ffolletocirugiaartrosc%25C3%25B3picamu%25C3%25B1ecaar04.pdf&embedded=true" width="620" height="780" style="border: none;"></iframe> </div> </div> </div> <!-- InstanceEndEditable --> <div class="terminador"></div> </div> <div id="pie"> <p class="copyright">Copyright © 2013 Unión de Mutuas<br /> Todos los derechos reservados<br /> <a href="#" target="_self">Nota legal</a> - Webmaster</p> </div> </div> </body> <!-- InstanceEnd --></html>'; $startTime=microtime(true); $string=str_replace("End","fin",$string); $string=str_replace("Editable","editable",$string); $endTime = microtime(true); echo "Took ".($endTime - $startTime)." microseconds"; $startTime=microtime(true); $search=array("End","Editable"); $replace=array("fin","editable"); $string=str_replace($search,$replace,$string); $endTime = microtime(true); echo "Took ".($endTime - $startTime)." microseconds";
Output for 7.1.0
Took 7.1525573730469E-6 microsecondsTook 1.9073486328125E-6 microseconds
Output for 5.6.21, 7.0.3, 7.0.14
Took 2.0027160644531E-5 microsecondsTook 1.5974044799805E-5 microseconds
Output for 7.0.12
Took 2.0027160644531E-5 microsecondsTook 1.6927719116211E-5 microseconds
Output for 7.0.6
Took 4.1007995605469E-5 microsecondsTook 2.8133392333984E-5 microseconds
Output for 7.0.5
Took 2.5033950805664E-5 microsecondsTook 1.6927719116211E-5 microseconds
Output for 7.0.4
Took 1.5020370483398E-5 microsecondsTook 1.0967254638672E-5 microseconds
Output for 7.0.2
Took 1.7881393432617E-5 microsecondsTook 1.5020370483398E-5 microseconds
Output for 7.0.1
Took 1.5974044799805E-5 microsecondsTook 1.2874603271484E-5 microseconds
Output for 5.4.8, 7.0.0
Took 1.4066696166992E-5 microsecondsTook 1.0013580322266E-5 microseconds
Output for hhvm-3.12.0
Took 9.0599060058594E-6 microsecondsTook 3.814697265625E-6 microseconds
Output for hhvm-3.10.0
Took 1.0967254638672E-5 microsecondsTook 3.814697265625E-6 microseconds
Output for 5.4.12, 5.6.28
Took 1.6927719116211E-5 microsecondsTook 1.215934753418E-5 microseconds
Output for 5.6.20
Took 1.7881393432617E-5 microsecondsTook 1.1920928955078E-5 microseconds
Output for 5.4.25, 5.6.15, 5.6.19
Took 1.5974044799805E-5 microsecondsTook 9.0599060058594E-6 microseconds
Output for 5.6.18
Took 1.4066696166992E-5 microsecondsTook 8.1062316894531E-6 microseconds
Output for 5.6.17
Took 2.5033950805664E-5 microsecondsTook 1.1920928955078E-5 microseconds
Output for 5.6.16
Took 2.0980834960938E-5 microsecondsTook 1.5974044799805E-5 microseconds
Output for 5.6.14
Took 2.6941299438477E-5 microsecondsTook 1.5020370483398E-5 microseconds
Output for 5.6.13
Took 2.288818359375E-5 microsecondsTook 1.4066696166992E-5 microseconds
Output for 5.6.12
Took 1.6927719116211E-5 microsecondsTook 1.0013580322266E-5 microseconds
Output for 5.4.17, 5.4.36, 5.4.39, 5.5.34, 5.6.11
Took 1.7881393432617E-5 microsecondsTook 1.0967254638672E-5 microseconds
Output for 5.6.10
Took 1.9073486328125E-5 microsecondsTook 1.3113021850586E-5 microseconds
Output for 5.6.9
Took 2.598762512207E-5 microsecondsTook 1.7166137695312E-5 microseconds
Output for 5.6.8
Took 2.4080276489258E-5 microsecondsTook 1.5020370483398E-5 microseconds
Output for 5.5.35
Took 2.0980834960938E-5 microsecondsTook 1.3113021850586E-5 microseconds
Output for 5.5.33
Took 1.7881393432617E-5 microsecondsTook 1.1205673217773E-5 microseconds
Output for 5.5.32
Took 1.215934753418E-5 microsecondsTook 7.8678131103516E-6 microseconds
Output for 5.5.31
Took 2.288818359375E-5 microsecondsTook 1.6927719116211E-5 microseconds
Output for 5.5.30
Took 1.7166137695312E-5 microsecondsTook 1.0967254638672E-5 microseconds
Output for 5.4.10, 5.5.29
Took 1.9073486328125E-5 microsecondsTook 1.1920928955078E-5 microseconds
Output for 5.5.28
Took 2.8848648071289E-5 microsecondsTook 1.9073486328125E-5 microseconds
Output for 5.5.27
Took 1.9073486328125E-5 microsecondsTook 1.0013580322266E-5 microseconds
Output for 5.5.26
Took 1.3113021850586E-5 microsecondsTook 9.0599060058594E-6 microseconds
Output for 5.4.31, 5.5.25
Took 1.7166137695312E-5 microsecondsTook 1.0013580322266E-5 microseconds
Output for 5.5.24
Took 1.8835067749023E-5 microsecondsTook 1.215934753418E-5 microseconds
Output for 5.4.41, 5.4.43, 5.4.45
Took 1.0967254638672E-5 microsecondsTook 6.9141387939453E-6 microseconds
Output for 5.4.42, 5.4.44
Took 1.0967254638672E-5 microsecondsTook 5.9604644775391E-6 microseconds
Output for 5.4.5, 5.4.40
Took 1.215934753418E-5 microsecondsTook 9.0599060058594E-6 microseconds
Output for 5.4.38
Took 1.5020370483398E-5 microsecondsTook 1.1920928955078E-5 microseconds
Output for 5.4.19, 5.4.37
Took 1.8119812011719E-5 microsecondsTook 1.0967254638672E-5 microseconds
Output for 5.4.35
Took 1.3113021850586E-5 microsecondsTook 7.8678131103516E-6 microseconds
Output for 5.4.13, 5.4.29, 5.4.34
Took 1.5974044799805E-5 microsecondsTook 1.0013580322266E-5 microseconds
Output for 5.4.32
Took 1.3828277587891E-5 microsecondsTook 1.0967254638672E-5 microseconds
Output for 5.4.30
Took 1.9073486328125E-5 microsecondsTook 1.2874603271484E-5 microseconds
Output for 5.4.28
Took 1.1920928955078E-5 microsecondsTook 7.8678131103516E-6 microseconds
Output for 5.4.27
Took 1.1920928955078E-5 microsecondsTook 6.9141387939453E-6 microseconds
Output for 5.4.26
Took 2.0980834960938E-5 microsecondsTook 1.2874603271484E-5 microseconds
Output for 5.4.24
Took 1.7881393432617E-5 microsecondsTook 1.5974044799805E-5 microseconds
Output for 5.4.15, 5.4.23
Took 1.9073486328125E-5 microsecondsTook 1.0967254638672E-5 microseconds
Output for 5.4.22
Took 2.6941299438477E-5 microsecondsTook 1.5974044799805E-5 microseconds
Output for 5.4.21
Took 1.4066696166992E-5 microsecondsTook 9.0599060058594E-6 microseconds
Output for 5.4.20
Took 1.5974044799805E-5 microsecondsTook 8.8214874267578E-6 microseconds
Output for 5.4.18
Took 1.3113021850586E-5 microsecondsTook 1.0013580322266E-5 microseconds
Output for 5.4.16
Took 1.5020370483398E-5 microsecondsTook 8.8214874267578E-6 microseconds
Output for 5.4.14
Took 1.7166137695312E-5 microsecondsTook 1.2874603271484E-5 microseconds
Output for 5.4.11
Took 1.7881393432617E-5 microsecondsTook 9.0599060058594E-6 microseconds
Output for 5.4.9
Took 1.8119812011719E-5 microsecondsTook 1.3828277587891E-5 microseconds
Output for 5.4.7
Took 1.5020370483398E-5 microsecondsTook 1.4066696166992E-5 microseconds
Output for 5.4.6
Took 1.6927719116211E-5 microsecondsTook 1.1920928955078E-5 microseconds
Output for 5.4.4
Took 1.6927719116211E-5 microsecondsTook 1.3113021850586E-5 microseconds
Output for 5.4.3
Took 1.0967254638672E-5 microsecondsTook 1.1920928955078E-5 microseconds
Output for 5.4.2
Took 1.5974044799805E-5 microsecondsTook 1.215934753418E-5 microseconds
Output for 5.4.1
Took 1.6927719116211E-5 microsecondsTook 2.0980834960938E-5 microseconds
Output for 5.4.0
Took 1.4781951904297E-5 microsecondsTook 1.5974044799805E-5 microseconds
Output for 5.3.29
Took 9.7751617431641E-6 microsecondsTook 1.0967254638672E-5 microseconds
Output for 5.3.28
Took 1.6927719116211E-5 microsecondsTook 2.4080276489258E-5 microseconds
Output for 5.3.27
Took 1.4066696166992E-5 microsecondsTook 1.6927719116211E-5 microseconds
Output for 5.3.26
Took 9.7751617431641E-6 microsecondsTook 1.2874603271484E-5 microseconds
Output for 5.3.25
Took 1.1920928955078E-5 microsecondsTook 1.1920928955078E-5 microseconds
Output for 5.3.24
Took 1.5020370483398E-5 microsecondsTook 2.1219253540039E-5 microseconds
Output for 5.3.23
Took 1.1920928955078E-5 microsecondsTook 1.8835067749023E-5 microseconds
Output for 5.3.22
Took 1.4066696166992E-5 microsecondsTook 2.288818359375E-5 microseconds
Output for 5.3.21
Took 1.3828277587891E-5 microsecondsTook 2.288818359375E-5 microseconds
Output for 5.3.20
Took 1.3113021850586E-5 microsecondsTook 1.6927719116211E-5 microseconds
Output for 5.3.19
Took 1.5974044799805E-5 microsecondsTook 1.9073486328125E-5 microseconds
Output for 5.3.18
Took 1.5020370483398E-5 microsecondsTook 1.7881393432617E-5 microseconds
Output for 5.3.17
Took 1.7881393432617E-5 microsecondsTook 2.0027160644531E-5 microseconds
Output for 5.3.13, 5.3.16
Took 1.5020370483398E-5 microsecondsTook 1.9073486328125E-5 microseconds
Output for 5.3.15
Took 1.5974044799805E-5 microsecondsTook 2.9087066650391E-5 microseconds
Output for 5.3.14
Took 1.0013580322266E-5 microsecondsTook 1.6927719116211E-5 microseconds
Output for 5.3.12
Took 9.0599060058594E-6 microsecondsTook 1.1920928955078E-5 microseconds
Output for 5.3.11
Took 1.4066696166992E-5 microsecondsTook 1.7881393432617E-5 microseconds
Output for 5.3.10
Took 1.5974044799805E-5 microsecondsTook 2.1934509277344E-5 microseconds
Output for 5.3.9
Took 1.5020370483398E-5 microsecondsTook 1.6927719116211E-5 microseconds
Output for 5.3.8
Took 1.4066696166992E-5 microsecondsTook 1.8119812011719E-5 microseconds
Output for 5.3.6 - 5.3.7
Took 1.0013580322266E-5 microsecondsTook 1.4066696166992E-5 microseconds
Output for 5.3.5
Took 1.7166137695312E-5 microsecondsTook 2.598762512207E-5 microseconds
Output for 5.3.4
Took 1.5974044799805E-5 microsecondsTook 1.7881393432617E-5 microseconds
Output for 5.3.3
Took 1.5020370483398E-5 microsecondsTook 2.0980834960938E-5 microseconds
Output for 5.2.12, 5.3.2
Took 1.5974044799805E-5 microsecondsTook 1.6927719116211E-5 microseconds
Output for 5.3.1
Took 1.3828277587891E-5 microsecondsTook 1.7166137695312E-5 microseconds
Output for 5.3.0
Took 1.1920928955078E-5 microsecondsTook 2.1934509277344E-5 microseconds
Output for 5.2.17
Took 1.5974044799805E-5 microsecondsTook 1.5974044799805E-5 microseconds
Output for 5.2.16
Took 2.4080276489258E-5 microsecondsTook 2.3126602172852E-5 microseconds
Output for 5.2.15
Took 1.8119812011719E-5 microsecondsTook 2.0027160644531E-5 microseconds
Output for 5.2.14
Took 1.5020370483398E-5 microsecondsTook 1.8119812011719E-5 microseconds
Output for 5.2.13
Took 1.7881393432617E-5 microsecondsTook 1.9073486328125E-5 microseconds
Output for 5.2.11
Took 1.9073486328125E-5 microsecondsTook 2.3126602172852E-5 microseconds
Output for 5.2.10
Took 1.5020370483398E-5 microsecondsTook 1.8835067749023E-5 microseconds
Output for 5.2.9
Took 1.5974044799805E-5 microsecondsTook 2.0027160644531E-5 microseconds
Output for 5.2.8
Took 1.5020370483398E-5 microsecondsTook 2.0027160644531E-5 microseconds
Output for 5.2.7
Took 1.2874603271484E-5 microsecondsTook 1.9073486328125E-5 microseconds
Output for 5.2.6
Took 1.4781951904297E-5 microsecondsTook 6.2942504882812E-5 microseconds
Output for 5.2.5
Took 1.0967254638672E-5 microsecondsTook 1.4066696166992E-5 microseconds
Output for 5.2.4
Took 9.7751617431641E-6 microsecondsTook 1.3113021850586E-5 microseconds
Output for 5.2.3
Took 1.0013580322266E-5 microsecondsTook 1.7881393432617E-5 microseconds
Output for 5.2.2
Took 1.0013580322266E-5 microsecondsTook 1.5974044799805E-5 microseconds
Output for 5.2.1
Took 1.215934753418E-05 microsecondsTook 1.215934753418E-05 microseconds
Output for 5.2.0
Took 1.5020370483398E-05 microsecondsTook 1.5974044799805E-05 microseconds
Output for 5.1.6
Took 2.7894973754883E-05 microsecondsTook 2.1934509277344E-05 microseconds
Output for 5.1.5
Took 2.0027160644531E-05 microsecondsTook 2.1934509277344E-05 microseconds
Output for 5.1.4
Took 1.0013580322266E-05 microsecondsTook 1.5974044799805E-05 microseconds
Output for 5.1.3
Took 1.3113021850586E-05 microsecondsTook 1.1920928955078E-05 microseconds
Output for 5.1.2
Took 1.5020370483398E-05 microsecondsTook 1.5020370483398E-05 microseconds
Output for 5.1.1
Took 1.3828277587891E-05 microsecondsTook 1.6927719116211E-05 microseconds
Output for 5.1.0
Took 1.2874603271484E-05 microsecondsTook 1.1205673217773E-05 microseconds
Output for 5.0.5
Took 1.6927719116211E-05 microsecondsTook 1.8119812011719E-05 microseconds
Output for 5.0.4
Took 1.5974044799805E-05 microsecondsTook 2.0980834960938E-05 microseconds
Output for 5.0.3
Took 2.3126602172852E-05 microsecondsTook 1.4066696166992E-05 microseconds
Output for 5.0.2
Took 1.5974044799805E-05 microsecondsTook 2.3841857910156E-05 microseconds
Output for 5.0.1
Took 1.5020370483398E-05 microsecondsTook 2.0027160644531E-05 microseconds
Output for 5.0.0
Took 1.6927719116211E-05 microsecondsTook 2.1934509277344E-05 microseconds
Output for 4.4.9
Took 3.1000000000003E-05 microsecondsTook 2.6999999999999E-05 microseconds
Output for 4.4.8
Took 2.4000000000024E-05 microsecondsTook 2.4000000000024E-05 microseconds
Output for 4.4.7
Took 2.599999999997E-05 microsecondsTook 2.599999999997E-05 microseconds
Output for 4.4.6
Took 2.8000000000028E-05 microsecondsTook 1.7000000000045E-05 microseconds
Output for 4.4.5
Took 1.6000000000016E-05 microsecondsTook 1.1999999999901E-05 microseconds
Output for 4.4.4
Took 3.3000000000005E-05 microsecondsTook 2.1000000000049E-05 microseconds
Output for 4.4.3
Took 1.6000000000016E-05 microsecondsTook 1.7999999999962E-05 microseconds
Output for 4.4.2
Took 3.0000000000002E-05 microsecondsTook 3.1000000000003E-05 microseconds
Output for 4.4.1
Took 2.9999999999974E-05 microsecondsTook 2.2999999999995E-05 microseconds
Output for 4.4.0
Took 2.6999999999999E-05 microsecondsTook 2.000000000002E-05 microseconds
Output for 4.3.11
Took 3.0000000000002E-05 microsecondsTook 1.9999999999992E-05 microseconds
Output for 4.3.10
Took 2.000000000002E-05 microsecondsTook 1.8999999999991E-05 microseconds
Output for 4.3.9
Took 2.9999999999974E-05 microsecondsTook 2.8999999999946E-05 microseconds
Output for 4.3.8
Took 2.9000000000001E-05 microsecondsTook 2.9000000000001E-05 microseconds
Output for 4.3.7
Took 2.8E-05 microsecondsTook 2.6999999999999E-05 microseconds
Output for 4.3.6
Took 3.5000000000007E-05 microsecondsTook 2.4999999999997E-05 microseconds
Output for 4.3.5
Took 3.1000000000003E-05 microsecondsTook 3.1000000000003E-05 microseconds
Output for 4.3.4
Took 2.2999999999995E-05 microsecondsTook 2.3999999999913E-05 microseconds
Output for 4.3.3
Took 2.6999999999999E-05 microsecondsTook 1.7999999999962E-05 microseconds
Output for 4.3.2
Took 3.5000000000007E-05 microsecondsTook 3.3999999999978E-05 microseconds
Output for 4.3.1
Took 2.4000000000024E-05 microsecondsTook 1.400000000007E-05 microseconds
Output for 4.3.0
Took 2.0999999999993E-05 microsecondsTook 1.2999999999999E-05 microseconds