3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(aaa => 'odin', bbb => 'dva', vvv => 'tri'); echo $a[0]; // индекс '0' выводит "odin";
based on JheEf
Output for 7.2.0 - 7.3.0alpha1
Warning: Use of undefined constant aaa - assumed 'aaa' (this will throw an Error in a future version of PHP) in /in/4TlpC on line 2 Warning: Use of undefined constant bbb - assumed 'bbb' (this will throw an Error in a future version of PHP) in /in/4TlpC on line 2 Warning: Use of undefined constant vvv - assumed 'vvv' (this will throw an Error in a future version of PHP) in /in/4TlpC on line 2 Notice: Undefined offset: 0 in /in/4TlpC on line 3
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Notice: Use of undefined constant aaa - assumed 'aaa' in /in/4TlpC on line 2 Notice: Use of undefined constant bbb - assumed 'bbb' in /in/4TlpC on line 2 Notice: Use of undefined constant vvv - assumed 'vvv' in /in/4TlpC on line 2 Notice: Undefined offset: 0 in /in/4TlpC on line 3
Output for hhvm-3.15.4
Notice: Use of undefined constant aaa - assumed 'aaa' in /in/4TlpC on line 2 Notice: Use of undefined constant bbb - assumed 'bbb' in /in/4TlpC on line 2 Notice: Use of undefined constant vvv - assumed 'vvv' in /in/4TlpC on line 2 Notice: Undefined index: 0 in /in/4TlpC on line 3