3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentError = 'curl: (22) The requested URL returned error: 43 Forbidden\n\ngzip: stdin: unexpected end of file\n'; echo str_replace("\ngzip: stdin: unexpected end of file\n", "", $currentError);

preferences:
39.43 ms | 402 KiB | 5 Q