3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // global config $cfg = [ // core "sitename" => "Website Name", "siteurl" => "www.example.com", "lang" => "en-gb", "charset" => "UTF-8", // paths "asseturl" => "/assets", // email [ "email" => [ "contact" => "contact@example.com", ]] "pagename" => "Untitled page", "meta_desc" => "", "meta_keyw" => "", "html_class_body" => "", ]; print_r($cfg);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '"pagename"' (T_CONSTANT_ENCAPSED_STRING), expecting ']' in /in/LR9tr on line 21
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/LR9tr on line 4
Process exited with code 255.