3v4l.org

run code in 300+ PHP versions simultaneously
<?php $priority = 0; $time = '123123123'; $tenant = 0; $backend = 'file'; $fileId = 500; $extension = 'doc'; $taskType = 'file'; $tasksPath = '/tmp/'; $queueFields = ['priority', 'time', 'tenant', 'backend', 'fileId', 'extension', 'taskType']; $values = []; foreach ($queueFields as $field) { $values[] = $$field; } $taskPath .= implode('_', $values) . '.task';

preferences:
36.38 ms | 402 KiB | 5 Q