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

  1. <?php
  2. class Test
  3. {
  4.     public $value;
  5. }
  6.  
  7. $a = new Test;
  8. $a->value = 1;
  9.  
  10. $b = $a;
  11. $b->value = 2;
  12.  
  13. echo $a->value;
File Description
  • test1
  • PHP Code
  • 19 Dec-2022
  • 112 Bytes
You can Share it: