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 $voto ): ?> <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.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Alan Johnson · July 12, 2014 Yes, example: Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /in/qXSXD:8 Stack trace: #0 {main} thrown in /in/qXSXD on line 8
Process exited with code 255.
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
Alan Johnson · July 12, 2014 Yes, example: Warning: A non-numeric value encountered in /in/qXSXD on line 8 Warning: A non-numeric value encountered in /in/qXSXD on line 8 <table> <tr> <th>voto</th> <th>Last name</th> </tr> <tr> <td>10</td> <td>"uno"</td> </tr> <tr> <td>9.5</td> <td>"uno"</td> </tr> <tr> <td>9</td> <td>"uno"</td> </tr> <tr> <td>8.5</td> <td>"uno"</td> </tr> <tr> <td>8</td> <td>"uno"</td> </tr> <tr> <td>7.5</td> <td>"uno"</td> </tr> <tr> <td>7</td> <td>"uno"</td> </tr> <tr> <td>6.5</td> <td>"uno"</td> </tr> </table>
Output for 5.4.7 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20
Alan Johnson · July 12, 2014 Yes, example: <table> <tr> <th>voto</th> <th>Last name</th> </tr> <tr> <td>10</td> <td>"uno"</td> </tr> <tr> <td>9.5</td> <td>"uno"</td> </tr> <tr> <td>9</td> <td>"uno"</td> </tr> <tr> <td>8.5</td> <td>"uno"</td> </tr> <tr> <td>8</td> <td>"uno"</td> </tr> <tr> <td>7.5</td> <td>"uno"</td> </tr> <tr> <td>7</td> <td>"uno"</td> </tr> <tr> <td>6.5</td> <td>"uno"</td> </tr> </table>

preferences:
201.28 ms | 403 KiB | 221 Q