3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo header('Content-Type: text/html'); echo "<pre>"; 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));
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
<pre>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 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 <pre>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
<pre>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
<pre>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.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.21, 7.0.0 - 7.0.1
<pre>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
<pre>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.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.21
<pre>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.0.5, 5.1.0 - 5.1.6
<pre> Fatal error: Call to undefined function json_decode() in /in/ab8D3 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<pre> Fatal error: Call to undefined function: json_decode() in /in/ab8D3 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
<pre> Fatal error: Call to undefined function: json_decode() in /in/ab8D3 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<pre> Fatal error: Call to undefined function: json_decode() in /in/ab8D3 on line 3

preferences:
280.33 ms | 401 KiB | 311 Q