3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file1 = '/somefile.jpg'; $file2 = 'file://shouldbelocal.jpg'; $file3 = 'http://someotherfile.jpg'; $local = stream_is_local($file1); $shouldbelocal = stream_is_local($file2); $remote = stream_is_local($file3); var_dump($local, $shouldbelocal, $remote);

preferences:
32.2 ms | 402 KiB | 5 Q