3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filePath = 'missing_file'; $realFilePath = realpath($filePath); $fileInfo = new SplFileInfo($realFilePath); var_dump($fileInfo->getRealPath());

preferences:
51.81 ms | 402 KiB | 5 Q