3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DummyStream { public function stream_open($path, $mode, $options, &$opened_path) { return true; } public function stream_read($count) { var_dump($count); return false; } public function stream_eof() { return false; } public function stream_seek($offset, $whence) { return true; } public function stream_tell() { return 0; } } stream_wrapper_register('dummy', 'DummyStream'); $fp = fopen('dummy://foo/bar', 'r'); fread($fp, 16);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property DummyStream::$context is deprecated in /in/fK0qu on line 11 int(8192)

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