3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $params = array('search'=>'5'); $nonexistentElement = $params['search']['filter']; echo nonexistentElement;
Output for 5.4.0 - 7.1.0
Warning: Illegal string offset 'filter' in /in/JcnL0 on line 4 Notice: Use of undefined constant nonexistentElement - assumed 'nonexistentElement' in /in/JcnL0 on line 6 nonexistentElement
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant nonexistentElement - assumed 'nonexistentElement' in /in/JcnL0 on line 6 nonexistentElement