3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html .= "<table>"; $html .= "<tr>"; $html .= "<th>INTERRUPÇÕES</th>"; $html .= "<th>Início</th>"; $html .= "<th>Término</th>"; $html .= "</tr>"; $teste = $_POST['interrupcao']; for ($i=0; $i < count($teste); $i++) { $html .= "<td>{$_POST['interrupcao'][$i]}</td>"; $html .= "<td>{$_POST['inicioint'][$i]}</td>"; $html .= "<td>{$_POST['terminoint'][$i]}</td>"; } $html .= "<tr>"; $html .= "</tr>"; $html .= "</table>";
Output for 8.0.10 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Warning: Undefined variable $html in /in/84KM9 on line 3 Warning: Undefined array key "interrupcao" in /in/84KM9 on line 9 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/84KM9:10 Stack trace: #0 {main} thrown in /in/84KM9 on line 10
Process exited with code 255.
Output for 8.0.0 - 8.0.9
Warning: Undefined variable $html in /in/84KM9 on line 3 Warning: Undefined array key "interrupcao" in /in/84KM9 on line 9 Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in /in/84KM9:10 Stack trace: #0 {main} thrown in /in/84KM9 on line 10
Process exited with code 255.
Output for 7.2.6 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: html in /in/84KM9 on line 3 Notice: Undefined index: interrupcao in /in/84KM9 on line 9 Warning: count(): Parameter must be an array or an object that implements Countable in /in/84KM9 on line 10
Output for 7.3.32 - 7.3.33
Warning: count(): Parameter must be an array or an object that implements Countable in /in/84KM9 on line 10
Output for 7.0.0 - 7.0.25, 7.1.0 - 7.1.20
Notice: Undefined variable: html in /in/84KM9 on line 3 Notice: Undefined index: interrupcao in /in/84KM9 on line 9

preferences:
66.73 ms | 412 KiB | 5 Q