fork download
  1. <?php
  2.  
  3. $variable = 0x133B6236;
  4. define(TEST, 0x133B6236);
  5.  
  6. class Bar
  7. {
  8. public function foo()
  9. {
  10. return 0x133B6236;
  11. }
  12. }
  13.  
  14.  
  15. echo "1 - ", $variable, PHP_EOL;
  16. echo "2 - ", TEST, PHP_EOL;
  17. echo "3 - ", (new Bar)->foo(), PHP_EOL;
  18. echo "4 - ", 0x133B6236;
Success #stdin #stdout #stderr 0s 82560KB
stdin
Standard input is empty
stdout
1 - 322658870
2 - 322658870
3 - 322658870
4 - 322658870
stderr
PHP Notice:  Use of undefined constant TEST - assumed 'TEST' in /home/NqbkKd/prog.php on line 4