3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stringAppend($str) { $str = $str."append"; //không có return } function stringPrepend($str) { $str = "prepend".$str; } $aString = "PHP"; echo stringPrepend(stringAppend($aString));// Không có return function updateValue(&$number) { $number = $number +1; } $val = 9; echo updateValue(&$val);
Output for 7.1.0 - 7.1.16, 7.2.0 - 7.2.4
Parse error: syntax error, unexpected '&' in /in/7bUJm on line 24
Process exited with code 255.

preferences:
243.56 ms | 1395 KiB | 29 Q