3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_FILES = [ 'file1' => [ 'name' => 'MyFile.txt', 'type' => 'text/plain', 'tmp_name' => '/tmp/php/php1h4j1o', 'error' => UPLOAD_ERR_OK, 'size' => 123, ], 'file2' => [ 'name' => 'MyFile.txt', 'type' => 'text/plain', 'tmp_name' => '/tmp/php/php137z5o', 'error' => UPLOAD_ERR_OK, 'size' => 123, ] ]; $files = $_FILES; // The above two are for demo purposes only, mocking the REST API. // Use the below code for WordPress. //$files = $request->get_file_params(); $cleanFiles = array_column($files, 'tmp_name'); var_dump($cleanFiles);
Output for git.master_jit, git.master, rfc.property-hooks
array(2) { [0]=> string(18) "/tmp/php/php1h4j1o" [1]=> string(18) "/tmp/php/php137z5o" }

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:
63.87 ms | 405 KiB | 5 Q