3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $b = $a + $a++; var_dump($b); $a = 1; $b = $a + $a + $a++; var_dump($b); ?>
Output for 5.1.0 - 7.1.7
int(3) int(3)
Output for 4.3.0 - 5.0.5
int(2) int(3)