3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $c = ($a + $a++); var_dump($c); // int(3) $a = 1; $c = ($a + $a) + $a++; var_dump($c); // int(3)
Output for 5.1.1 - 7.2.0
int(3) int(3)
Output for 5.1.0
<br /> <b>Fatal error</b>: fatal flex scanner internal error--end of buffer missed in <b>/in/UbTps</b> on line <b>9</b><br />
Process exited with code 255.
Output for 4.3.0 - 5.0.5
int(2) int(3)