3v4l.org

run code in 300+ PHP versions simultaneously
<?php $color = 'blue'; if ( isset( $_GET['COLOR'] ) ) $color = $_GET['COLOR']; require( $color . '.php' ); ?> <form> <select name="COLOR"> <option value="red">red</option> <option value="blue">blue</option> </select> <input type="submit"> </form>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: require(): open_basedir restriction in effect. File(blue.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/UcOIO on line 5 Warning: require(blue.php): Failed to open stream: Operation not permitted in /in/UcOIO on line 5 Fatal error: Uncaught Error: Failed opening required 'blue.php' (include_path='.:') in /in/UcOIO:5 Stack trace: #0 {main} thrown in /in/UcOIO on line 5
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:
38.96 ms | 401 KiB | 8 Q