3v4l.org

run code in 300+ PHP versions simultaneously
Alan Johnson · July 12, 2014 Yes, example: <?php $alto = array("10","9.5","9","8.5","8","7.5","7","6.5",); $basso= array("5.5","5","4.5","4","3.5","3","2.5","2","1.5","1",); $sei= "puntimax" * "sufficienza"; ?> <table> <tr> <th>voto</th> <th>Last name</th> </tr> <?php foreach($alto as $value): ?> <tr> <td><?php echo $voto ?></td> <td>"uno"</td> </tr> <?php endforeach; ?> </table>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Alan Johnson · July 12, 2014 Yes, example: Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /in/TCov4:8 Stack trace: #0 {main} thrown in /in/TCov4 on line 8
Process exited with code 255.
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Alan Johnson · July 12, 2014 Yes, example: Warning: A non-numeric value encountered in /in/TCov4 on line 8 Warning: A non-numeric value encountered in /in/TCov4 on line 8 <table> <tr> <th>voto</th> <th>Last name</th> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> </table>
Output for 7.3.32 - 7.3.33
Alan Johnson · July 12, 2014 Yes, example: Warning: A non-numeric value encountered in /in/TCov4 on line 8 Warning: A non-numeric value encountered in /in/TCov4 on line 8 <table> <tr> <th>voto</th> <th>Last name</th> </tr> <tr> <td></td> <td>"uno"</td> </tr> <tr> <td></td> <td>"uno"</td> </tr> <tr> <td></td> <td>"uno"</td> </tr> <tr> <td></td> <td>"uno"</td> </tr> <tr> <td></td> <td>"uno"</td> </tr> <tr> <td></td> <td>"uno"</td> </tr> <tr> <td></td> <td>"uno"</td> </tr> <tr> <td></td> <td>"uno"</td> </tr> </table>
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33
Alan Johnson · July 12, 2014 Yes, example: <table> <tr> <th>voto</th> <th>Last name</th> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> <tr> <td> Notice: Undefined variable: voto in /in/TCov4 on line 18 </td> <td>"uno"</td> </tr> </table>

preferences:
290.83 ms | 404 KiB | 336 Q