3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ch="s1"; $_SESSION[$ch] = array(); $_SESSION[$ch][] = $_POST['t0']; $_SESSION[$ch][] = $_POST['t1']; $_SESSION[$ch][] = $_POST['t2']; $_SESSION[$ch][] = $_POST['t3']; $_SESSION[$ch][] = $_POST['t4']; $_SESSION[$ch][] = $_POST['t5']; $_SESSION[$ch][] = $_POST['t6'];
Output for 5.3.0 - 7.1.0
Notice: Undefined index: t0 in /in/E1XBt on line 5 Notice: Undefined index: t1 in /in/E1XBt on line 6 Notice: Undefined index: t2 in /in/E1XBt on line 7 Notice: Undefined index: t3 in /in/E1XBt on line 8 Notice: Undefined index: t4 in /in/E1XBt on line 9 Notice: Undefined index: t5 in /in/E1XBt on line 10 Notice: Undefined index: t6 in /in/E1XBt on line 11
Output for 4.3.0 - 5.2.17
Notice: Undefined index: t0 in /in/E1XBt on line 5 Notice: Undefined index: t1 in /in/E1XBt on line 6 Notice: Undefined index: t2 in /in/E1XBt on line 7 Notice: Undefined index: t3 in /in/E1XBt on line 8 Notice: Undefined index: t4 in /in/E1XBt on line 9 Notice: Undefined index: t5 in /in/E1XBt on line 10 Notice: Undefined index: t6 in /in/E1XBt on line 11