3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $maxpunti=$_POST['puntimax']; // $piudisei=$_POST['sufficienza']; $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= "maxpunti" * "piudisei"; ?> // da sistemare: <table> <tr> <th>First name</th> <th>Last name</th> </tr> <?php foreach($alto as $value) { echo "$value <br>"; } ?> </table>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /in/CTZeY:6 Stack trace: #0 {main} thrown in /in/CTZeY on line 6
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
Warning: A non-numeric value encountered in /in/CTZeY on line 6 Warning: A non-numeric value encountered in /in/CTZeY on line 6 // da sistemare: <table> <tr> <th>First name</th> <th>Last name</th> </tr> 10 <br>9.5 <br>9 <br>8.5 <br>8 <br>7.5 <br>7 <br>6.5 <br></table>
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20
// da sistemare: <table> <tr> <th>First name</th> <th>Last name</th> </tr> 10 <br>9.5 <br>9 <br>8.5 <br>8 <br>7.5 <br>7 <br>6.5 <br></table>

preferences:
174.36 ms | 402 KiB | 229 Q