3v4l.org

run code in 300+ PHP versions simultaneously
<?php function set($value) { error_reporting(E_ALL); print("Trying to set $value..."); $before = ini_get("open_basedir"); $result = ini_set('open_basedir', $value); if ($result) { print("Success!\n"); } else { print("Failure\n"); print(error_get_last()); } print($before." => ".ini_get('open_basedir')."\n"); } set('/tmp/a'.PATH_SEPARATOR.'/tmp/b/c'); set('/tmp/a/b'); set('/tmp/c');
Output for git.master_jit, git.master, rfc.property-hooks
Trying to set /tmp/a:/tmp/b/c...Success! /tmp:/in:/etc => /tmp/a:/tmp/b/c Trying to set /tmp/a/b...Failure /tmp/a:/tmp/b/c => /tmp/a:/tmp/b/c Trying to set /tmp/c...Failure /tmp/a:/tmp/b/c => /tmp/a:/tmp/b/c

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