3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 10; $a = -$a++; $b = 10; $b = ++$b; $c = 10; $c = -$c++; var_dump($a, $b, $c);
based on sIPtm
Output for 4.3.0 - 7.1.0
int(-10) int(11) int(-10)