3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = "A123"; if (isset($$code['_'])) { echo $$code['_']; } else { echo 'none'; }
based on pgXsE
Output for 4.3.0 - 5.3.29, 7.0.0 - 7.2.0
none
Output for 5.4.0 - 5.6.28
Warning: Illegal string offset '_' in /in/Ckund on line 5 none