3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function perkalian($x,$y) { $total = $x * $y; echo “Hasil dari perkalian $x dengan $ y adalah ” . $total; } $var1 = 2; $var2 = 4; printNilai($var1,$var2); ?>
Output for 5.4.0 - 7.0.3
Parse error: syntax error, unexpected 'dari' (T_STRING), expecting ',' or ';' in /in/Hg58F on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/Hg58F on line 5
Process exited with code 255.