3v4l.org

run code in 300+ PHP versions simultaneously
<?php $adep = $_GET['adep']; $ades = $_GET['ades']; $postdata = http_build_query( array( 'adep' => $adep, 'ades' => $ades ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://www.cgna.gov.br/sistemas/harpia/rotas.php', false, $context); preg_match_all("'<tr><td>".$adep." </td><td>".$ades." </td>(.*?)<\/tr>'si", $result, $match1); preg_match_all("'<tr><td class=\'alt\'>".$adep." </td><td class=\'alt\'>".$ades." </td>(.*?)<\/tr>'si", $result, $match2); foreach($match1[1] as $rota) { preg_match("'<td>(.*?)<\/td>'si", $rota, $match_rota1); echo $match_rota1[1]; } foreach($match2[1] as $rota) { preg_match("'<td class=\'alt\'>(.*?)<\/td>'si", $rota, $match_rota2); echo $match_rota2[1]; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "adep" in /in/6BFBG on line 2 Warning: Undefined array key "ades" in /in/6BFBG on line 3 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.cgna.gov.br failed: System error in /in/6BFBG on line 23 Warning: file_get_contents(http://www.cgna.gov.br/sistemas/harpia/rotas.php): Failed to open stream: php_network_getaddresses: getaddrinfo for www.cgna.gov.br failed: System error in /in/6BFBG on line 23

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.28 ms | 402 KiB | 8 Q