3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(file_get_contents("tmp/test2"));
Output for 8.0.0 - 8.0.28, 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: file_get_contents(tmp/test2): Failed to open stream: No such file or directory in /in/XurfU on line 2 bool(false)
Output for 8.0.29
Notice: file_get_contents(): Read of 8192 bytes failed with errno=21 Is a directory in /in/XurfU on line 2 string(0) ""
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.29, 5.5.33 - 5.5.38, 5.6.0 - 5.6.13, 5.6.18 - 5.6.28, 7.0.4 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.30, 7.4.33
Warning: file_get_contents(tmp/test2): failed to open stream: No such file or directory in /in/XurfU on line 2 bool(false)
Output for 5.5.30 - 5.5.32, 5.6.14 - 5.6.17, 7.0.0 - 7.0.3, 7.4.32
string(0) ""

preferences:
172.95 ms | 402 KiB | 301 Q