3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $lines = file(__FILE__, FILE_APPEND);
Output for 8.3.0 - 8.3.14
Fatal error: Uncaught ValueError: file(): Argument #2 ($flags) must be a valid flag value in /in/b2W9u:3 Stack trace: #0 /in/b2W9u(3): file('/in/b2W9u', 8) #1 {main} thrown in /in/b2W9u on line 3
Process exited with code 255.
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25

preferences:
68.89 ms | 407 KiB | 5 Q