3v4l.org

run code in 200+ PHP versions simultaneously
<?php /* [...] */ public function findBody(string $curlRawResponse) : ?string { $chunks = explode("\r\n\r\n", $curlRawResponse) foreach($chunks as $chunk) { if(strpos($chunk, "HTTP/1.") !== FALSE) { continue; } else { return $chunk; } } return null; } /* [...] */
Output for 7.1.25 - 7.3.5
Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file in /in/jr0LF on line 5
Process exited with code 255.