3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function increment($val, $increment = 2) { for ($i = 1; $i <= $increment; $i++) { $val++; } return $val; } $var = increment('a'); var_dump($var);
based on hpPNj
Output for 5.3.20 - 7.2.0
string(1) "c"