3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo['GET_PAGE_ID'] = 'hello world'; $pageID = isset($foo[GET_PAGE_ID]) ? $foo[GET_PAGE_ID] : 6; echo $pageID;
based on EgJon
Output for 7.2.0 - 7.3.1
Warning: Use of undefined constant GET_PAGE_ID - assumed 'GET_PAGE_ID' (this will throw an Error in a future version of PHP) in /in/ZsdhL on line 5 Warning: Use of undefined constant GET_PAGE_ID - assumed 'GET_PAGE_ID' (this will throw an Error in a future version of PHP) in /in/ZsdhL on line 6 hello world
Output for 5.6.0 - 5.6.38, hhvm-3.15.4, 7.0.0 - 7.1.25
Notice: Use of undefined constant GET_PAGE_ID - assumed 'GET_PAGE_ID' in /in/ZsdhL on line 5 Notice: Use of undefined constant GET_PAGE_ID - assumed 'GET_PAGE_ID' in /in/ZsdhL on line 6 hello world