3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Intialize the input $score=rand(50,100); //Determine the Grade $grade=($score>=90)?'A':( ($score>=80)?'B':( ($score>=70)?'C':( ($score>=60)?'D':'F'))); //Output the Results echo "<h1>A score of $score = $grade</h1>";

preferences:
29.04 ms | 402 KiB | 5 Q