3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ ['tabelle_mannschaft' => 'SV Winter'], ['tabelle_mannschaft' => 'Mannschaft 7'], ['tabelle_mannschaft' => 'TSV HORIZONT'], ['tabelle_mannschaft' => 'Mannschaft 8'], ]; $subset = [ ['tabelle_mannschaft' => 'TSV HORIZONT'], ['tabelle_mannschaft' => 'Mannschaft 7'], ]; $lookup = array_column($subset, 'tabelle_mannschaft', 'tabelle_mannschaft'); foreach ($array as $i => $row) { if (isset($lookup[$row['tabelle_mannschaft']])) { $array[$i] = array_shift($subset); } } var_export($array);

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.70.0080.00818.45
8.5.60.0070.00716.79
8.5.50.0070.00316.64
8.5.30.0050.01221.37
8.5.20.0090.01019.38
8.5.10.0100.00720.05
8.5.00.0110.01020.05
8.4.210.0120.00919.48
8.4.180.0120.00923.97
8.4.170.0070.00320.56
8.4.160.0150.00923.98
8.4.150.0080.00416.89
8.4.140.0100.01117.56
8.4.130.0040.00417.69
8.4.120.0090.00920.55
8.4.110.0130.00818.88
8.4.100.0050.00517.77
8.4.90.0110.00917.75
8.4.80.0130.00717.70
8.4.70.0070.00817.69
8.4.60.0090.01218.66
8.4.50.0140.00418.51
8.4.40.0130.00719.74
8.4.30.0100.01020.64
8.4.20.0000.00919.80
8.4.10.0090.00023.85
8.3.300.0120.00720.68
8.3.290.0110.00820.82
8.3.280.0090.01018.48
8.3.270.0120.00816.53
8.3.260.0040.00416.82
8.3.250.0130.00918.89
8.3.240.0050.00316.62
8.3.230.0100.00816.75
8.3.220.0070.00319.11
8.3.210.0110.00816.45
8.3.200.0040.00516.78
8.3.190.0080.00317.13
8.3.180.0070.00317.17
8.3.170.0120.00622.41
8.3.160.0090.00017.17
8.3.150.0040.01417.12
8.3.140.0040.01416.47
8.3.130.0050.00318.23
8.3.120.0000.00920.67
8.3.110.0110.00720.94
8.3.100.0090.00616.64
8.3.90.0040.01126.77
8.3.80.0070.00718.31
8.3.70.0140.00716.58
8.3.60.0150.00316.50
8.3.50.0140.00719.96
8.3.40.0120.00920.18
8.3.30.0070.00718.41
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.300.0130.00718.55
8.2.290.0030.00620.36
8.2.280.0090.01018.61
8.2.270.0120.00617.40
8.2.260.0040.00416.48
8.2.250.0090.00918.82
8.2.240.0120.00618.84
8.2.230.0000.00922.58
8.2.220.0100.00024.06
8.2.210.0110.00726.77
8.2.200.0110.00318.41
8.2.190.0150.00018.05
8.2.180.0150.00025.92
8.2.170.0070.00718.96
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00619.27
8.2.100.0040.00717.91
8.2.90.0000.00818.22
8.2.80.0000.00917.97
8.2.70.0060.00317.75
8.2.60.0050.00317.79
8.2.50.0000.00918.07
8.2.40.0040.00418.34
8.2.30.0050.00218.13
8.2.20.0070.00022.33
8.2.10.0040.00418.16
8.2.00.0070.00019.42
8.1.340.0110.01121.78
8.1.330.0120.00816.78
8.1.320.0100.01016.20
8.1.310.0050.00318.79
8.1.300.0040.00417.75
8.1.290.0000.01030.84
8.1.280.0100.00725.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00420.87
8.1.230.0000.01120.99
8.1.220.0050.00317.74
8.1.210.0050.00520.64
8.1.200.0030.00717.35
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0070.00018.94
8.1.160.0000.00818.94
8.1.150.0000.00718.60
8.1.140.0020.00517.46
8.1.130.0040.00417.36
8.1.120.0060.00617.38
8.1.110.0160.00017.44
8.1.100.0100.00617.31
8.1.90.0130.00317.41
8.1.80.0100.00717.19
8.1.70.0160.00017.28
8.1.60.0120.00617.54
8.1.50.0130.00417.46
8.1.40.0090.00717.48
8.1.30.0110.00817.57
8.1.20.0180.00017.48
8.1.10.0150.00317.38
8.1.00.0140.00317.52
8.0.300.0000.00720.00
8.0.290.0030.00616.63
8.0.280.0030.00618.43
8.0.270.0070.00017.13
8.0.260.0060.00016.70
8.0.250.0080.00416.86
8.0.240.0080.00716.87
8.0.230.0150.00016.93
8.0.220.0070.00816.79
8.0.210.0000.01516.83
8.0.200.0070.00716.90
8.0.190.0150.00016.76
8.0.180.0120.00316.83
8.0.170.0070.00716.73
8.0.160.0170.00016.77
8.0.150.0050.01116.65
8.0.140.0090.00616.66
8.0.130.0130.00316.81
8.0.120.0090.00616.72
8.0.110.0130.00316.56
8.0.100.0160.00016.69
8.0.90.0100.00716.74
8.0.80.0160.00016.71
8.0.70.0120.00416.68
8.0.60.0080.00816.61
8.0.50.0120.00316.69
8.0.30.0030.00616.64
8.0.20.0110.00016.89
8.0.10.0000.00816.98
7.4.330.0060.00015.55
7.4.320.0060.00016.34
7.4.300.0110.00316.53
7.4.290.0130.00316.33
7.4.280.0070.00516.41
7.4.270.0130.00016.48
7.4.260.0100.00716.32
7.4.250.0130.00416.36
7.4.240.0110.00516.53
7.4.230.0120.00516.43
7.4.220.0150.00016.53
7.4.210.0130.00316.52
7.4.200.0100.00416.39
7.4.190.0080.00616.57
7.4.180.0150.00016.48
7.4.160.0100.00516.43
7.4.150.0110.00016.43
7.4.140.0110.00016.38
7.4.130.0070.00716.39
7.4.120.0090.00516.48
7.4.110.0110.00416.48
7.4.100.0040.00916.45
7.4.90.0110.00016.26
7.4.80.0030.00716.13
7.4.70.0140.00016.41
7.4.60.0060.00616.49
7.4.50.0100.00316.17
7.4.40.0140.00016.30
7.4.30.0060.00616.43
7.4.20.0140.00016.31
7.4.10.0130.00016.38
7.4.00.0100.00316.38

preferences:
57.17 ms | 1300 KiB | 5 Q