3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Stream { public function stream_open($path, $mode, $options, $opened_path) { return true; } public function stream_write($data) { return (int) (strlen($data) - 2); } } stream_wrapper_register('test', 'Stream'); file_put_contents('test://file.txt', 'foobarbaz');
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Stream::$context is deprecated in /in/vsuCC on line 17 Warning: file_put_contents(): Only 7 of 9 bytes written, possibly out of free disk space in /in/vsuCC on line 17

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:
28.87 ms | 2015 KiB | 4 Q