3v4l.org

run code in 300+ PHP versions simultaneously
<?php $term = "gg"; if ($term=="mpv" || $term=="bmw" || $term=="mg") echo strtoupper($term); else { echo "£$term"; } ?> <!-- if(1 === preg_match('~[0-9]~', $string)){ echo "£$string"; } ?> <?php if ($term=="mpv" || $term=="bmw" || $term=="mg") echo strtoupper($term); else { echo ucfirst($term); }?> -->

preferences:
35.57 ms | 402 KiB | 5 Q