3v4l.org

run code in 300+ PHP versions simultaneously
<?php protected function moveFile($file){ foreach ($file['file1']['tmp_name'] as $key=>$tmp_name){ $date = new DateTime(); $info = new SplFileInfo($file["file1"]["name"][$key]); $file_name=$_SESSION['user_details']['user_id'].'-'.$date->getTimestamp().'-'.sha1($file["file1"]["name"][$key]).'.'.$info->getExtension(); $file_tmp=$file["file1"]["tmp_name"][$key]; $success=move_uploaded_file($file_tmp,$this->directory.$file_name); var_dump($file_name); }
Output for git.master_jit, git.master, rfc.property-hooks
Parse error: syntax error, unexpected token "protected", expecting end of file in /in/jVRZ1 on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
174.46 ms | 2687 KiB | 6 Q