3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Files("textfile1.txt", 7268474425, "textfile2.txt", 661204928, "textfile3.txt", 121034)'; var_export( array_reduce( array_chunk( json_decode('[' . substr($string, 6, -1) . ']'), 2 ), function ($result, $row) { $result[$row[0]] = $row[1]; return $result; } ) );

preferences:
33.69 ms | 408 KiB | 5 Q