3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function &Website_Index($keys=array(), $value=NULL, &$index=NULL) { static $indexed = array(); if($keys===NULL){$indexed=$value;}#echo "MANUALLY_LOADED_ARRAY";} #if($indexed===NULL){$indexed=API_Array(Website_Index_Array_Path);}#echo "AUTO_LOADED_FILE";}#fastest = include(...); ??? pass filename!!! #if($indexed===NULL){$indexed=API_Array(Website_Index_Array_Path);}#echo "AUTO_LOADED_FILE";}#fastest = include(...); ??? pass filename!!! if($index===NULL){$index=&$indexed;} # by reference! if(count($keys)>0) { $key = array_shift($keys); if(isset($index[$key])){ if(count($keys)>0){ if(is_array($index[$key])){ return Website_Index($keys, $value, $index[$key]); } else{ return NULL; } }else{ if($value!==NULL){ return $index[$key] = $value;} else{ return $index[$key]; } } } else{ return NULL; } } return $index; } ?>
Output for 5.0.0 - 7.2.0
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '=', expecting ')' in /in/eqSt6 on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '=', expecting ')' in /in/eqSt6 on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/eqSt6 on line 1
Process exited with code 255.