3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = "{this:'is a test',and:['a','comparison','of'],multiple:'encodings',on:'json'}"; echo 'string ', strlen($json), '<br/>'; echo 'gz ', strlen(gzcompress($json)), '<br/>'; echo 'bz ', strlen(bzcompress($json)), '<br/>'; echo 'lzf ', strlen(lzf_compress($json)), '<br/>'; echo 'zlib ', strlen(zlib_encode($json, 15, 9)), '<br/>'; echo 'deflate ', strlen(zlib_encode($json, -15, 9)), '<br/>'; echo 'gzip ', strlen(zlib_encode($json, 31, 9)), '<br/>'; echo 'gzencode ', strlen(gzencode($json, 9)), '<br/>'; echo 'gzdeflate ', strlen(gzdeflate($json, 9)), '<br/>';
Output for git.master, git.master_jit, rfc.property-hooks
string 77<br/>gz 79<br/>bz Fatal error: Uncaught Error: Call to undefined function bzcompress() in /in/pTg8s:6 Stack trace: #0 {main} thrown in /in/pTg8s on line 6
Process exited with code 255.

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