3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = empty($_GET['t2']) ? $_GET['t2'] : 'test'; $t = empty($_GET['t2']) ? 'test' : $_GET['t2']; echo '<pre>'.print_r($t, true).'</pre>';
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: t2 in /in/nVBb0 on line 3 <pre>test</pre>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: t2 in /in/nVBb0 on line 3 <pre>test</pre>