3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Question { public static $variable1 = array ( "key" => array( "label" => "A label.", "desc" => "A desc." ) ); public static $variable2 = array( "flower" => array( // Pass by reference within a class? "key" => $this->&$variable1["key"] ) ); } var_dump(Question::$variable2);
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$this' (T_VARIABLE) in /in/gKbtY on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/gKbtY on line 13
Process exited with code 255.