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

  1. <?php
  2. $key = '102810178';
  3. function encrypt($data) {
  4.     return bin2hex(openssl_encrypt($data, 'AES-256-CBC', $key, 0, substr(md5($key), 8, 16)));
  5. }
  6. function decrypt($data) {
  7.     return openssl_decrypt(hex2bin($data), 'AES-256-CBC', $key, 0, substr(md5($key), 8, 16));
  8. }
  9. echo encrypt('test');
File Description
  • Test
  • PHP Code
  • 25 Dec-2020
  • 291 Bytes
You can Share it: