3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = fopen("data1.txt",'r+') or die("Error"); //echo fread($f, 5); //echo fread($f, 3); $s = filesize("data1.txt"); echo fread($f, $s); fwrite($f,'ksdhfkjsdf'); echo fread($f, $s+10); file_put_contents("data1.txt",'\n1234567890',FILE_APPEND); echo fread($f, $s+30); fclose($f); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: fopen(): open_basedir restriction in effect. File(data1.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/vg7DK on line 2 Warning: fopen(data1.txt): Failed to open stream: Operation not permitted in /in/vg7DK on line 2 Error

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