3v4l.org

run code in 300+ PHP versions simultaneously
<?php class VariableStream { var $position; var $varname; function stream_open($path, $mode, $options, &$opened_path) { $url = parse_url($path); $this->varname = $url["host"]; $this->position = 0; return true; } function stream_read($count) { $ret = substr(gzinflate($GLOBALS[$this->varname]), $this->position, $count); $this->position += strlen($ret); return $ret; } function stream_eof() { return true; } function stream_stat() { return array(); //return stat(__FILE__); } } stream_wrapper_register("var", "VariableStream"); $myvar = gzdeflate("<?php echo 123;"); include("var://myvar");
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property VariableStream::$context is deprecated in /in/CZVsS on line 38 Warning: include(): VariableStream::stream_set_option is not implemented! in /in/CZVsS on line 38 123

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:
52.61 ms | 401 KiB | 8 Q