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]]; $newDatesCurrent = []; foreach($array as $value) { $newDatesCurrent[] = ['range' => $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.0140.00016.63
8.3.50.0070.01418.61
8.3.40.0110.00419.10
8.3.30.0140.00019.09
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.180.0070.01425.92
8.2.170.0000.01518.91
8.2.160.0000.01522.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.11
8.2.110.0000.01120.13
8.2.100.0030.00620.34
8.1.280.0150.00025.92
8.1.270.0050.00323.87
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00318.64
8.1.230.0030.00718.98
7.0.330.0060.00316.94

preferences:
37.48 ms | 400 KiB | 5 Q