3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x =10; echo "Nilai x: "; echo $x; $x += 100; echo "<br> Answer for operation += : "; echo $x; $x -= 100; echo "<br> Answer for operation -= : "; echo $x; $x /= 100; echo "<br> Answer for operation /= : "; echo $x; $x *= 100; echo "<br> Answer for operation *= : "; echo $x; $x %= 100; echo "<br> Answer for operation %= : "; echo $x; ?>
based on 5WOGZ
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
Nilai x: 10<br> Answer for operation += : 110<br> Answer for operation -= : 10<br> Answer for operation /= : 0.1<br> Answer for operation *= : 10<br> Answer for operation %= : 10