3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = array( 'system' => [ 'GUI' => array( 'enabled' => true, 'password' => '', ), 'Constants' => array( 'URL_QUERYSTRING' => true, 'ERRORS_TO_EXCEPTIONS' => true, 'DEBUG_MODE' => true, ), 'Benchmark' => array( 'enabled' => false, ), 'Translations' => array( 'db_connection' => 'Default', 'table_name' => array( 'languages' => 'languages', 'translations' => 'translations', ), ), 'Spam' => array( 'honeypot_names' => array( 0 => 'name1', 1 => 'name2', 2 => 'name3', 3 => 'name4', 4 => 'name5', 5 => 'name6', ), ), 'Response' => array( 'supported' => array( 0 => 'text/html', 1 => 'application/json', ), ),] ); function arr(){ global $data; return $data; } arr()['system']['Translations']['table_name']['languages'];
Output for 5.4.0 - 7.2.0
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Wajor on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/Wajor on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/Wajor on line 3
Process exited with code 255.