3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename1 = "\x41\x6d\xC3\xA9\x6c\x69\x65"; $filename2 = "\x41\x6d\x65\xCC\x81\x6c\x69\x65"; file_put_contents($filename1, "Hello\n"); echo file_get_contents($filename2); $files = glob("Am*"); echo "There are ".count($files)."files\n"; foreach ($files as $fileOnDisk) { echo "strcmp val ".strcmp($filename1, $fileOnDisk)."\n"; echo "strcmp val ".strcmp($filename2, $fileOnDisk)."\n"; } exit(0);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_put_contents(): open_basedir restriction in effect. File(Amélie) is not within the allowed path(s): (/tmp:/in:/etc) in /in/B8u54 on line 7 Warning: file_put_contents(Amélie): Failed to open stream: Operation not permitted in /in/B8u54 on line 7 Warning: file_get_contents(): open_basedir restriction in effect. File(Amélie) is not within the allowed path(s): (/tmp:/in:/etc) in /in/B8u54 on line 8 Warning: file_get_contents(Amélie): Failed to open stream: Operation not permitted in /in/B8u54 on line 8 There are 0files

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