3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stream = fopen('php://memory', 'w+'); $meta = stream_get_meta_data($stream); var_dump(is_writable($meta['uri']), fwrite($stream, 'foobar'), $meta);
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) int(6) array(9) { ["timed_out"]=> bool(false) ["blocked"]=> bool(true) ["eof"]=> bool(false) ["wrapper_type"]=> string(3) "PHP" ["stream_type"]=> string(6) "MEMORY" ["mode"]=> string(3) "w+b" ["unread_bytes"]=> int(0) ["seekable"]=> bool(true) ["uri"]=> string(12) "php://memory" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.57 ms | 402 KiB | 8 Q