3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tables = array(Gun => 6,Color => 2,Holster => 2,Canter => 1,Hand => 1);
Output for 7.2.0 - 7.3.0rc6
Warning: Use of undefined constant Gun - assumed 'Gun' (this will throw an Error in a future version of PHP) in /in/8PLuh on line 3 Warning: Use of undefined constant Color - assumed 'Color' (this will throw an Error in a future version of PHP) in /in/8PLuh on line 3 Warning: Use of undefined constant Holster - assumed 'Holster' (this will throw an Error in a future version of PHP) in /in/8PLuh on line 3 Warning: Use of undefined constant Canter - assumed 'Canter' (this will throw an Error in a future version of PHP) in /in/8PLuh on line 3 Warning: Use of undefined constant Hand - assumed 'Hand' (this will throw an Error in a future version of PHP) in /in/8PLuh on line 3
Output for 4.3.0 - 5.6.38, hhvm-3.10.1 - 3.21.3, 7.0.0 - 7.1.23
Notice: Use of undefined constant Gun - assumed 'Gun' in /in/8PLuh on line 3 Notice: Use of undefined constant Color - assumed 'Color' in /in/8PLuh on line 3 Notice: Use of undefined constant Holster - assumed 'Holster' in /in/8PLuh on line 3 Notice: Use of undefined constant Canter - assumed 'Canter' in /in/8PLuh on line 3 Notice: Use of undefined constant Hand - assumed 'Hand' in /in/8PLuh on line 3
Output for hhvm-3.22.0
Notice: Use of undefined constant Gun - assumed 'Gun' in /in/8PLuh on line -1 Notice: Use of undefined constant Color - assumed 'Color' in /in/8PLuh on line -1 Notice: Use of undefined constant Holster - assumed 'Holster' in /in/8PLuh on line -1 Notice: Use of undefined constant Canter - assumed 'Canter' in /in/8PLuh on line -1 Notice: Use of undefined constant Hand - assumed 'Hand' in /in/8PLuh on line -1