3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function perkalian($x,$y) { $total = $x * $y; return $total; } $var1 = 3; $var2 = 4; $nilai_return = perkalian($var1,$var2); echo “Nilai return adalah : ” . $nilai_return; ?>
Output for 5.4.0 - 5.5.1
Parse error: syntax error, unexpected 'return' (T_RETURN), expecting ',' or ';' in /in/FAUMQ on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_RETURN, expecting ',' or ';' in /in/FAUMQ on line 14
Process exited with code 255.