3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Page avec Iframes</title> </head> <?php $clients = array( "client 1" => array("nom 1" => "Dulong", "ville 1" => "Paris", "age 1" => "35"), "client 2" => array("nom 2" => "Leparc", "ville 2" => "Lyon", "age 2" => "47"), "client 3" => array("nom 3" => "Dubos", "ville 3" => "Tours", "age 3" => "58") ); echo "<table border=’1’ width=\"100% \"> \n <tr> <th> Client </th> <th> Nom </th> <th> Ville </th> <th> Age </th> </tr>\n"; foreach ($clients as $cle => $tab) { echo "<tr><td><b>$cle</b></td>\n"; foreach ($tab as $key => $val) echo "<td> $key : <b>$val</b> </td>\n"; echo "</tr>\n"; } echo "</table>"; ?> <body> </body> </html>
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Page avec Iframes</title> </head> <table border=’1’ width="100% "> <tr> <th> Client </th> <th> Nom </th> <th> Ville </th> <th> Age </th> </tr> <tr><td><b>client 1</b></td> <td> nom 1 : <b>Dulong</b> </td> <td> ville 1 : <b>Paris</b> </td> <td> age 1 : <b>35</b> </td> </tr> <tr><td><b>client 2</b></td> <td> nom 2 : <b>Leparc</b> </td> <td> ville 2 : <b>Lyon</b> </td> <td> age 2 : <b>47</b> </td> </tr> <tr><td><b>client 3</b></td> <td> nom 3 : <b>Dubos</b> </td> <td> ville 3 : <b>Tours</b> </td> <td> age 3 : <b>58</b> </td> </tr> </table> <body> </body> </html>

preferences:
53.99 ms | 480 KiB | 5 Q