3v4l.org

run code in 300+ PHP versions simultaneously
<?php $linkphp = 'http://conex2013.serveblog.net/iphone5s.php'; $rotina =$_POST["rotina"]; $idcliente =$_POST["idcliente"]; $casa =$_POST["casa"]; $valor =$_POST["valor"]; $data =$_POST["data"]; $outro =$_POST["outro"]; $id =$_POST["id"]; $bolausado =$_POST["bolausado"]; $compr =$_POST["compr"]; $dadospost = array( 'rotina' => $rotina, 'idcliente' => $idcliente, 'casa' => $casa, 'valor' => $valor, 'data' => $data, 'outro' => $outro, 'id' => $id, 'bolausado' => $bolausado, 'compr' => $compr); echo 'passsou 01 '; $respuesta = Envia_Post($linkphp, $dadospost); echo $respuesta; function Envia_Post($URL, $dados, $optional_headers = null) { $erro = false; $params = array('http' => array('method' => 'POST','action' => $URL,'content' => cr_post( $dados ),)); echo 'passsou 02 '; if ($optional_headers !== null) { $params['http']['header'] = $optional_headers; echo 'passsou 03 '; } $ctx = stream_context_create($params); echo 'passsou 04 '; $fp = @fopen($URL, 'rb', false, $ctx); echo 'passsou 05 '; if (!$fp) { $erro = true; echo 'passsou 06 '; } echo 'passsou 06-1 '; //$response = @stream_get_contents($fp); echo 'passsou 07'; $response = @fgets($fp,4096); echo 'passsou 07 '; if ($response == false) { $erro = true; echo 'passsou 08 '; } if ($erro) { //return ''; return $response; echo 'passsou 09 '; } else { echo 'passsou 10'; if (strpos($response, '.php')) //Evitar Mostrar Caminho php Principal { //return ''; return $response; echo 'passsou 11 '; } else { return $response; echo 'passsou 12 '; } } } function cr_post($a,$b='',$c=0) { if (!is_array($a)) return false; foreach ((array)$a as $k=>$v) { if ($c) { if( is_numeric($k) ) $k=$b."[]"; else $k=$b."[$k]"; } else { if (is_int($k)) $k=$b.$k; } if (is_array($v)||is_object($v)) { $r[]=cr_post($v,$k,1); continue; } $r[]=urlencode($k)."=".urlencode($v); } return implode("&",$r); } ?>
Output for git.master, git.master_jit
Warning: Undefined array key "rotina" in /in/QCg9t on line 6 Warning: Undefined array key "idcliente" in /in/QCg9t on line 7 Warning: Undefined array key "casa" in /in/QCg9t on line 8 Warning: Undefined array key "valor" in /in/QCg9t on line 9 Warning: Undefined array key "data" in /in/QCg9t on line 10 Warning: Undefined array key "outro" in /in/QCg9t on line 11 Warning: Undefined array key "id" in /in/QCg9t on line 12 Warning: Undefined array key "bolausado" in /in/QCg9t on line 13 Warning: Undefined array key "compr" in /in/QCg9t on line 14 passsou 01 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 passsou 02 passsou 04 passsou 05 passsou 06 passsou 06-1 Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in /in/QCg9t:47 Stack trace: #0 /in/QCg9t(47): fgets(false, 4096) #1 /in/QCg9t(29): Envia_Post('http://conex201...', Array) #2 {main} thrown in /in/QCg9t on line 47
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined array key "rotina" in /in/QCg9t on line 6 Warning: Undefined array key "idcliente" in /in/QCg9t on line 7 Warning: Undefined array key "casa" in /in/QCg9t on line 8 Warning: Undefined array key "valor" in /in/QCg9t on line 9 Warning: Undefined array key "data" in /in/QCg9t on line 10 Warning: Undefined array key "outro" in /in/QCg9t on line 11 Warning: Undefined array key "id" in /in/QCg9t on line 12 Warning: Undefined array key "bolausado" in /in/QCg9t on line 13 Warning: Undefined array key "compr" in /in/QCg9t on line 14 passsou 01 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/QCg9t on line 93 passsou 02 passsou 04 passsou 05 passsou 06 passsou 06-1 Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, false given in /in/QCg9t:47 Stack trace: #0 /in/QCg9t(47): fgets(false, 4096) #1 /in/QCg9t(29): Envia_Post('http://conex201...', Array) #2 {main} thrown in /in/QCg9t on line 47
Process exited with code 255.

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:
50.18 ms | 403 KiB | 8 Q