3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('trace' => 1, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_MEMORY, 'soap_version' => SOAP_1_2); $urlTimbrado = 'http://opravyt.com/g12_0/opravycfdi.asmx?WSDL'; $varUsuario = 'prueba'; $varContrasena = 'prueba'; $varDocumentoFactura = 'Id:1;TipoDescuento:Porcentaje;PrecioPreferente:Precio1;Version:3.2;Serie:FA;Folio:16;Fecha:2016-01-06T11:05:27;FormaDePago:PAGO EN UNA SOLA EXHIBICION;CondicionesDePago:CONTADO;Subtotal:693.99;Descuento:0;TipoCambio:1;Moneda:MXN;Total:805.03;TipoDeComprobante:ingreso;RfcEmisor:AAA010101AAA;RazonSocialEmisor:Empresa de Prueba;CalleEmisor:Benito Juarez;MunicipioEmisor:TEPATITLAN;EstadoEmisor:JALISCO;PaisEmisor:MEXICO;CodigoPostalEmisor:47600;RfcReceptor:XAXX010101000;RazonSocialReceptor:Prueba;TotalImpuestosRetenidos:0;TotalImpuestosTrasladados:111.04;LugarExpedicion:TEPATITLAN, DE MORELO;RegimenFiscal:Regimen de Incorporacion Fiscal;NombreEmpresaReceptor:Prueba;EstadoDocumento:Prueba;PaisReceptor:MEXICO;PaisExpedidoEn:MEXICO;MetodoDePago:No identificado;Certificado:'; $varDesgloseFactura = 'Id:1;IdArticulo:0;IdDocumento:1;Cantidad:10;UnidadMedida:PIEZA;Descripcion:PAQ DE HOJA DE HOJA DE 500;ValorUnitario:44.83;ParteCantidad:0;ParteValorUnitario:0;Descuento:0;Ieps:0;Iva:16;Retencion:0;Isr:0;SubImporte:448.3;Descuentos:0;Importe:448.3;IepsTotal:0;IvaTotal:71.73;RetencionTotal:0;IsrTotal:0;Total:520.03;PrecioPublico:0'; try { $timbrado = new SoapClient($urlTimbrado, $options); $timbrarDatos = array('Usuario' => $varUsuario, 'Contrasena' => $varContrasena, 'DocumentoFactura' => $varDocumentoFactura, 'DesgloseFactura' => $varDesgloseFactura); $result = $timbrado->generacfdiv2($timbrarDatos)->generacfdiv2Result; header("Cache-control: private"); header("Content-Type: application/x-zip-compressed"); header("Content-Disposition: filename=cfdi.zip"); echo ($result); } catch(SoapFault $e) { echo $e->faultstring; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "WSDL_CACHE_MEMORY" in /in/lGqka:5 Stack trace: #0 {main} thrown in /in/lGqka on line 5
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:
56.29 ms | 401 KiB | 8 Q