3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '-1.22'; $a = -$a; var_dump($a);
Output for 5.6.38 - 7.2.11
float(1.22)