3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contextOptions = [ 'ssl' => [ 'verify_peer' => true, 'cafile' => '/path/to/cafile.pem', 'CN_match' => 'example.com', 'ciphers' => 'HIGH:!SSLv2:!SSLv3', 'disable_compression' => true, ], ]; $context = stream_context_create($contextOptions); $data = file_get_contents('https://example.com/file.ext', false, $context); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/lFd6F on line 14 Warning: file_get_contents(): open_basedir restriction in effect. File(https://example.com/file.ext) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lFd6F on line 14 Warning: file_get_contents(https://example.com/file.ext): Failed to open stream: Operation not permitted in /in/lFd6F on line 14

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
47.43 ms | 402 KiB | 8 Q