3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $key = 123; $key = -$key; var_dump($key);
based on PrduP
Output for 4.3.0 - 7.1.0
int(-123)