3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php array( mihir => huny , huny=> mihr ); echo ("mihir");
based on hef7B
Output for 7.2.0 - 7.3.0rc3
Warning: Use of undefined constant mihir - assumed 'mihir' (this will throw an Error in a future version of PHP) in /in/X4BWY on line 4 Warning: Use of undefined constant huny - assumed 'huny' (this will throw an Error in a future version of PHP) in /in/X4BWY on line 4 Warning: Use of undefined constant huny - assumed 'huny' (this will throw an Error in a future version of PHP) in /in/X4BWY on line 5 Warning: Use of undefined constant mihr - assumed 'mihr' (this will throw an Error in a future version of PHP) in /in/X4BWY on line 5 mihir
Output for hhvm-3.15.4, 7.0.0 - 7.1.20
Notice: Use of undefined constant mihir - assumed 'mihir' in /in/X4BWY on line 4 Notice: Use of undefined constant huny - assumed 'huny' in /in/X4BWY on line 4 Notice: Use of undefined constant huny - assumed 'huny' in /in/X4BWY on line 5 Notice: Use of undefined constant mihr - assumed 'mihr' in /in/X4BWY on line 5 mihir
Output for 5.6.0 - 5.6.30
Notice: Use of undefined constant mihir - assumed 'mihir' in /in/X4BWY on line 4 Notice: Use of undefined constant huny - assumed 'huny' in /in/X4BWY on line 4 Notice: Use of undefined constant huny - assumed 'huny' in /in/X4BWY on line 5 Notice: Use of undefined constant mihr - assumed 'mihr' in /in/X4BWY on line 6 mihir