3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test[lol] = 'wat'; echo $test[lol];
Output for 7.2.0 - 7.3.0beta1
Warning: Use of undefined constant lol - assumed 'lol' (this will throw an Error in a future version of PHP) in /in/g4A2X on line 3 Warning: Use of undefined constant lol - assumed 'lol' (this will throw an Error in a future version of PHP) in /in/g4A2X on line 5 wat
Output for 5.6.0 - 7.1.20
Notice: Use of undefined constant lol - assumed 'lol' in /in/g4A2X on line 3 Notice: Use of undefined constant lol - assumed 'lol' in /in/g4A2X on line 5 wat