3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [['range' => 336, 'year' => 2020],['range' => 336, 'year' => 2020],['range' => 390, 'year' => 2020],['range' => 390, 'year' => 2021]]; $idList = array_flip(array_values(array_unique(array_column($array, 'range')))); $newDatesCurrent = []; foreach($array as $value) { $newDatesCurrent[] = ['range' => $idList[$value['range']], 'year' => $value['year'], 'month' => 222]; } print_r($newDatesCurrent);

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.3.60.0070.01116.75
8.3.50.0170.00318.36
8.3.40.0100.01019.04
8.3.30.0140.00019.04
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.180.0140.00325.92
8.2.170.0190.00318.95
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.82
8.2.110.0070.00320.27
8.2.100.0040.00420.38
8.1.280.0070.00725.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0000.00918.52
8.1.230.0040.00418.64
7.0.330.0050.00516.86

preferences:
27.86 ms | 400 KiB | 5 Q