3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array( array( 'tag_name' => 'google' ), array( 'tag_name' => 'technology' ) ); $str; foreach ($input as $arr) { $str .= $arr["tag_name"] . ","; } //$ids = array_column($input, 'tag_name'); //$output = implode(',', $ids); echo $str;

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.3.60.0130.00718.43
8.3.50.0140.00622.12
8.3.40.0170.00318.96
8.3.30.0140.00019.26
8.3.20.0040.00420.16
8.3.10.0090.00021.90
8.3.00.0030.00519.50
8.2.180.0100.01018.66
8.2.170.0110.00718.76
8.2.160.0100.00722.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0040.00419.48
8.2.110.0050.00520.52
8.2.100.0070.00417.97
8.2.90.0070.00019.21
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0040.00420.07
8.2.30.0050.00218.17
8.2.20.0050.00317.73
8.2.10.0060.00318.03
8.2.00.0050.00317.81
8.1.280.0070.00725.92
8.1.270.0060.00319.05
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0120.00023.83
8.1.230.0000.01120.91
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00520.29
8.1.160.0040.00421.97
8.1.150.0070.00018.80
8.1.140.0030.00517.54
8.1.130.0000.00717.79
8.1.120.0090.00017.38
8.1.110.0040.00417.48
8.1.100.0000.00717.45
8.1.90.0040.00417.41
8.1.80.0000.00717.33
8.1.70.0000.00717.34
8.1.60.0000.00817.47
8.1.50.0040.00417.55
8.1.40.0040.00417.53
8.1.30.0000.00817.70
8.1.20.0020.00517.57
8.1.10.0060.00317.41
8.1.00.0040.00417.37
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.32
8.0.270.0000.00717.13
8.0.260.0030.00318.43
8.0.250.0050.00317.02
8.0.240.0000.00816.91
8.0.230.0000.00717.04
8.0.220.0000.00716.92
8.0.210.0070.00016.96
8.0.200.0030.00316.98
8.0.190.0120.00016.85
8.0.180.0070.00017.01
8.0.170.0030.00517.02
8.0.160.0080.00016.93
8.0.150.0030.00316.84
8.0.140.0050.00316.96
8.0.130.0060.00013.32
8.0.120.0030.00516.80
8.0.110.0050.00316.97
8.0.100.0040.00416.97
8.0.90.0040.00416.78
8.0.80.0110.01116.85
8.0.70.0050.00216.79
8.0.60.0080.00016.82
8.0.50.0030.00516.81
8.0.30.0140.01117.20
8.0.20.0090.00917.40
8.0.10.0000.00716.93
8.0.00.0120.00516.89
7.4.330.0030.00315.03
7.4.320.0030.00316.43
7.4.300.0000.00616.57
7.4.290.0040.00416.59
7.4.280.0060.00316.61
7.4.270.0030.00316.52
7.4.260.0030.00616.52
7.4.250.0000.00816.48
7.4.240.0030.00416.49
7.4.230.0020.00516.50
7.4.220.0120.00616.46
7.4.210.0060.00916.64
7.4.200.0030.00316.45
7.4.160.0150.00416.66
7.4.150.0140.00317.40
7.4.140.0080.01017.86
7.4.130.0080.01016.56
7.4.120.0050.01316.52
7.4.110.0120.00616.43
7.4.100.0150.00916.61
7.4.90.0090.00916.59
7.4.80.0150.00819.39
7.4.70.0040.01216.43
7.4.60.0100.00616.51
7.4.50.0000.00716.39
7.4.40.0120.00316.67
7.4.30.0060.01016.49
7.4.00.0040.01114.90
7.3.330.0000.00713.38
7.3.320.0150.00013.18
7.3.310.0000.00716.23
7.3.300.0030.00316.42
7.3.290.0120.00316.34
7.3.280.0050.01216.34
7.3.270.0110.01317.40
7.3.260.0070.01116.50
7.3.250.0130.00416.40
7.3.240.0080.01116.54
7.3.230.0130.00716.46
7.3.210.0100.00716.45
7.3.200.0100.01019.39
7.3.190.0030.01416.43
7.3.180.0100.00616.34
7.3.170.0070.01016.37
7.3.160.0160.00616.39
7.2.330.0070.01116.70
7.2.320.0080.01016.54
7.2.310.0070.01016.40
7.2.300.0140.00316.63
7.2.290.0030.01316.66
7.2.00.0030.01019.09
7.1.200.0040.00415.59
7.1.100.0030.00718.24
7.1.70.0040.01217.33
7.1.60.0100.01017.20
7.1.50.0000.02316.72
7.1.00.0070.07322.54
7.0.200.0030.01316.51
7.0.140.0030.07022.00
7.0.60.0170.05019.94
7.0.50.0100.07717.77
7.0.40.0070.08719.96
7.0.30.0230.03720.13
7.0.20.0330.04020.16
7.0.10.0200.05320.02
7.0.00.0030.09020.00
5.6.280.0070.07021.02
5.6.210.0030.08720.69
5.6.200.0100.05718.15
5.6.190.0070.06320.64
5.6.180.0230.05320.40
5.6.170.0270.05020.39
5.6.160.0000.09320.61
5.6.150.0100.07718.18
5.6.140.0100.05318.11
5.6.130.0070.04018.18
5.6.120.0030.07020.95
5.6.110.0100.08021.02
5.6.100.0070.08021.02
5.6.90.0130.07720.95
5.6.80.0070.07020.25
5.6.70.0230.07020.38
5.5.350.0230.06020.38
5.5.340.0070.05018.02
5.5.330.0100.05020.19
5.5.320.0000.04320.20
5.5.310.0330.07720.23
5.5.300.0170.07717.98
5.5.290.0030.07018.00
5.5.280.0070.07720.89
5.5.270.0130.06320.84
5.5.260.0100.07020.86
5.5.250.0130.05020.61
5.5.240.0070.04320.07
5.4.450.0300.05719.25
5.4.440.0970.06319.54
5.4.430.0830.05719.51
5.4.420.1070.04719.47
5.4.410.0100.08018.87
5.4.400.0370.05018.75
5.4.390.0400.04318.65
5.4.380.0330.05318.55
5.4.370.0470.06718.65
5.4.360.0400.04718.49
5.4.350.0330.05318.61
5.4.340.0530.04018.50
5.4.320.0330.05318.75
5.4.310.0370.04718.56
5.4.300.0300.05318.49
5.4.290.0370.05318.50
5.4.280.0370.05318.70
5.4.270.0400.05018.70
5.4.260.0330.05318.69
5.4.250.0430.04018.55
5.4.240.0170.06718.64
5.4.230.0400.04718.57
5.4.220.0430.04318.74
5.4.210.0470.05318.48
5.4.200.0300.05316.58
5.4.190.0370.04718.64
5.4.180.0370.04718.57
5.4.170.0370.05018.48
5.4.160.0400.05018.48
5.4.150.0370.05018.58
5.4.140.0300.05716.13
5.4.130.0470.03716.25
5.4.120.0470.03716.25
5.4.110.0370.05016.34
5.4.100.0270.05316.06
5.4.90.0270.05716.01
5.4.80.0400.05316.29
5.4.70.0330.05316.07
5.4.60.0330.05016.25
5.4.50.0330.05016.16
5.4.40.0330.05316.31
5.4.30.0330.05016.21
5.4.20.0230.06316.30
5.4.10.0300.05316.21
5.4.00.0300.05015.62
5.3.290.0300.06014.61
5.3.280.0300.06014.68
5.3.270.0370.07014.57
5.3.260.0370.07014.57
5.3.250.0400.07314.62
5.3.240.0470.06714.58
5.3.230.0370.07314.67
5.3.220.0470.06714.50
5.3.210.0430.05014.53
5.3.200.0200.06314.55
5.3.190.0470.05014.57
5.3.180.0330.05714.55
5.3.170.0400.05014.54
5.3.160.0200.06714.53
5.3.150.0370.05714.53
5.3.140.0430.04014.55
5.3.130.0370.05314.55
5.3.120.0330.05714.52
5.3.110.0400.06714.53
5.3.100.0470.06014.13
5.3.90.0530.05714.11
5.3.80.0570.05014.00
5.3.70.0330.06714.09
5.3.60.0430.06313.96
5.3.50.0430.05013.86
5.3.40.0430.04714.03
5.3.30.0470.04313.89
5.3.20.0370.05013.72
5.3.10.0330.06013.64
5.3.00.0370.05313.71
5.2.170.0330.04011.20
5.2.160.0270.06011.09
5.2.150.0300.06311.20
5.2.140.0370.05011.12
5.2.130.0230.04711.25
5.2.120.0300.04311.05
5.2.110.0230.04711.25
5.2.100.0270.04311.01
5.2.90.0300.04011.02
5.2.80.0230.04711.14
5.2.70.0270.04711.08
5.2.60.0270.04710.99
5.2.50.0300.04011.00
5.2.40.0230.04711.13
5.2.30.0170.05011.02
5.2.20.0170.05010.99
5.2.10.0270.03710.82
5.2.00.0230.04010.69
5.1.60.0200.0439.98
5.1.50.0130.04310.11
5.1.40.0170.0379.93
5.1.30.0130.04310.30
5.1.20.0170.04010.39
5.1.10.0270.03710.04
5.1.00.0370.03710.18
5.0.50.0130.0308.61
5.0.40.0100.0308.44
5.0.30.0100.0478.29
5.0.20.0170.0278.21
5.0.10.0100.0308.20
5.0.00.0100.0438.15
4.4.90.0030.0275.83
4.4.80.0070.0235.91
4.4.70.0070.0275.91
4.4.60.0100.0235.86
4.4.50.0200.0175.86
4.4.40.0170.0305.95
4.4.30.0100.0235.86
4.4.20.0100.0205.95
4.4.10.0070.0205.96
4.4.00.0070.0335.92
4.3.110.0030.0235.88
4.3.100.0030.0235.79
4.3.90.0030.0205.79
4.3.80.0000.0375.89
4.3.70.0030.0305.84
4.3.60.0000.0305.89
4.3.50.0030.0275.80
4.3.40.0070.0335.78
4.3.30.0300.0204.68
4.3.20.0330.0204.64
4.3.10.0200.0304.48
4.3.00.0070.0276.82

preferences:
81.24 ms | 401 KiB | 5 Q