3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Task 1: Decode secret word * * $data variable (defined below) is an array of digits, that represents binary data. Every element of array * is a single-byte char code. * * The task is to decompress gzipped binary data, then to decode the result as base 64 encoded string and * to print to output the result string - this is a secret word. * */ $data = [120, 156, 11, 204, 13, 43, 142, 140, 240, 50, 76, 174, 116, 181, 5, 0, 27, 141, 4, 18]; $string = ''; foreach ($data as $char) { $string .= chr($char); } echo base64_decode(gzuncompress($string));
Output for git.master, git.master_jit, rfc.property-hooks
Belarus!

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:
66.57 ms | 401 KiB | 8 Q