3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php  if (!emptyempty($_SERVER['HTTPS']))   {    echo 'https is enabled';  }  else  {  echo 'http is enabled';  }  ?>  - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.iFkvH7kT.dpuf
Output for 5.3.0 - 5.4.32
<?php  if (!emptyempty($_SERVER['HTTPS']))   {    echo 'https is enabled';  }  else  {  echo 'http is enabled';  }  ?>  - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.iFkvH7kT.dpuf