3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = [ ['2nd' => 'two', 'four' => '4th'], 'three' => '3rd', ['one' => '1st'], '10th' => 'ten', ['6th' => 'six'], '5th' => 'five', 'seven' => '7th', ['fourteen' => '14th', '11th' => 'eleven'], ['8th' => 'eight'], 'thirteen' => '13th', '12th' => 'twelve', 'nine' => '9th', ['15th' => 'fifteen'], ]; // 以下と同じ配列を $in から作って出力してください // // [ // '1st' => 'one', // '2nd' => 'two', // '3rd' => 'three', // '4th' => 'four', // '5th' => 'five', // '6th' => 'six', // '7th' => 'seven', // '8th' => 'eight', // '9th' => 'nine', // '10th' => 'ten', // '11th' => 'eleven', // '12th' => 'twelve', // '13th' => 'thirteen', // '14th' => 'fourteen', // '15th' => 'fifteen', // ]
Output for 7.4.0 - 7.4.30, 8.0.1 - 8.0.23, 8.1.0 - 8.1.10, 8.2rc1

preferences:
16.5 ms | 409 KiB | 5 Q