3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('open_basedir', getcwd()); $path='../'; function throwErrorException($errno, $errstr, $errfile, $errline) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler('throwErrorException', E_WARNING); try { $isDir = (is_dir($path) === false || is_readable($path) === false); } catch (ErrorException $error) { $isDir = false; } restore_error_handler(); var_dump($isDir);
Output for rfc.property-hooks, git.master, git.master_jit
bool(false)

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:
50.4 ms | 2690 KiB | 4 Q