3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $policy = <<<STRING { "expiration": "2013-3-14T23:20:33.000Z", "conditions": [{"bucket": "clientvids_in"}, ["starts-with", "\$key", "233326"], {"acl": "public-read"}, ["starts-with", "\$Filename", ""]]} STRING; echo $policy . "\n"; echo preg_replace('/\s\s+|\\f|\\n|\\r|\\t|\\x0B/', '', $policy);
Output for 4.3.0 - 7.1.0
{ "expiration": "2013-3-14T23:20:33.000Z", "conditions": [{"bucket": "clientvids_in"}, ["starts-with", "$key", "233326"], {"acl": "public-read"}, ["starts-with", "$Filename", ""]]} { "expiration": "2013-3-14T23:20:33.000Z", "conditions": [{"bucket": "clientvids_in"}, ["starts-with", "$key", "233326"], {"acl": "public-read"}, ["starts-with", "$Filename", ""]]}