3v4l.org

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