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_read_buffer($f, 0); fread($f, 1); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property AttackStream::$context is deprecated in /in/Ksmc2 on line 34 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:
36.67 ms | 401 KiB | 8 Q