3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = dir(getcwd()); $file = new \SplFileObject("/var", 'r'); while (($entry = $dir->read()) !== false) { // var_dump($entry); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/UOLhL on line 3 Warning: dir(/): Failed to open directory: Operation not permitted in /in/UOLhL on line 3 Fatal error: Uncaught RuntimeException: SplFileObject::__construct(): open_basedir restriction in effect. File(/var) is not within the allowed path(s): (/tmp:/in:/etc) in /in/UOLhL:4 Stack trace: #0 /in/UOLhL(4): SplFileObject->__construct('/var', 'r') #1 {main} thrown in /in/UOLhL on line 4
Process exited with code 255.

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