3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( file_get_contents( '/etc/' ) );
Output for 8.3.25 - 8.3.26, 8.4.12 - 8.4.13
Notice: file_get_contents(): Read of 8632 bytes failed with errno=21 Is a directory in /in/5XQB3 on line 3 string(0) ""
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.24, 8.4.1 - 8.4.11
Notice: file_get_contents(): Read of 8600 bytes failed with errno=21 Is a directory in /in/5XQB3 on line 3 string(0) ""
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33
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.33
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.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33
string(0) ""

preferences:
103.65 ms | 411 KiB | 5 Q