3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('WORDS', array('foo', 'bar', 'baz')); print_r(WORDS);
Output for 7.0.0 - 7.2.0
Array ( [0] => foo [1] => bar [2] => baz )
Output for 4.3.0 - 5.6.28
Warning: Constants may only evaluate to scalar values in /in/LYVgb on line 3 Notice: Use of undefined constant WORDS - assumed 'WORDS' in /in/LYVgb on line 5 WORDS