3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = str_replace('\\', DIRECTORY_SEPARATOR, realpath($source)) . '<br>'; $docRoot = str_replace('/', '\\', $_SERVER['DOCUMENT_ROOT']). '<br>'; // normalize to http $diff = str_replace($docRoot, '', $source). '<br>'; echo $source; echo $docRoot; echo $diff; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $source in /in/IhM53 on line 2 Deprecated: realpath(): Passing null to parameter #1 ($path) of type string is deprecated in /in/IhM53 on line 2 Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/IhM53 on line 2 <br><br><br>

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