3v4l.org

run code in 300+ PHP versions simultaneously
<?php # Will query and assign the permissions as directed by the list worker require_once 'aws.phar'; $args = (array) getPayload(); echo "Assigning permissions\n"; require 's3_connect.php'; $all_users = array('URI' => 'http://acs.amazonaws.com/groups/global/AllUsers'); foreach( $args['keys'] as $key ) { $grants = $s3->getObjectAcl(array( 'Bucket' => $args['bucket'], 'Key' => $key, )); if (strpos($key, '.d201402') !== FALSE){ $stringToReplace = $key; $removeTimestamp = strlen($stringToReplace); $removeTimestamp = floor($removeTimestamp - 21); $keytemp = substr_replace($stringToReplace, "jpg", $removeTimestamp); } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: require_once(): open_basedir restriction in effect. File(aws.phar) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Fv5jD on line 4 Warning: require_once(aws.phar): Failed to open stream: Operation not permitted in /in/Fv5jD on line 4 Fatal error: Uncaught Error: Failed opening required 'aws.phar' (include_path='.:') in /in/Fv5jD:4 Stack trace: #0 {main} thrown in /in/Fv5jD on line 4
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:
45.45 ms | 401 KiB | 8 Q