3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fopen(__FILE__,'r'); unlink(__FILE__); while($line = fgets($fp)){ var_dump($line); } fclose($fp);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: unlink(/in/mbklZ): Permission denied in /in/mbklZ on line 4 string(6) "<?php " string(1) " " string(27) "$fp = fopen(__FILE__,'r'); " string(18) "unlink(__FILE__); " string(27) "while($line = fgets($fp)){ " string(25) " var_dump($line); " string(2) "} " string(12) "fclose($fp);"

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.38 ms | 402 KiB | 8 Q