3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array('key' => 'bla'); echo $array[key]; echo $array['key'];
Output for 7.2.0 - 7.3.0alpha1
Warning: Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /in/YBQP0 on line 5 blabla
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant key - assumed 'key' in /in/YBQP0 on line 5 blabla