3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if(isset($_SESSION['validos'])) { $xml_validos=$_SESSION['validos']; $xml_v=$_SESSION["nom_xml_val"]; for($i=0;$i<=count($xml_validos)-1;$i++) { $nom=$xml_v[$i]; $valor=$xml_validos[$i]; $validos[$valor]="<div class='tool_tip'><ul class='tt-wrapper'><li><a class='tt-sample' href='#''><img src='img/ok.png' alt=''/><span>XML V&aacute;lido</span></a></li></ul></div>"; $nombre[$valor]=$nom; } unset($_SESSION['validos']); } //comprobamos que no existan UUID duplicados, esto con el fin de evitar una doble validacion del XML if(isset($_SESSION['e'])) { $error_uuid=$_SESSION['e']; $xml_uuid=$_SESSION["nom_uuid"]; for($i=0;$i<=count($error_uuid)-1;$i++) { $nom=$xml_uuid[$i]; $valor=$error_uuid[$i]; $errors[$valor]="<div class='tool_tip'><ul class='tt-wrapper'><li><a class='tt-sample' href='#''><img src='img/warning.png' alt=''/><span>UUID ya existente</span></a></li></ul></div>"; $nombre[$valor]=$nom; } unset($_SESSION['e']); } //comprobamos que existan errores de direccion de receptor del XML if(isset($_SESSION['e_dir'])) { $error_dir=$_SESSION['e_dir']; $xml_dir=$_SESSION["nom_dir"]; for($i=0;$i<=count($error_dir)-1;$i++) { $nom=$xml_dir[$i]; $valor=$error_dir[$i]; $errors[$valor]="<div class='tool_tip'><ul class='tt-wrapper'><li><a class='tt-sample' href='#''><img src='img/warning.png' alt=''/><span>Verifica nuestros datos de recepci&oacute;n fiscales del archivo</span></a></li></ul></div>"; $nombre[$valor]=$nom; } unset($_SESSION['e_dir']); } //Comprobamos que existan errores del XML validado ante el SAT if(isset($_SESSION['e_xml'])) { $error_xml=$_SESSION['e_xml']; $posicion=$_SESSION['posicion']; $xml_i=$_SESSION["nom_xml_inv"]; for($i=0;$i<=count($error_xml)-1;$i++) { $nom=$xml_i[$i]; $pos=$posicion[$i]; $valor=$error_xml[$i]; $errors[$pos]="<div class='tool_tip'><ul class='tt-wrapper'><li><a class='tt-sample' href='#''><img src='img/warning.png' alt=''/><span>".$valor."</span></a></li></ul></div>"; $nombre[$pos]=$nom; } unset($_SESSION['e_xml']); } ?> <div style="float:right;"><img src="img/logo2.png" width="14%"/></div> <table style="width: 100%;text-align: center;"> <tr> <td><span>Nombre</span><div class="clear"></div></td> <td><span>Verificaci&oacute;n</span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[0]?></span><div class="clear"></div></td> <td><span><?php echo $errors[0];?><?php echo $validos[0];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[1]?></span><div class="clear"></div></td> <td><span><?php echo $errors[1];?><?php echo $validos[1];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[2]?></span><div class="clear"></div></td> <td><span><?php echo $errors[2];?><?php echo $validos[2];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[3]?></span><div class="clear"></div></td> <td><span><?php echo $errors[3];?><?php echo $validos[3];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[4]?></span><div class="clear"></div></td> <td><span><?php echo $errors[4];?><?php echo $validos[4];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[5]?></span><div class="clear"></div></td> <td><span><?php echo $errors[5];?><?php echo $validos[5];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[6]?></span><div class="clear"></div></td> <td><span><?php echo $errors[6];?><?php echo $validos[6];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[7]?></span><div class="clear"></div></td> <td><span><?php echo $errors[7];?><?php echo $validos[7];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[8]?></span><div class="clear"></div></td> <td><span><?php echo $errors[8];?><?php echo $validos[8];?></span><div class="clear"></div></td> </tr> <tr> <td><span><?php echo $nombre[9]?></span><div class="clear"></div></td> <td><span><?php echo $errors[9];?><?php echo $validos[9];?></span><div class="clear"></div></td> </tr> </table> ?>
Output for 5.0.4 - 7.2.0
<div style="float:right;"><img src="img/logo2.png" width="14%"/></div> <table style="width: 100%;text-align: center;"> <tr> <td><span>Nombre</span><div class="clear"></div></td> <td><span>Verificaci&oacute;n</span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 69 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 70 Notice: Undefined variable: validos in /in/WTlWn on line 70 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 73 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 74 Notice: Undefined variable: validos in /in/WTlWn on line 74 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 77 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 78 Notice: Undefined variable: validos in /in/WTlWn on line 78 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 81 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 82 Notice: Undefined variable: validos in /in/WTlWn on line 82 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 85 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 86 Notice: Undefined variable: validos in /in/WTlWn on line 86 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 89 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 90 Notice: Undefined variable: validos in /in/WTlWn on line 90 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 93 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 94 Notice: Undefined variable: validos in /in/WTlWn on line 94 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 97 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 98 Notice: Undefined variable: validos in /in/WTlWn on line 98 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 101 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 102 Notice: Undefined variable: validos in /in/WTlWn on line 102 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 105 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 106 Notice: Undefined variable: validos in /in/WTlWn on line 106 </span><div class="clear"></div></td> </tr> </table> ?>
Output for 4.3.0 - 5.0.3
<div style="float:right;"><img src="img/logo2.png" width="14%"/></div> <table style="width: 100%;text-align: center;"> <tr> <td><span>Nombre</span><div class="clear"></div></td> <td><span>Verificaci&oacute;n</span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 69 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 70 Notice: Undefined variable: validos in /in/WTlWn on line 70 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 73 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 74 Notice: Undefined variable: validos in /in/WTlWn on line 74 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 77 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 78 Notice: Undefined variable: validos in /in/WTlWn on line 78 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 81 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 82 Notice: Undefined variable: validos in /in/WTlWn on line 82 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 85 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 86 Notice: Undefined variable: validos in /in/WTlWn on line 86 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 89 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 90 Notice: Undefined variable: validos in /in/WTlWn on line 90 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 93 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 94 Notice: Undefined variable: validos in /in/WTlWn on line 94 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 97 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 98 Notice: Undefined variable: validos in /in/WTlWn on line 98 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 101 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 102 Notice: Undefined variable: validos in /in/WTlWn on line 102 </span><div class="clear"></div></td> </tr> <tr> <td><span> Notice: Undefined variable: nombre in /in/WTlWn on line 105 </span><div class="clear"></div></td> <td><span> Notice: Undefined variable: errors in /in/WTlWn on line 106 Notice: Undefined variable: validos in /in/WTlWn on line 106 </span><div class="clear"></div></td> </tr> </table> ?>