3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $symbol = AAATX; $prd = strtoupper(str_replace(substr($symbol, -1), '.' . substr($symbol, -1), $symbol)); var_dump($prd);
Output for 7.2.0
Warning: Use of undefined constant AAATX - assumed 'AAATX' (this will throw an Error in a future version of PHP) in /in/E3qGh on line 2 string(6) "AAAT.X"
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant AAATX - assumed 'AAATX' in /in/E3qGh on line 2 string(6) "AAAT.X"