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; } /* [...] */

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file in /in/jr0LF on line 5
Process exited with code 255.

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page