3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php global $_ACCESS_CODE_; define ('_ACCESS_CODE_', 'bb'); $_ACCESS_CODE_ = 'cc'; echoCode(); function echoCode() { define ('_ACCESS_CODE_', 'aa'); echo _ACCESS_CODE_; echo $_ACCESS_CODE_; }
based on sulUk
Output for 5.0.4 - 7.2.0
Notice: Constant _ACCESS_CODE_ already defined in /in/e9Olj on line 9 bb Notice: Undefined variable: _ACCESS_CODE_ in /in/e9Olj on line 11
Output for 4.3.0 - 4.3.6, 4.3.9 - 4.4.9, 5.0.1 - 5.0.3
Notice: Constant _ACCESS_CODE_ already defined in /in/e9Olj on line 9 bb Notice: Undefined variable: _ACCESS_CODE_ in /in/e9Olj on line 11
Output for 4.3.7 - 4.3.8, 5.0.0
Notice: Constant already defined in /in/e9Olj on line 9 bb Notice: Undefined variable: _ACCESS_CODE_ in /in/e9Olj on line 11