3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('FRAMEWORK_PATH','sfsafsfas' . DIRECTORY_SEPARATOR); $TEMPLATE_CONTEXT_PROCESSORS = [ FRAMEWORK_PATH . 'ContextProcessors.i18n', FRAMEWORK_PATH . 'ContextProcessors.tz', FRAMEWORK_PATH . 'ContextProcessors.request', FRAMEWORK_PATH . 'ContextProcessors.base_url', ]; echo stripslashes(var_export($TEMPLATE_CONTEXT_PROCESSORS,1)); //echo stripslashes($s2) . "\n";
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array ( 0 => 'sfsafsfas/ContextProcessors.i18n', 1 => 'sfsafsfas/ContextProcessors.tz', 2 => 'sfsafsfas/ContextProcessors.request', 3 => 'sfsafsfas/ContextProcessors.base_url', )
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Ni5o3 on line 4
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/Ni5o3 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/Ni5o3 on line 4
Process exited with code 255.