3v4l.org

run code in 200+ PHP versions simultaneously
<?php $cname = 'CASH'; var_dump($cname); switch ($cname) { case 'CASH': echo 123; break; default: echo 234; }
Output for 5.6.0 - 7.4.1
string(4) "CASH" 123