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.5.10.0120.00618.88
8.5.00.0090.01220.13
8.4.150.0020.00114.05
8.4.140.0120.01017.47
8.4.130.0060.00417.78
8.4.120.0120.00824.14
8.4.110.0070.00317.92
8.4.100.0060.00417.73
8.4.90.0120.00820.82
8.4.80.0130.00618.83
8.4.70.0090.00317.89
8.4.60.0090.00518.65
8.4.50.0100.01018.54
8.4.40.0110.01019.43
8.4.30.0100.01020.45
8.4.20.0100.01017.49
8.4.10.0140.00325.63
8.3.280.0100.00918.36
8.3.270.0140.00616.42
8.3.260.0100.00916.42
8.3.250.0130.00518.94
8.3.240.0090.01017.32
8.3.230.0050.00216.65
8.3.220.0080.00019.12
8.3.210.0100.00516.79
8.3.200.0050.00416.75
8.3.190.0050.00417.11
8.3.180.0100.01017.11
8.3.170.0160.00319.05
8.3.160.0110.00717.08
8.3.150.0130.00617.37
8.3.140.0040.00416.68
8.3.130.0100.00016.48
8.3.120.0000.00920.68
8.3.110.0040.00420.94
8.3.100.0090.00018.39
8.3.90.0030.00526.77
8.3.80.0080.00616.63
8.3.70.0070.00716.75
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.290.0090.01016.46
8.2.280.0110.00818.36
8.2.270.0110.00718.82
8.2.260.0140.00016.40
8.2.250.0060.00916.62
8.2.240.0000.00817.14
8.2.230.0120.00322.58
8.2.220.0030.00624.06
8.2.210.0040.00426.77
8.2.200.0040.00416.75
8.2.190.0180.00416.63
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.330.0090.00916.23
8.1.320.0100.00815.97
8.1.310.0100.01016.55
8.1.300.0060.00318.38
8.1.290.0090.00330.84
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:
81.06 ms | 403 KiB | 5 Q