3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function fn(&$val, $qty, $year) { $res = $val; if ($val > 70) $res -= 2; if ($qty > 120) $res -= 1; if ($year > 2007) $res -= 4; return $res; } $a = 72; fn($a,10,10); var_dump($a);
Output for 4.3.0 - 7.1.0
int(72)