3v4l.org

run code in 150+ 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 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant filepath - assumed 'filepath' in /in/iq412 on line 9 array(2) { ["path"]=> string(23) "filepathassets/uploads/" ["allowed_types"]=> string(11) "gif|jpg|png" }