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);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
175.06 ms | 3286 KiB | 10 Q