3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DummyStream { public function stream_open($path, $mode, $options, &$opened_path) { echo 'open'; return true; } public function stream_read($count) { var_dump($count); return false; } public function stream_eof() { echo 'eof'; return false; } public function stream_seek($offset, $whence) { echo 'seek'; return true; } public function stream_tell() { echo '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/SLn2k on line 11 openint(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:
33.97 ms | 401 KiB | 8 Q