yuh - 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 yuh.php

  1. <?php
  2.  
  3. $bin2hex = bin2hex("SE");
  4.  
  5. echo "<p>bin2hex: $bin2hex</p>";
  6.  
  7. $hexdec = hexdec($bin2hex);
  8.  
  9. echo "<p>hexdec: $hexdec</p>";
  10.  
  11. $dechex = dechex($hexdec);
  12.  
  13. echo "<p>dechex: $dechex</p>";
  14.  
  15. $hex2bin = hex2bin($dechex);
  16.  
  17. echo "<p>$hex2bin</p>";
  18.  
  19.  
File Description
  • yuh
  • PHP Code
  • 15 Aug-2019
  • 244 Bytes
You can Share it: