3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<span style="color:green"><font size="27"><div align="center"> YAZI </div></font></span> <form action="cal.php" method="post"> Sayi 1 :<input type="text" name="sy"> sayi 2:<input type="text" name="sy1"> <input type="submit" name="hesapla" value="topla"> <input type="submit" name="hesapla1" value="çıkar"> <input type="submit" name="hesapla2" value="çarp"> <input type="submit" name="hesapla3" value="böl"> <?php $hesapla = $sy1 + $sy; echo "TOPLAM :" .$hesapla; $hesapla = $sy1 - $sy; echo "TOPLAM :" .$hesapla1; $hesapla = $sy1 * $sy; echo "TOPLAM :" .$hesapla2; $hesapla = $sy1 //$sy; echo "TOPLAM :" .$hesapla3; { echo $hesapla } ?>
based on XcnUZ
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.6
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/4cGY6 on line 19
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected T_ECHO in /in/4cGY6:19 Stack trace: #0 {main}
Process exited with code 255.