3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( file_get_contents( '/etc/' ) );
Output for 8.0.0 - 8.0.11, 8.1rc1 - rc2
Notice: file_get_contents(): Read of 8192 bytes failed with errno=21 Is a directory in /in/5XQB3 on line 3 string(0) ""
Output for 7.4.0 - 7.4.23
Notice: file_get_contents(): read of 8192 bytes failed with errno=21 Is a directory in /in/5XQB3 on line 3 string(0) ""
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.30
string(0) ""

preferences:
57.06 ms | 461 KiB | 5 Q