Skip to content

Instantly share code, notes, and snippets.

@tom--
Last active December 16, 2015 02:39
Show Gist options
  • Select an option

  • Save tom--/5364079 to your computer and use it in GitHub Desktop.

Select an option

Save tom--/5364079 to your computer and use it in GitHub Desktop.
More fun with `data:` URIs.
<?php
$x = "Hello world!";
$y = include(
'data:application/x-php;charset=utf8,<?php return'
. var_export($x, true)
.';'
);
var_dump($y);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment