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.5.00.0090.01319.99
8.4.150.0010.00014.05
8.4.140.0120.01117.60
8.4.130.0140.00717.65
8.4.120.0050.00420.47
8.4.110.0110.00918.72
8.4.100.0130.00718.77
8.4.90.0110.00920.52
8.4.80.0030.00517.61
8.4.70.0050.00417.73
8.4.60.0060.00524.09
8.4.50.0100.01020.36
8.4.40.0060.01319.20
8.4.30.0130.00620.25
8.4.20.0060.01217.66
8.4.10.0060.00624.18
8.3.280.0140.00718.54
8.3.270.0120.00716.68
8.3.260.0130.00516.32
8.3.250.0120.00719.04
8.3.240.0120.00716.59
8.3.230.0100.00516.37
8.3.220.0050.00316.54
8.3.210.0060.00218.46
8.3.200.0110.00816.69
8.3.190.0090.00619.21
8.3.180.0130.00516.63
8.3.170.0050.00317.07
8.3.160.0110.00816.69
8.3.150.0110.00720.59
8.3.140.0000.00816.56
8.3.130.0040.00418.43
8.3.120.0000.00818.78
8.3.110.0000.00720.94
8.3.100.0000.00724.06
8.3.90.0040.00426.77
8.3.80.0060.00316.88
8.3.70.0060.00916.58
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.290.0070.00420.34
8.2.280.0070.00718.52
8.2.270.0030.01617.33
8.2.260.0100.00719.03
8.2.250.0040.00418.60
8.2.240.0080.00817.06
8.2.230.0030.00622.58
8.2.220.0070.00437.54
8.2.210.0040.00426.77
8.2.200.0090.00016.48
8.2.190.0090.00616.58
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.330.0120.00616.30
8.1.320.0080.01116.20
8.1.310.0080.00016.64
8.1.300.0080.00020.07
8.1.290.0080.00330.84
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:
37.19 ms | 403 KiB | 5 Q