3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php <form id="form2" name="form2" action="acao.php?form=cotacao" method="POST"> <input type="hidden" name="id_transfer" value="<?php echo $id_transfer ?>" /> <input type="hidden" name="id_empresa" value="<?php echo $id_empresa ?>" /> <input type="hidden" name="data" value="<?php echo $data?>" /> <input type="hidden" name="status" value="Aguardando" /> </head> <body> <table class="dynamicTable tableTools table table-striped checkboxs"> <thead> <tr> <th style="width: 1%;" class="uniformjs"><input type="checkbox" /></th> <th style="width: 1%;" class="center">Cod.</th> <th style="width: 18%;" >Produtos</th> <th style="width: 18%;" >Origem</th> <th style="width: 18%;">Destino</th> <th style="width: 7%;">Servi&ccedil;o</th> <th style="width: 10%;">Ve&iacute;culo</th> <th class="text-center" style="width: 14%;">Valor | Desconto</th> <th style="width: 20%;">Comprar</th> </tr> </thead> <tbody> <? $cmd = "SELECT * FROM produtos where id_transfer = '$id_transfer' AND tipo_serv <> 'Regular' "; $produtos = mysql_query($cmd); $total = mysql_num_rows($produtos); while ($linha = mysql_fetch_array($produtos)) { $id_produtos = $linha['id_produtos']; $foto = $linha['p_logo']; $veiculo = $linha['veiculo']; $tipo_serv2 = $linha['tipo_serv']; $start = $linha['start']; $hora_start = $linha['hora_start']; $nome1 = $linha['nome']; $nome = substr($nome1, 0, 35); $origem = $linha['origem']; $destino = $linha['destino']; $foto = $linha['p_logo']; $malasg = $linha['malasg']; $malasm = $linha['malasm']; $tempo = $linha['tempo']; $status = $linha['status']; $vencimento = $linha['vencimento']; $passageiros = $linha['passageiros']; $desconto1 = $linha['p_desconto']; $valor2 = $linha['valor']; $valor3 = $linha['valor']; date_default_timezone_set('America/Sao_Paulo'); $data = date('Y-m-d'); $hora1 = date('His'); ?> <input type="hidden" name="data" value="<?echo $data?>" /> <input type="hidden" name="start" value="<?echo $start?>" /> <tr> <td class="center uniformjs"><input name="checkbox[]" type="checkbox" id="nome_form2" value="<? echo $id_produtos ?>"/></td> <td class="center"><?echo $id_produtos?><input type="hidden" name="id_produto[]" value="<?echo $id_produtos?>" /></td> <td class="important"><?echo $nome?><input type="hidden" name="nome[]" value="<?echo $nome?>" /></td> <td class="center"><?echo $origem?></span></td> <td class="center"><?echo $destino?></td> <td class="center"><?echo $tipo_serv2?><input type="hidden" name="tipo_serv[]" value="<?echo $name?>" /></td> <td class="center"><?echo $veiculo?> <input type="hidden" name="tipo_veiculo[]" value="<?echo $veiculo?>" /> </td> <td class="text-center"> <div class=" col-md-8 padding-none" > <?echo $de?> <input type="hidden" name="valor[]" value="<?echo $valor_calculado?>" /> <input type="hidden" name="desconto[]" value="<?echo $desconto?>" /> <font size="3.5"> <?echo 'R$' . number_format($valor_calculado, 2, ',', '.'); // retorna R$100.000,50?> </div> </td> <td class="center"> <a href="../../compras/transfer_compra_<?echo $link?>" ><span class="label label-success">Completa</span></a> <a href="../../compras/compra_rapida<?echo $link2?>" ><span class="label label-danger">Rapida</span></a> </td> </tr> <?}?> </tbody> </table> ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.6.140.0000.09018.27
5.6.130.0100.04718.16
5.6.120.0070.05720.95
5.6.110.0200.07321.13
5.6.100.0130.05020.97
5.6.90.0100.08020.99
5.6.80.0130.06320.39
5.5.300.0170.05017.95
5.5.290.0070.08717.94
5.5.280.0100.05020.87
5.5.270.0070.08720.86
5.5.260.0000.05720.80
5.5.250.0100.08020.58
5.5.240.0100.07020.18
5.4.450.0900.04319.55
5.4.440.0700.06019.47
5.4.430.0730.05319.60
5.4.420.0800.05719.47
5.4.410.0970.04719.35
5.4.400.0870.04019.07
5.4.390.0700.05719.23
5.4.380.0730.05019.13
5.4.370.0800.04319.01
5.4.360.0700.05319.26
5.4.350.0730.05018.84
5.4.340.0730.06019.23
5.4.320.0770.05719.26
5.4.310.0830.05319.28
5.4.300.0730.05019.28
5.4.290.0700.05019.25
5.4.280.0770.04719.24
5.4.270.0770.05018.84
5.4.260.0800.04319.28
5.4.250.0600.05719.27
5.4.240.0670.05719.16
5.4.230.0770.04719.12
5.4.220.1000.05319.30
5.4.210.0930.05718.84
5.4.200.0930.05319.07
5.4.190.1130.06019.07
5.4.180.0900.05319.05
5.4.170.0900.05718.86
5.4.160.0870.04019.27
5.4.150.0830.04319.13
5.4.140.0930.05016.34
5.4.130.0870.05316.45
5.4.120.0870.04316.55
5.4.110.0730.05716.42
5.4.100.0730.05016.28
5.4.90.0770.04316.30
5.4.80.0700.04716.26
5.4.70.0270.05716.26
5.4.60.0230.06016.43
5.4.50.0200.05316.59
5.4.40.0170.03716.51
5.4.30.0070.06716.51
5.4.20.0000.07716.55
5.4.10.0270.05316.21

preferences:
141.47 ms | 1394 KiB | 7 Q