3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = [ 'email' => 'email', 'uuid' => 'uuid', 'format' => 'format', 'adress' => 'adress', 'lastname' => 'lastname', 'firstname' => 'firstname', ]; $users[] = array( 'ckey' => strlen(trim($tmp['uuid'])) ? $tmp['uuid'] : 'test', 'language' => $tmp['language'] ? trim($tmp['language']) : 'de', 'newsletter_format' => $tmp['format'] ? trim(strtolower($tmp['format'])) : 'html', 'adress' => $tmp['adress'] ? trim($tmp['adress']) : '', 'last_name' => $tmp['lastname'] ? trim($tmp['lastname']) : '', 'first_name' => $tmp['firstname'] ? trim($tmp['firstname']) : '', 'email' => trim($tmp['email']), 'mobile' => '0', ); var_dump($users);

preferences:
63.69 ms | 402 KiB | 5 Q