3v4l.org

run code in 500+ PHP versions simultaneously
<?php // simulate a file from given string // return string fileName function virtualFile(string $content):string { return 'data://text/plain,'.urlencode($content); } $myString = "abc"; $fileName = virtualFile($myString); $myStringCopy = file_get_contents($fileName); //test var_dump($myString === $myStringCopy); //bool(true)
Output for rfc.property-hooks, git.master, git.master_jit
bool(true)

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:
46.54 ms | 1230 KiB | 4 Q