3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "1"; $y = "1"; $z = "1"; $answer = ($x + $y + $z)/3; if(isset($answer)){ if($answer > '6'){ $color = 'green'; } else { $color = 'red'; } } ?> <html> <head> </head> <body> <p class='field'> <label for='pass'>Media Bacalaureat</label> <input style="color:<?php echo $color;?>;" type="number" name="text4" value="<?php echo $answer;?>" placeholder="Rezultat" disabled="disabled"> <span id='valida' class='i i-close'></span> </p> </body> </html>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
156.53 ms | 2060 KiB | 8 Q