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>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <head> </head> <body> <p class='field'> <label for='pass'>Media Bacalaureat</label> <input style="color:red;" type="number" name="text4" value="1" placeholder="Rezultat" disabled="disabled"> <span id='valida' class='i i-close'></span> </p> </body> </html>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
27.03 ms | 406 KiB | 5 Q