3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = $_GET['path']; if(!isset($path)){ echo file_get_contents('index.html'); die(); } require 'work-data.php'; $size = count($portfolio); for($portfolioIndex = 0 ; $portfolioIndex < $size ; $portfolioIndex++){ if($path === $portfolio[$portfolioIndex].path){ $record = $portfolio[$portfolioIndex]; } } echo file_get_contents('index.html'); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "path" in /in/udYWq on line 2 Warning: file_get_contents(): open_basedir restriction in effect. File(index.html) is not within the allowed path(s): (/tmp:/in:/etc) in /in/udYWq on line 4 Warning: file_get_contents(index.html): Failed to open stream: Operation not permitted in /in/udYWq on line 4

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