fork(1) download
  1. <?php
  2.  
  3. const FOO = 1;
  4. $a = [FOO => 'A', 'BAR' => 'B'];
  5. echo "{$a[FOO]}, {$a[BAR]}";
Success #stdin #stdout #stderr 0.01s 20568KB
stdin
Standard input is empty
stdout
A, B
stderr
PHP Notice:  Use of undefined constant BAR - assumed 'BAR' in /home/U66H9N/prog.php on line 5