3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo header('Content-Type: text/plain'); echo var_export(json_decode('{"cobrancas":[{"uuid":"ac3378e6-933a-4883-a000-0619546595c9","serie":"A","subSerie":"A","referencia":2,"uuidCliente":"f8577fce-e8d2-4400-8e30-3149d4048a14","codigo":"2","mesReferencia":8,"anoReferencia":2015,"dataEmissao":1440990000000,"dataVencimento":1440990000000,"dataPagamento":1440990000000,"dataBaixa":1440990000000,"dataEnvio":1440990000000,"dataEnvioAtraso":null,"dataVencimentoOriginal":1440990000000,"dataCancelamento":null,"valorTotalOriginal":39.90,"valorImposto":null,"valorTotal":39.90,"valorTarifa":null,"valorJurosMora":null,"valorMulta":null,"valorDesconto":0.00,"valorIOF":null,"valorPago":39.90,"tipoCREstado":"BAIXADO","meioPagamento":{"uuid":"3809191a-ffc3-11e4-9964-f23c9169768a","tipoMeioPagamento":"CARTAO_CREDITO","nome":null,"banco":null,"ativo":true},"nfses":[],"nds":[],"contratos":[{"uuid":"bb1158ce-bda6-45d2-aa94-785b641e7d5a"}],"boletos":[],"cartoes":[{"uuid":"847d0807-71f3-4a3b-9561-a5727c836962","codigoAutorizacao":"476167","dataTransacao":1440990000000,"numero":"531559****5669","referenciaPedido":"86c9ebdf","situacaoPedido":"PAGO","tipoBandeira":"MASTERCARD","titular":"Gandalf","valor":39.90}],"debitos":[]}]}', true));
based on 6KHVS
Output for 7.1.0 - 7.2.0
array ( 'cobrancas' => array ( 0 => array ( 'uuid' => 'ac3378e6-933a-4883-a000-0619546595c9', 'serie' => 'A', 'subSerie' => 'A', 'referencia' => 2, 'uuidCliente' => 'f8577fce-e8d2-4400-8e30-3149d4048a14', 'codigo' => '2', 'mesReferencia' => 8, 'anoReferencia' => 2015, 'dataEmissao' => 1440990000000, 'dataVencimento' => 1440990000000, 'dataPagamento' => 1440990000000, 'dataBaixa' => 1440990000000, 'dataEnvio' => 1440990000000, 'dataEnvioAtraso' => NULL, 'dataVencimentoOriginal' => 1440990000000, 'dataCancelamento' => NULL, 'valorTotalOriginal' => 39.9, 'valorImposto' => NULL, 'valorTotal' => 39.9, 'valorTarifa' => NULL, 'valorJurosMora' => NULL, 'valorMulta' => NULL, 'valorDesconto' => 0.0, 'valorIOF' => NULL, 'valorPago' => 39.9, 'tipoCREstado' => 'BAIXADO', 'meioPagamento' => array ( 'uuid' => '3809191a-ffc3-11e4-9964-f23c9169768a', 'tipoMeioPagamento' => 'CARTAO_CREDITO', 'nome' => NULL, 'banco' => NULL, 'ativo' => true, ), 'nfses' => array ( ), 'nds' => array ( ), 'contratos' => array ( 0 => array ( 'uuid' => 'bb1158ce-bda6-45d2-aa94-785b641e7d5a', ), ), 'boletos' => array ( ), 'cartoes' => array ( 0 => array ( 'uuid' => '847d0807-71f3-4a3b-9561-a5727c836962', 'codigoAutorizacao' => '476167', 'dataTransacao' => 1440990000000, 'numero' => '531559****5669', 'referenciaPedido' => '86c9ebdf', 'situacaoPedido' => 'PAGO', 'tipoBandeira' => 'MASTERCARD', 'titular' => 'Gandalf', 'valor' => 39.9, ), ), 'debitos' => array ( ), ), ), )
Output for 7.0.20
array ( 'cobrancas' => array ( 0 => array ( 'uuid' => 'ac3378e6-933a-4883-a000-0619546595c9', 'serie' => 'A', 'subSerie' => 'A', 'referencia' => 2, 'uuidCliente' => 'f8577fce-e8d2-4400-8e30-3149d4048a14', 'codigo' => '2', 'mesReferencia' => 8, 'anoReferencia' => 2015, 'dataEmissao' => 1440990000000, 'dataVencimento' => 1440990000000, 'dataPagamento' => 1440990000000, 'dataBaixa' => 1440990000000, 'dataEnvio' => 1440990000000, 'dataEnvioAtraso' => NULL, 'dataVencimentoOriginal' => 1440990000000, 'dataCancelamento' => NULL, 'valorTotalOriginal' => 39.899999999999999, 'valorImposto' => NULL, 'valorTotal' => 39.899999999999999, 'valorTarifa' => NULL, 'valorJurosMora' => NULL, 'valorMulta' => NULL, 'valorDesconto' => 0.0, 'valorIOF' => NULL, 'valorPago' => 39.899999999999999, 'tipoCREstado' => 'BAIXADO', 'meioPagamento' => array ( 'uuid' => '3809191a-ffc3-11e4-9964-f23c9169768a', 'tipoMeioPagamento' => 'CARTAO_CREDITO', 'nome' => NULL, 'banco' => NULL, 'ativo' => true, ), 'nfses' => array ( ), 'nds' => array ( ), 'contratos' => array ( 0 => array ( 'uuid' => 'bb1158ce-bda6-45d2-aa94-785b641e7d5a', ), ), 'boletos' => array ( ), 'cartoes' => array ( 0 => array ( 'uuid' => '847d0807-71f3-4a3b-9561-a5727c836962', 'codigoAutorizacao' => '476167', 'dataTransacao' => 1440990000000, 'numero' => '531559****5669', 'referenciaPedido' => '86c9ebdf', 'situacaoPedido' => 'PAGO', 'tipoBandeira' => 'MASTERCARD', 'titular' => 'Gandalf', 'valor' => 39.899999999999999, ), ), 'debitos' => array ( ), ), ), )
Output for 7.0.2 - 7.0.6
array ( 'cobrancas' => array ( 0 => array ( 'uuid' => 'ac3378e6-933a-4883-a000-0619546595c9', 'serie' => 'A', 'subSerie' => 'A', 'referencia' => 2, 'uuidCliente' => 'f8577fce-e8d2-4400-8e30-3149d4048a14', 'codigo' => '2', 'mesReferencia' => 8, 'anoReferencia' => 2015, 'dataEmissao' => 1440990000000, 'dataVencimento' => 1440990000000, 'dataPagamento' => 1440990000000, 'dataBaixa' => 1440990000000, 'dataEnvio' => 1440990000000, 'dataEnvioAtraso' => NULL, 'dataVencimentoOriginal' => 1440990000000, 'dataCancelamento' => NULL, 'valorTotalOriginal' => 39.8999999999999985789145, 'valorImposto' => NULL, 'valorTotal' => 39.8999999999999985789145, 'valorTarifa' => NULL, 'valorJurosMora' => NULL, 'valorMulta' => NULL, 'valorDesconto' => 0.0, 'valorIOF' => NULL, 'valorPago' => 39.8999999999999985789145, 'tipoCREstado' => 'BAIXADO', 'meioPagamento' => array ( 'uuid' => '3809191a-ffc3-11e4-9964-f23c9169768a', 'tipoMeioPagamento' => 'CARTAO_CREDITO', 'nome' => NULL, 'banco' => NULL, 'ativo' => true, ), 'nfses' => array ( ), 'nds' => array ( ), 'contratos' => array ( 0 => array ( 'uuid' => 'bb1158ce-bda6-45d2-aa94-785b641e7d5a', ), ), 'boletos' => array ( ), 'cartoes' => array ( 0 => array ( 'uuid' => '847d0807-71f3-4a3b-9561-a5727c836962', 'codigoAutorizacao' => '476167', 'dataTransacao' => 1440990000000, 'numero' => '531559****5669', 'referenciaPedido' => '86c9ebdf', 'situacaoPedido' => 'PAGO', 'tipoBandeira' => 'MASTERCARD', 'titular' => 'Gandalf', 'valor' => 39.8999999999999985789145, ), ), 'debitos' => array ( ), ), ), )
Output for 5.4.22 - 5.6.21, 7.0.0 - 7.0.1
array ( 'cobrancas' => array ( 0 => array ( 'uuid' => 'ac3378e6-933a-4883-a000-0619546595c9', 'serie' => 'A', 'subSerie' => 'A', 'referencia' => 2, 'uuidCliente' => 'f8577fce-e8d2-4400-8e30-3149d4048a14', 'codigo' => '2', 'mesReferencia' => 8, 'anoReferencia' => 2015, 'dataEmissao' => 1440990000000, 'dataVencimento' => 1440990000000, 'dataPagamento' => 1440990000000, 'dataBaixa' => 1440990000000, 'dataEnvio' => 1440990000000, 'dataEnvioAtraso' => NULL, 'dataVencimentoOriginal' => 1440990000000, 'dataCancelamento' => NULL, 'valorTotalOriginal' => 39.8999999999999985789145, 'valorImposto' => NULL, 'valorTotal' => 39.8999999999999985789145, 'valorTarifa' => NULL, 'valorJurosMora' => NULL, 'valorMulta' => NULL, 'valorDesconto' => 0, 'valorIOF' => NULL, 'valorPago' => 39.8999999999999985789145, 'tipoCREstado' => 'BAIXADO', 'meioPagamento' => array ( 'uuid' => '3809191a-ffc3-11e4-9964-f23c9169768a', 'tipoMeioPagamento' => 'CARTAO_CREDITO', 'nome' => NULL, 'banco' => NULL, 'ativo' => true, ), 'nfses' => array ( ), 'nds' => array ( ), 'contratos' => array ( 0 => array ( 'uuid' => 'bb1158ce-bda6-45d2-aa94-785b641e7d5a', ), ), 'boletos' => array ( ), 'cartoes' => array ( 0 => array ( 'uuid' => '847d0807-71f3-4a3b-9561-a5727c836962', 'codigoAutorizacao' => '476167', 'dataTransacao' => 1440990000000, 'numero' => '531559****5669', 'referenciaPedido' => '86c9ebdf', 'situacaoPedido' => 'PAGO', 'tipoBandeira' => 'MASTERCARD', 'titular' => 'Gandalf', 'valor' => 39.8999999999999985789145, ), ), 'debitos' => array ( ), ), ), )
Output for 5.6.28
array ( 'cobrancas' => array ( 0 => array ( 'uuid' => 'ac3378e6-933a-4883-a000-0619546595c9', 'serie' => 'A', 'subSerie' => 'A', 'referencia' => 2, 'uuidCliente' => 'f8577fce-e8d2-4400-8e30-3149d4048a14', 'codigo' => '2', 'mesReferencia' => 8, 'anoReferencia' => 2015, 'dataEmissao' => 1440990000000, 'dataVencimento' => 1440990000000, 'dataPagamento' => 1440990000000, 'dataBaixa' => 1440990000000, 'dataEnvio' => 1440990000000, 'dataEnvioAtraso' => NULL, 'dataVencimentoOriginal' => 1440990000000, 'dataCancelamento' => NULL, 'valorTotalOriginal' => 39.899999999999999, 'valorImposto' => NULL, 'valorTotal' => 39.899999999999999, 'valorTarifa' => NULL, 'valorJurosMora' => NULL, 'valorMulta' => NULL, 'valorDesconto' => 0, 'valorIOF' => NULL, 'valorPago' => 39.899999999999999, 'tipoCREstado' => 'BAIXADO', 'meioPagamento' => array ( 'uuid' => '3809191a-ffc3-11e4-9964-f23c9169768a', 'tipoMeioPagamento' => 'CARTAO_CREDITO', 'nome' => NULL, 'banco' => NULL, 'ativo' => true, ), 'nfses' => array ( ), 'nds' => array ( ), 'contratos' => array ( 0 => array ( 'uuid' => 'bb1158ce-bda6-45d2-aa94-785b641e7d5a', ), ), 'boletos' => array ( ), 'cartoes' => array ( 0 => array ( 'uuid' => '847d0807-71f3-4a3b-9561-a5727c836962', 'codigoAutorizacao' => '476167', 'dataTransacao' => 1440990000000, 'numero' => '531559****5669', 'referenciaPedido' => '86c9ebdf', 'situacaoPedido' => 'PAGO', 'tipoBandeira' => 'MASTERCARD', 'titular' => 'Gandalf', 'valor' => 39.899999999999999, ), ), 'debitos' => array ( ), ), ), )
Output for 5.2.0 - 5.4.21
array ( 'cobrancas' => array ( 0 => array ( 'uuid' => 'ac3378e6-933a-4883-a000-0619546595c9', 'serie' => 'A', 'subSerie' => 'A', 'referencia' => 2, 'uuidCliente' => 'f8577fce-e8d2-4400-8e30-3149d4048a14', 'codigo' => '2', 'mesReferencia' => 8, 'anoReferencia' => 2015, 'dataEmissao' => 1440990000000, 'dataVencimento' => 1440990000000, 'dataPagamento' => 1440990000000, 'dataBaixa' => 1440990000000, 'dataEnvio' => 1440990000000, 'dataEnvioAtraso' => NULL, 'dataVencimentoOriginal' => 1440990000000, 'dataCancelamento' => NULL, 'valorTotalOriginal' => 39.9, 'valorImposto' => NULL, 'valorTotal' => 39.9, 'valorTarifa' => NULL, 'valorJurosMora' => NULL, 'valorMulta' => NULL, 'valorDesconto' => 0, 'valorIOF' => NULL, 'valorPago' => 39.9, 'tipoCREstado' => 'BAIXADO', 'meioPagamento' => array ( 'uuid' => '3809191a-ffc3-11e4-9964-f23c9169768a', 'tipoMeioPagamento' => 'CARTAO_CREDITO', 'nome' => NULL, 'banco' => NULL, 'ativo' => true, ), 'nfses' => array ( ), 'nds' => array ( ), 'contratos' => array ( 0 => array ( 'uuid' => 'bb1158ce-bda6-45d2-aa94-785b641e7d5a', ), ), 'boletos' => array ( ), 'cartoes' => array ( 0 => array ( 'uuid' => '847d0807-71f3-4a3b-9561-a5727c836962', 'codigoAutorizacao' => '476167', 'dataTransacao' => 1440990000000, 'numero' => '531559****5669', 'referenciaPedido' => '86c9ebdf', 'situacaoPedido' => 'PAGO', 'tipoBandeira' => 'MASTERCARD', 'titular' => 'Gandalf', 'valor' => 39.9, ), ), 'debitos' => array ( ), ), ), )
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/2s3B7 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/2s3B7 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/2s3B7 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/2s3B7 on line 3