3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?php $data=array(); $Inputfile = file("prod.txt"); foreach ($Inputfile as $line){ $pieces = explode(";", $line); echo $pieces[0]; echo $pieces[1]; echo $pieces[2]; echo $pieces[3]; //print_r($line); } ?> </body> </html>
Output for git.master, git.master_jit
<html> <body> Warning: file(): open_basedir restriction in effect. File(prod.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/pmvLU on line 8 Warning: file(prod.txt): Failed to open stream: Operation not permitted in /in/pmvLU on line 8 Warning: foreach() argument must be of type array|object, bool given in /in/pmvLU on line 9 </body> </html>
Output for rfc.property-hooks
<html> <body> Warning: file(): open_basedir restriction in effect. File(prod.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/pmvLU on line 8 Warning: file(prod.txt): Failed to open stream: Operation not permitted in /in/pmvLU on line 8 Warning: foreach() argument must be of type array|object, false given in /in/pmvLU on line 9 </body> </html>

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.21 ms | 401 KiB | 8 Q