Aer Interpreter Source
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
406 B

3 years ago
3 years ago
  1. class Program {
  2. public void main() {
  3. mixed $foo;
  4. $foo = '0';
  5. var_dump($foo);
  6. $foo += 2;
  7. var_dump($foo);
  8. $foo = 1;
  9. var_dump($foo);
  10. $foo += 1.3;
  11. var_dump($foo);
  12. $foo = 5 + "10 Little Piggies";
  13. var_dump($foo);
  14. $foo = 5 + 10;
  15. var_dump($foo);
  16. $foo = 'car';
  17. $foo[0] = 'b';
  18. var_dump($foo);
  19. $foo = 10;
  20. $foo = (bool) $foo;
  21. var_dump($foo);
  22. $foo = '';
  23. var_dump($foo);
  24. }
  25. }