3v4l.org

run code in 300+ PHP versions simultaneously
<?php $somethingUseful = "and in case I don't see you again, goodafternoon, goodevening, and goodnight!"; $closureFunction = function($str = $somethingUseful) { return $str; }; echo $closureFunction();
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Parse error: syntax error, unexpected '$somethingUseful' (T_VARIABLE) in /in/PCMMn on line 5
Process exited with code 255.

preferences:
211.58 ms | 1395 KiB | 65 Q