3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = '{"datetime":1409156156,"name":"\/work\/consumerr\/test-project\/php\/index.php","time":0.0055620670318604,"memory":176944,"url":"http:\/\/localhost\/work\/consumerr\/test-project\/php\/","backgroundJob":false,"versions":{"php":10100},"type":0,"events":[],"errors":[],"parts":[],"serverName":"localhost","remoteAddr":"127.0.0.1","userAgent":"Mozilla\/5.0 (Windows NT 6.3; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/36.0.1985.143 Safari\/537.36","token":"52462459369970373610","secret":"lm9lbfaasqofrzka71qetaetrfvw3baid42c8ew82kcnct6hqe","recieved":"2014-08-27 18:15:56"}'; $val = json_decode($val); echo strlen(json_encode($val)); echo "\n"; echo strlen(gzcompress(serialize($val))); echo "\n"; echo strlen(base64_encode(gzcompress(serialize($val)))); echo "\n";echo gzcompress(($val));
Output for git.master, git.master_jit, rfc.property-hooks
582 467 624 Fatal error: Uncaught TypeError: gzcompress(): Argument #1 ($data) must be of type string, stdClass given in /in/36oU0:8 Stack trace: #0 /in/36oU0(8): gzcompress(Object(stdClass)) #1 {main} thrown in /in/36oU0 on line 8
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:
48.49 ms | 401 KiB | 8 Q