3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('TEST', array(1,2,3)); print_r(TEST);
Output for 7.0.0 - 7.1.0
Array ( [0] => 1 [1] => 2 [2] => 3 )
Output for 4.3.0, 5.3.28 - 5.3.29, 5.4.18 - 5.6.28, hhvm-3.12.0
Warning: Constants may only evaluate to scalar values in /in/GXAn0 on line 2 Notice: Use of undefined constant TEST - assumed 'TEST' in /in/GXAn0 on line 4 TEST
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.1 - 5.3.27, 5.4.0 - 5.4.17
Warning: Constants may only evaluate to scalar values in /in/KiQ0D on line 2 Notice: Use of undefined constant TEST - assumed 'TEST' in /in/KiQ0D on line 4 TEST