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', // ]

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.2rc10.0080.00417.30
8.1.100.0070.00517.29
8.1.90.0080.00517.31
8.1.80.0090.00417.30
8.1.70.0080.00517.31
8.1.60.0100.00617.41
8.1.50.0090.00717.37
8.1.40.0110.00517.36
8.1.30.0110.00517.47
8.1.20.0090.00617.46
8.1.10.0100.00517.37
8.1.00.0090.00717.28
8.0.230.0090.00416.75
8.0.220.0090.00516.72
8.0.210.0090.00516.71
8.0.200.0080.00516.78
8.0.190.0090.00516.77
8.0.180.0100.00416.73
8.0.170.0080.00516.73
8.0.160.0090.00516.74
8.0.150.0090.00516.65
8.0.140.0090.00516.70
8.0.130.0100.00516.66
8.0.120.0100.00416.69
8.0.110.0100.00416.69
8.0.100.0110.00416.70
8.0.90.0090.00516.70
8.0.80.0090.00516.70
8.0.70.0090.00516.68
8.0.60.0090.00516.71
8.0.50.0090.00416.68
8.0.30.0090.00416.72
8.0.20.0090.00416.73
8.0.10.0080.00516.82
7.4.300.0090.00416.35
7.4.290.0090.00516.37
7.4.280.0080.00616.38
7.4.270.0100.00416.35
7.4.260.0090.00416.38
7.4.250.0090.00416.39
7.4.240.0080.00416.34
7.4.230.0090.00416.35
7.4.220.0080.00416.37
7.4.210.0080.00516.39
7.4.200.0070.00516.33
7.4.190.0080.00416.46
7.4.180.0080.00416.42
7.4.160.0080.00416.39
7.4.150.0080.00416.35
7.4.140.0080.00416.30
7.4.130.0070.00516.22
7.4.120.0080.00416.21
7.4.110.0060.00616.21
7.4.100.0080.00416.34
7.4.90.0080.00416.29
7.4.80.0080.00416.24
7.4.70.0070.00516.24
7.4.60.0090.00416.21
7.4.50.0080.00416.15
7.4.40.0080.00416.16
7.4.30.0080.00416.19
7.4.20.0080.00416.22
7.4.10.0070.00516.23
7.4.00.0080.00416.23

preferences:
12.13 ms | 406 KiB | 5 Q