3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<tr <?php echo $rowClass;?>> <td><?php echo $k['nimi']; ?></td> <td><?php echo number_format($productPrice,2) ; ?>&euro;</td> <?php $tuote_alvkerroin = $k['alv']/100+1;?> <td><?php echo number_format($productPrice/$tuote_alvkerroin,2) ; ?>&euro;</td> <td><?php echo $k['lkm']; ?></td> <td><?php echo number_format($productPriceTotal,2); ?>&euro;</td> </tr>
based on 56cYb
Output for 5.0.4 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
<tr Notice: Undefined variable: rowClass in /in/t55UU on line 1 > <td> Notice: Undefined variable: k in /in/t55UU on line 2 </td> <td> Notice: Undefined variable: productPrice in /in/t55UU on line 3 0.00&euro;</td> Notice: Undefined variable: k in /in/t55UU on line 4 <td> Notice: Undefined variable: productPrice in /in/t55UU on line 5 0.00&euro;</td> <td> Notice: Undefined variable: k in /in/t55UU on line 6 </td> <td> Notice: Undefined variable: productPriceTotal in /in/t55UU on line 7 0.00&euro;</td> </tr>
Output for hhvm-3.12.0 - 3.13.2
<tr Notice: Undefined variable: rowClass in /in/t55UU on line 1 > <td> Notice: Undefined variable: k in /in/t55UU on line 2 </td> <td> Notice: Undefined variable: productPrice in /in/t55UU on line 3 Warning: number_format() expects parameter 1 to be double, null given in /in/t55UU on line 3 &euro;</td> Notice: Undefined variable: k in /in/t55UU on line 4 <td> Notice: Undefined variable: productPrice in /in/t55UU on line 5 0.00&euro;</td> <td> Notice: Undefined variable: k in /in/t55UU on line 6 </td> <td> Notice: Undefined variable: productPriceTotal in /in/t55UU on line 7 Warning: number_format() expects parameter 1 to be double, null given in /in/t55UU on line 7 &euro;</td> </tr>
Output for 4.3.0 - 5.0.3
<tr Notice: Undefined variable: rowClass in /in/t55UU on line 1 > <td> Notice: Undefined variable: k in /in/t55UU on line 2 </td> <td> Notice: Undefined variable: productPrice in /in/t55UU on line 3 0.00&euro;</td> Notice: Undefined variable: k in /in/t55UU on line 4 <td> Notice: Undefined variable: productPrice in /in/t55UU on line 5 0.00&euro;</td> <td> Notice: Undefined variable: k in /in/t55UU on line 6 </td> <td> Notice: Undefined variable: productPriceTotal in /in/t55UU on line 7 0.00&euro;</td> </tr>