elvis - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of elvis.php

  1. <?php
  2. echo "\n";
  3. echo 1 == true ? 1 : 0;
  4. echo "\n";
  5. echo 1 === true ? 1 : 0;
  6. echo "\n";
  7. $willBeDisplayed = 'show me';
  8. echo $willBeDisplayed ?: 'Empty';
  9. echo "\n";
  10. $willNotBeDisplayed = '';
  11. echo $willNotBeDisplayed ?: 'Empty'; 
File Description
  • elvis
  • PHP Code
  • 26 Apr-2019
  • 226 Bytes
You can Share it: