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 sy$_POST["sayi1"]; if sayi1==""{ sayi1=="0" } sy1$_POST["sayi2"]; if sayi2==""{ sayi2=="0"; } $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 } ?>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.6
Parse error: syntax error, unexpected '$_POST' (T_VARIABLE) in /in/XcnUZ on line 10
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected T_VARIABLE in /in/XcnUZ:10 Stack trace: #0 {main}
Process exited with code 255.