3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allTags = [ 0 => [ "name" => "TAG-ONE", "video" => "64070,64076,64110,64111", ], 1 => [ "name" => "TAG-TWO", "video" => "64070,64076,64110,64111", ], 2 => [ "name" => "TAG-THREE", "video" => "64111", ] ]; $video_ids = array_flip(array_unique(explode(",",implode(",",array_column($allTags,'video'))))); $result = array_map(function($id){ return ['name' => '','video' => $id]; },array_flip($video_ids)); array_walk($allTags,function($tag_data) use (&$result,&$video_ids){ $ids = explode(",",$tag_data['video']); foreach($ids as $id) $result[$video_ids[$id]]['name'] = empty($result[$video_ids[$id]]['name']) ? $tag_data['name'] : $result[$video_ids[$id]]['name'] . "," . $tag_data['name']; }); print_r($result);

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.0.30.0050.01117.22
8.0.20.0090.01517.29
8.0.00.0040.01816.72
7.4.130.0040.01416.70
7.4.120.0080.01116.63
7.4.110.0080.01216.52
7.4.100.0170.00016.50
7.4.90.0140.00816.61
7.4.80.0150.00619.39
7.4.70.0030.01316.62
7.4.60.0100.00716.52
7.4.50.0000.00916.57
7.4.40.0090.01216.52
7.4.00.0120.00714.98
7.3.260.0080.00816.42
7.3.230.0070.01616.55
7.3.210.0030.01316.39
7.3.200.0030.01316.38
7.3.190.0070.01016.62
7.3.180.0030.01216.40
7.3.170.0070.01016.57
7.3.160.0060.00916.54
7.3.120.0090.00515.04
7.3.110.0060.00714.89
7.3.100.0090.00714.54
7.3.90.0100.00514.76
7.3.80.0050.00914.71
7.3.70.0080.00714.90
7.3.60.0030.01414.82
7.3.50.0080.00914.80
7.3.40.0110.00314.85
7.3.30.0100.00414.76
7.3.20.0110.00914.83
7.3.10.0130.00514.81
7.3.00.0070.00914.79
7.2.330.0140.00316.51
7.2.320.0120.00916.82
7.2.310.0060.00916.74
7.2.300.0060.01216.56
7.2.290.0090.00916.86
7.2.250.0080.00615.00
7.2.240.0050.00915.07
7.2.230.0070.01015.11
7.2.220.0030.01315.19
7.2.210.0090.01315.04
7.2.200.0060.01214.99
7.2.190.0110.00814.88
7.2.180.0080.00915.00
7.2.170.0110.00415.14
7.2.160.0140.00915.09
7.2.150.0180.01215.25
7.2.140.0140.01714.93
7.2.130.0170.01215.37
7.2.120.0240.00615.19
7.2.110.0330.00515.30
7.2.100.0170.01115.11
7.2.90.0140.01415.16
7.2.80.0180.00714.81
7.2.70.0150.01215.00
7.2.60.0230.01315.03
7.2.50.0090.01415.18
7.2.40.0120.00515.07
7.2.30.0060.01215.07
7.2.20.0190.00315.08
7.2.10.0060.01015.14
7.2.00.0080.01015.23
7.1.330.0110.00614.01
7.1.320.0050.00914.02
7.1.310.0130.00813.94
7.1.300.0100.00613.86
7.1.290.0050.00914.10
7.1.280.0240.00313.93
7.1.270.0080.00913.90
7.1.260.0110.00613.99
7.1.250.0120.01514.11
7.1.240.0290.00713.71
7.1.230.0150.01213.83
7.1.220.0110.01113.81
7.1.210.0190.00613.75
7.1.200.0210.00314.04
7.1.190.0170.01213.95
7.1.180.0170.01413.99
7.1.170.0080.00514.00
7.1.160.0110.00413.98
7.1.150.0080.01013.80
7.1.140.0160.00313.95
7.1.130.0140.00014.09
7.1.120.0070.00913.91
7.1.110.0060.00913.92
7.1.100.0120.00513.96
7.1.90.0090.00814.15
7.1.80.0070.00713.95
7.1.70.0080.01213.97
7.1.60.0130.00314.07
7.1.50.0080.00613.88
7.1.40.0070.01014.01
7.1.30.0080.00714.02
7.1.20.0100.01014.02
7.1.10.0110.00414.00
7.1.00.0100.00714.01
7.0.330.0190.01013.66
7.0.320.0190.01213.50
7.0.310.0150.01213.59
7.0.300.0150.00613.63
7.0.290.0090.00613.41
7.0.280.0070.01513.43
7.0.270.0500.00813.46
7.0.260.0150.00013.55
7.0.250.0100.01013.68
7.0.240.0070.01013.59
7.0.230.0100.00513.44
7.0.220.0150.00413.43
7.0.210.0030.01513.63
7.0.200.0100.00813.66
7.0.190.0120.00713.68
7.0.180.0120.00613.37
7.0.170.0110.00813.48
7.0.160.0000.01713.63
7.0.150.0120.00613.47
7.0.140.0080.01013.39
7.0.130.0080.00613.58
7.0.120.0120.00313.37
7.0.110.0250.00813.47
7.0.100.0100.01013.66
7.0.90.0090.00613.55
7.0.80.0130.01113.52
7.0.70.0070.01313.24
7.0.60.0110.00313.47
7.0.50.0050.01513.42
7.0.40.0110.01513.52
7.0.30.0170.00313.63
7.0.20.0170.01413.66
7.0.10.0120.00613.70
7.0.00.0090.00613.59
5.6.400.0220.00614.59
5.6.390.0200.00514.25
5.6.380.0140.00814.57
5.6.370.0190.00714.63
5.6.360.0110.00414.59
5.6.350.0080.01114.53
5.6.340.0060.01314.67
5.6.330.0150.00513.98
5.6.320.0090.00713.86
5.6.310.0100.00714.46
5.6.300.0090.00914.30
5.6.290.0150.00414.25
5.6.280.0050.01014.46
5.6.270.0110.00414.18
5.6.260.0100.00814.02
5.6.250.0110.00514.43
5.6.240.0110.01214.46
5.6.230.0110.00914.49
5.6.220.0170.01014.57
5.6.210.0000.01414.54
5.6.200.0030.01314.26
5.6.190.0100.00714.61
5.6.180.0070.01214.31
5.6.170.0100.00814.54
5.6.160.0150.00314.52
5.6.150.0120.00814.21
5.6.140.0030.01314.56
5.6.130.0140.00514.44
5.6.120.0260.00614.46
5.6.110.0160.00914.43
5.6.100.0130.00914.20
5.6.90.0150.00714.39
5.6.80.0170.01114.17
5.6.70.0120.01214.58
5.6.60.0120.01214.28
5.6.50.0190.00714.38
5.6.40.0230.00414.43
5.6.30.0210.01014.40
5.6.20.0170.00814.46
5.6.10.0190.00514.50
5.6.00.0120.01314.54
5.5.380.0040.01814.45
5.5.370.0170.00814.59
5.5.360.0240.00514.32
5.5.350.0090.00914.03
5.5.340.0050.01114.68
5.5.330.0160.00614.34
5.5.320.0100.01014.03
5.5.310.0070.01114.34
5.5.300.0060.01414.13
5.5.290.0090.01014.40
5.5.280.0190.00414.28
5.5.270.0160.01314.47
5.5.260.0130.00914.46
5.5.250.0180.00614.63
5.5.240.0150.01214.38
5.5.230.0180.00314.57
5.5.220.0180.00314.56
5.5.210.0160.01114.45
5.5.200.0230.00014.39
5.5.190.0190.00814.55
5.5.180.0170.01014.12
5.5.170.0070.01514.36
5.5.160.0190.00414.48
5.5.150.0050.02114.35
5.5.140.0140.01414.59
5.5.130.0090.01514.63
5.5.120.0070.02114.41
5.5.110.0100.01414.29
5.5.100.0220.00714.14
5.5.90.0270.00714.35
5.5.80.0120.00814.34
5.5.70.0130.00714.36
5.5.60.0180.00314.34
5.5.50.0170.00714.62
5.5.40.0170.00814.29
5.5.30.0160.00914.23
5.5.20.0150.00914.12
5.5.10.0210.00814.22
5.5.00.0150.01114.23
5.4.450.0100.00512.70
5.4.440.0080.00812.70
5.4.430.0090.00912.70
5.4.420.0100.00612.70
5.4.410.0060.01212.70
5.4.400.0090.00912.70
5.4.390.0110.00312.70
5.4.380.0070.01412.70
5.4.370.0100.01012.70
5.4.360.0170.00012.70
5.4.350.0100.00512.70
5.4.340.0100.00912.70
5.4.330.0190.00012.70
5.4.320.0060.01312.70
5.4.310.0120.00312.70
5.4.300.0210.00012.70
5.4.290.0150.00312.70
5.4.280.0080.01012.70
5.4.270.0140.00712.70
5.4.260.0130.00312.70
5.4.250.0130.00612.70
5.4.240.0130.00312.70
5.4.230.0150.00312.70
5.4.220.0160.00612.70
5.4.210.0120.00812.70
5.4.200.0110.00712.70
5.4.190.0150.00212.70
5.4.180.0120.00712.70
5.4.170.0070.00712.70
5.4.160.0070.00712.70
5.4.150.0140.00312.70
5.4.140.0110.00412.70
5.4.130.0070.00712.70
5.4.120.0140.00012.70
5.4.110.0100.00412.70
5.4.100.0040.01112.70
5.4.90.0150.00012.70
5.4.80.0190.00012.70
5.4.70.0140.00012.70
5.4.60.0090.00712.70
5.4.50.0080.00812.70
5.4.40.0140.00412.70
5.4.30.0080.00812.70
5.4.20.0130.00412.70
5.4.10.0120.00912.70
5.4.00.0120.00312.70
5.3.290.0120.00612.70
5.3.280.0050.00612.70
5.3.270.0110.00512.70
5.3.260.0150.00012.70
5.3.250.0140.00212.70
5.3.240.0130.00012.70
5.3.230.0130.00012.70
5.3.220.0160.00012.70
5.3.210.0140.00012.70
5.3.200.0150.00312.70
5.3.190.0120.00312.70
5.3.180.0100.00512.70
5.3.170.0100.00212.70
5.3.160.0120.00312.70
5.3.150.0100.00612.70
5.3.140.0150.00212.70
5.3.130.0100.00612.70
5.3.120.0160.00012.70
5.3.110.0140.00312.70
5.3.100.0070.00712.70
5.3.90.0080.00512.70
5.3.80.0060.00612.70
5.3.70.0030.01012.70
5.3.60.0100.00312.70
5.3.50.0060.00612.70
5.3.40.0080.00412.70
5.3.30.0040.00912.70
5.3.20.0100.00512.70
5.3.10.0140.00012.70
5.3.00.0030.00912.70
5.2.170.0150.00012.70
5.2.160.0080.00412.70
5.2.150.0070.00512.70
5.2.140.0090.00212.70
5.2.130.0080.00412.70
5.2.120.0060.00612.70
5.2.110.0050.00712.70
5.2.100.0000.01112.70
5.2.90.0080.00412.70
5.2.80.0060.00712.70
5.2.70.0060.00612.70
5.2.60.0070.00712.70
5.2.50.0100.00312.70
5.2.40.0040.00612.70
5.2.30.0100.00312.70
5.2.20.0060.00612.70
5.2.10.0080.00412.70
5.2.00.0070.00712.70
5.1.60.0070.00312.70
5.1.50.0110.00012.70
5.1.40.0070.00712.70
5.1.30.0130.00312.70
5.1.20.0110.00212.70
5.1.10.0090.00012.70
5.1.00.0070.00512.70
5.0.50.0100.00012.70
5.0.40.0090.00612.70
5.0.30.0030.00512.70
5.0.20.0090.00012.70
5.0.10.0090.00012.70
5.0.00.0060.00312.70
4.4.90.0040.00412.70
4.4.80.0040.00412.70
4.4.70.0000.00812.70
4.4.60.0040.00412.70
4.4.50.0080.00012.70
4.4.40.0000.00912.70
4.4.30.0060.00312.70
4.4.20.0070.00412.70
4.4.10.0040.00412.70
4.4.00.0050.00612.70
4.3.110.0050.00212.70
4.3.100.0080.00012.70
4.3.90.0020.00612.70
4.3.80.0080.00012.70
4.3.70.0050.00312.70
4.3.60.0030.00312.70
4.3.50.0020.00512.70
4.3.40.0050.00212.70
4.3.30.0030.00312.70
4.3.20.0040.00412.70
4.3.10.0060.00012.70
4.3.00.0060.00012.70