3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('PUBLIC_PATH',ROOT_PATH.'/public/'); define('ASSETS'.PUBLIC_PATH,[ 'css' => 'css/', 'js' => 'js/', 'img' => 'img/', ]);
Output for 7.2.0
Warning: Use of undefined constant ROOT_PATH - assumed 'ROOT_PATH' (this will throw an Error in a future version of PHP) in /in/IZ21Y on line 3
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant ROOT_PATH - assumed 'ROOT_PATH' in /in/IZ21Y on line 3
Output for 5.4.10 - 5.6.28
Notice: Use of undefined constant ROOT_PATH - assumed 'ROOT_PATH' in /in/IZ21Y on line 3 Warning: Constants may only evaluate to scalar values in /in/IZ21Y on line 8
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/IZ21Y on line 4
Process exited with code 255.