3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<style>th { font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; color: #6D929B; border-right: 1px solid #C1DAD7; border-bottom: 1px solid #C1DAD7; border-top: 1px solid #C1DAD7; letter-spacing: 2px; text-transform: uppercase; text-align: left; padding: 6px 6px 6px 12px; background: #CAE8EA url(images/bg_header.jpg) no-repeat; } th.nobg { border-top: 0; border-left: 0; border-right: 1px solid #C1DAD7; background: none; } </style> </head> <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"> <?php $id=$_GET['id']; $cek = file_get_contents("http://www.tarimsalpazarlama.com/extras/Hal-Fiyatlari-Orta.aspx?Ara=$id"); $baslik = explode('<table id="mytable" summary="Hal Fiyatları" cellspacing="0">', $cek); $baslik = explode('<div style="width: 100%; clear: both;">', $baslik[1]); $title = str_replace("<p>","","$baslik[0]"); $title = str_replace("</p>","<br />","$title"); ?> <table id="mytable" summary="Hal Fiyatları" cellspacing="0"> <?php echo ($title); ?> </body> </html>
Output for 5.3.18 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4, 7.0.20, 7.1.5 - 7.2.0
<style>th { font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; color: #6D929B; border-right: 1px solid #C1DAD7; border-bottom: 1px solid #C1DAD7; border-top: 1px solid #C1DAD7; letter-spacing: 2px; text-transform: uppercase; text-align: left; padding: 6px 6px 6px 12px; background: #CAE8EA url(images/bg_header.jpg) no-repeat; } th.nobg { border-top: 0; border-left: 0; border-right: 1px solid #C1DAD7; background: none; } </style> </head> <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"> Notice: Undefined index: id in /in/cliFo on line 25 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/cliFo on line 26 Warning: file_get_contents(http://www.tarimsalpazarlama.com/extras/Hal-Fiyatlari-Orta.aspx?Ara=): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/cliFo on line 26 Notice: Undefined offset: 1 in /in/cliFo on line 28 <table id="mytable" summary="Hal Fiyatları" cellspacing="0"> </body> </html>
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
<style>th { font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; color: #6D929B; border-right: 1px solid #C1DAD7; border-bottom: 1px solid #C1DAD7; border-top: 1px solid #C1DAD7; letter-spacing: 2px; text-transform: uppercase; text-align: left; padding: 6px 6px 6px 12px; background: #CAE8EA url(images/bg_header.jpg) no-repeat; } th.nobg { border-top: 0; border-left: 0; border-right: 1px solid #C1DAD7; background: none; } </style> </head> <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"> Notice: Undefined index: id in /in/cliFo on line 25 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/cliFo on line 26 Warning: file_get_contents(http://www.tarimsalpazarlama.com/extras/Hal-Fiyatlari-Orta.aspx?Ara=): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/cliFo on line 26 Notice: Undefined offset: 1 in /in/cliFo on line 28 <table id="mytable" summary="Hal Fiyatları" cellspacing="0"> </body> </html>