3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
$variable = 'VALOR'; <option value="opcion" <?php if ($variable=='VALOR') echo 'selected' ?>>VALOR</option>
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$variable = 'VALOR'; <option value="opcion" Notice: Undefined variable: variable in /in/mJFQd on line 3 >VALOR</option>
Output for 4.3.0 - 5.0.3
$variable = 'VALOR'; <option value="opcion" Notice: Undefined variable: variable in /in/mJFQd on line 3 >VALOR</option>