3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $details_array['timestamp'] = '23'; $details_array['phone'] = 1235; $target_path = $dir_name."/".$details_array['timestamp']."_[".details_array['phone']."].wav"; echo $target_path;
Output for 7.2.0
Notice: Undefined variable: dir_name in /in/WTR5W on line 6 Warning: Use of undefined constant details_array - assumed 'details_array' (this will throw an Error in a future version of PHP) in /in/WTR5W on line 6 Warning: Illegal string offset 'phone' in /in/WTR5W on line 6 /23_[d].wav
Output for 5.6.8 - 7.1.10
Notice: Undefined variable: dir_name in /in/WTR5W on line 6 Notice: Use of undefined constant details_array - assumed 'details_array' in /in/WTR5W on line 6 Warning: Illegal string offset 'phone' in /in/WTR5W on line 6 /23_[d].wav
Output for 5.3.18 - 5.5.35
Parse error: syntax error, unexpected '[' in /in/WTR5W on line 6
Process exited with code 255.