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 5.4.0 - 5.4.22
Parse error: syntax error, unexpected 'var_dump' (T_STRING) in /in/63hNp on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING in /in/63hNp on line 12
Process exited with code 255.