3v4l.org

run code in 300+ PHP versions simultaneously
<?php $taxonomies = [ 'genres' => [ 'label' => 'Genres', 'value' => 'genres' ], 'somethingelse' => [ 'label' => 'foo', 'value' => 'bar' ], 'movie_tags' => [ 'label' => 'Movie Tags', 'value' => 'movie_tags' ], 'portfolio_category' => [ 'label' => 'Portfolio Categories', 'value' => 'portfolio_category' ] ]; $postTypes = [ 'movies' => ['genres', 'movie_tags'], 'portfolio' => ['portfolio_category'], ]; $result = []; foreach ($postTypes as $group => $taxKeys) { $result[$group] = array_values( array_intersect_key( $taxonomies, array_flip($taxKeys) ) ); } var_export($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.4.120.0120.00724.33
8.4.110.0130.00822.39
8.4.100.0120.00724.14
8.4.90.0110.00918.63
8.4.80.0140.00619.41
8.4.70.0120.00718.02
8.4.60.0130.00720.41
8.4.50.0120.00818.71
8.4.40.0060.01017.41
8.4.30.0110.00820.32
8.4.20.0120.00819.51
8.4.10.0090.00019.04
8.3.250.0110.00718.87
8.3.240.0040.00517.11
8.3.230.0050.00416.82
8.3.220.0050.00217.30
8.3.210.0050.00318.31
8.3.200.0030.00616.59
8.3.190.0120.00417.19
8.3.180.0110.00816.61
8.3.170.0070.01118.97
8.3.160.0140.00416.66
8.3.150.0160.00318.48
8.3.140.0140.00416.40
8.3.130.0080.00018.50
8.3.120.0060.00318.90
8.3.110.0130.00320.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0060.00316.38
8.3.70.0070.00716.75
8.3.60.0110.00316.50
8.3.50.0110.00419.94
8.3.40.0070.00718.51
8.3.30.0110.00418.73
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.290.0100.00920.35
8.2.280.0060.00318.54
8.2.270.0110.00718.91
8.2.260.0120.00616.50
8.2.250.0040.00418.44
8.2.240.0100.01016.73
8.2.230.0040.00422.58
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0170.00316.63
8.2.180.0120.00625.92
8.2.170.0070.00718.88
8.2.160.0040.01122.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.66
8.2.110.0030.00621.13
8.2.100.0080.00417.97
8.2.90.0050.00318.34
8.2.80.0000.00820.48
8.2.70.0030.00617.50
8.2.60.0050.00317.63
8.2.50.0040.00417.63
8.2.40.0040.00417.75
8.2.30.0040.00417.79
8.2.20.0070.00019.35
8.2.10.0000.00917.75
8.2.00.0090.00319.41
8.1.330.0100.00821.61
8.1.320.0090.01016.43
8.1.310.0110.00718.38
8.1.300.0070.00318.11
8.1.290.0030.00618.88
8.1.280.0120.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.06
8.1.230.0040.00820.93
8.1.220.0040.00417.79
8.1.210.0040.00419.02
8.1.200.0040.00417.35
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0030.00517.62
8.1.160.0020.00518.89
8.1.150.0000.00718.64
8.1.140.0040.00417.46
8.1.130.0000.00718.80
8.1.120.0000.00817.43
8.1.110.0040.00417.38
8.1.100.0080.00017.48
8.1.90.0000.00717.34
8.1.80.0100.00017.39
8.1.70.0000.00817.52
8.1.60.0040.00417.51
8.1.50.0050.00317.49
8.1.40.0040.00417.55
8.1.30.0050.00317.66
8.1.20.0050.00317.58
8.1.10.0080.00017.41
8.1.00.0000.00917.31
8.0.300.0070.00020.07
8.0.290.0050.00216.63
8.0.280.0030.00317.92
8.0.270.0080.00016.79
8.0.260.0030.00318.41
8.0.250.0000.00716.97
8.0.240.0030.00316.93
8.0.230.0030.00316.83
8.0.220.0040.00416.83
8.0.210.0000.00816.88
8.0.200.0030.00316.91
8.0.190.0040.00416.98
8.0.180.0090.00016.90
8.0.170.0050.00316.95
8.0.160.0000.00716.82
8.0.150.0030.00516.84
8.0.140.0030.00316.85
8.0.130.0000.00613.30
8.0.120.0110.00013.31
8.0.110.0070.00713.31
8.0.100.0000.01313.30
8.0.90.0060.00613.30
8.0.80.0040.00713.34
8.0.70.0050.00513.27
8.0.60.0080.00413.27
8.0.50.0070.00413.30
8.0.30.0100.00213.34
8.0.20.0100.00313.30
8.0.10.0090.00313.42
8.0.00.0040.00413.37
7.4.330.0040.00015.55
7.4.320.0030.00316.46
7.4.300.0040.00416.51
7.4.290.0040.00416.61
7.4.280.0040.00416.46
7.4.270.0070.00016.61
7.4.260.0050.00013.32
7.4.250.0000.00713.36
7.4.240.0120.00313.27
7.4.230.0120.00413.35
7.4.220.0130.00013.19
7.4.210.0120.00013.30
7.4.200.0060.00713.15
7.4.190.0100.00313.36
7.4.180.0080.00413.25
7.4.160.0100.00313.34
7.4.150.0130.00013.36
7.4.140.0060.00713.25
7.4.130.0080.00513.16
7.4.120.0110.00413.15
7.4.110.0090.00313.22
7.4.100.0100.00313.29
7.4.90.0080.00413.30
7.4.80.0060.00613.20
7.4.70.0130.00013.16
7.4.60.0060.00613.15
7.4.50.0130.00013.20
7.4.40.0090.00313.21
7.4.30.0090.00313.14
7.4.20.0070.00513.14
7.4.10.0130.00013.33
7.4.00.0130.00013.15
7.3.330.0000.00716.38
7.3.320.0090.00213.19
7.3.310.0000.00913.18
7.3.300.0100.00313.18
7.3.290.0100.00013.07
7.3.280.0060.00613.09
7.3.270.0080.00213.10
7.3.260.0110.00313.16
7.3.250.0090.00413.19
7.3.240.0070.00413.27
7.3.230.0100.00313.12
7.3.220.0060.00613.15
7.3.210.0110.00313.16
7.3.200.0140.00013.00
7.3.190.0120.00013.18
7.3.180.0130.00013.09
7.3.170.0070.00713.19
7.3.160.0080.00412.97
7.3.150.0100.00313.19
7.3.140.0090.00213.18
7.3.130.0120.00013.14
7.3.120.0060.00613.00
7.3.110.0110.00312.92
7.3.100.0140.00012.95
7.3.90.0030.01013.45
7.3.80.0070.00713.11
7.3.70.0100.00313.23
7.3.60.0100.00313.31
7.3.50.0100.00313.21
7.3.40.0100.00213.26
7.3.30.0100.00313.21
7.3.20.0100.00415.02
7.3.10.0130.00015.05
7.3.00.0140.00015.05

preferences:
27.74 ms | 403 KiB | 5 Q