3v4l.org

run code in 500+ PHP versions simultaneously
<?php register_shutdown_function(function() { echo "anyway, hello world\n"; }); set_error_handler(function($severity, $message, $file, $line) { throw new ErrorException($message, 0, $severity, $file, $line); }); set_exception_handler(function($exception) { echo $exception->getMessage().PHP_EOL; }); abstract class A { abstract private function meth(); }
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.34, 8.3.0 - 8.3.5
Fatal error: Abstract function A::meth() cannot be declared private in /in/cNHbu on line 16
Process exited with code 255.

preferences:
31.16 ms | 1137 KiB | 6 Q