3v4l.org

run code in 300+ PHP versions simultaneously
<?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); } ?>
Output for git.master, git.master_jit
Warning: file(): open_basedir restriction in effect. File(prod.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Y9Jer on line 4 Warning: file(prod.txt): Failed to open stream: Operation not permitted in /in/Y9Jer on line 4 Warning: foreach() argument must be of type array|object, bool given in /in/Y9Jer on line 5
Output for rfc.property-hooks
Warning: file(): open_basedir restriction in effect. File(prod.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Y9Jer on line 4 Warning: file(prod.txt): Failed to open stream: Operation not permitted in /in/Y9Jer on line 4 Warning: foreach() argument must be of type array|object, false given in /in/Y9Jer on line 5

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