3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AttackStream { function stream_open($path, $mode, $options, &$opened_path) { return true; } function stream_read($count) { echo $count,"\n"; return "AA"; } function stream_eof() { return true; } function stream_set_option() { return true; } function stream_seek($offset, $whence) { return false; } } stream_wrapper_register("attack", "AttackStream") or die("Failed to register protocol"); $f = fopen("attack://nothing", "r"); stream_set_chunk_size($f, 1); fread($f, 1); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property AttackStream::$context is deprecated in /in/qOYsX on line 34 1 Warning: fread(): AttackStream::stream_read - read 1 bytes more data than requested (2 read, 1 max) - excess data will be lost in /in/qOYsX on line 36

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:
44.74 ms | 402 KiB | 8 Q