3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function FILEPATH() { return "this"; } $upload = array( 'path' => FILEPATH . 'assets/uploads/', // Get Parse error: syntax error, unexpected '.', expecting ')' 'allowed_types' => 'gif|jpg|png' ); var_dump($upload);
Output for 7.2.0
Warning: Use of undefined constant FILEPATH - assumed 'FILEPATH' (this will throw an Error in a future version of PHP) in /in/OkK52 on line 9 array(2) { ["path"]=> string(23) "FILEPATHassets/uploads/" ["allowed_types"]=> string(11) "gif|jpg|png" }
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant FILEPATH - assumed 'FILEPATH' in /in/OkK52 on line 9 array(2) { ["path"]=> string(23) "FILEPATHassets/uploads/" ["allowed_types"]=> string(11) "gif|jpg|png" }