3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handle = fopen('/tmp/file', 'w+'); // truncate + attempt to create fwrite($handle, '12345'); // file position > 0 rewind($handle); // position = 0 $content = stream_get_contents($handle); // file position = 0 in PHP 5.1.6, file position > 0 in PHP 5.2.17! fwrite($handle, '6789'); fclose($handle); echo file_get_contents('/tmp/file');
Output for git.master_jit, git.master, rfc.property-hooks
123456789

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