3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('james','Brandun','test'), array('james0','Brandun0','test0'), array('james1','Brandun1','test1') ); function display(array $array, $position){ foreach ($array as $subArray) { $anotherArray[] = $subArray[$position]; } } print_r(display($array,0)); ?>

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.0160.00616.75
8.3.50.0070.00718.21
8.3.40.0170.00318.84
8.3.30.0060.00919.05
8.3.20.0080.00020.25
8.3.10.0040.00421.85
8.3.00.0000.00820.77
8.2.180.0100.01016.38
8.2.170.0110.00422.96
8.2.160.0140.00022.10
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00519.83
8.2.110.0090.00020.88
8.2.100.0060.00617.63
8.2.90.0040.00419.30
8.2.80.0050.00317.97
8.2.70.0030.00517.50
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0050.00218.16
8.2.30.0000.00818.09
8.2.20.0000.00817.75
8.2.10.0040.00418.09
8.2.00.0040.00417.64
8.1.280.0100.01025.92
8.1.270.0060.00319.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.97
8.1.230.0070.00418.97
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0030.00717.35
8.1.180.0070.00018.10
8.1.170.0040.00420.44
8.1.160.0000.00722.06
8.1.150.0000.00718.94
8.1.140.0040.00417.46
8.1.130.0070.00017.83
8.1.120.0030.00317.47
8.1.110.0000.00717.53
8.1.100.0000.00717.34
8.1.90.0080.00017.36
8.1.80.0030.00617.47
8.1.70.0030.00617.47
8.1.60.0040.00417.43
8.1.50.0090.00017.43
8.1.40.0000.00917.48
8.1.30.0030.00517.70
8.1.20.0060.00317.58
8.1.10.0000.00817.50
8.1.00.0000.00717.43
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0030.00317.27
8.0.260.0000.00617.18
8.0.250.0040.00416.89
8.0.240.0000.00716.93
8.0.230.0000.00716.89
8.0.220.0000.00716.91
8.0.210.0070.00016.89
8.0.200.0030.00316.88
8.0.190.0030.00316.93
8.0.180.0050.00316.97
8.0.170.0040.00416.96
8.0.160.0070.00016.92
8.0.150.0000.00716.88
8.0.140.0080.00016.86
8.0.130.0030.00313.36
8.0.120.0040.00416.89
8.0.110.0070.00016.79
8.0.100.0080.00016.71
8.0.90.0040.00416.93
8.0.80.0060.01516.95
8.0.70.0040.00416.81
8.0.60.0050.00316.90
8.0.50.0000.00716.79
8.0.30.0130.00517.01
8.0.20.0130.01017.40
8.0.10.0000.00716.90
8.0.00.0070.00916.66
7.4.330.0000.00515.03
7.4.320.0060.00016.56
7.4.300.0030.00316.41
7.4.290.0090.00016.59
7.4.280.0000.01016.61
7.4.270.0030.00316.44
7.4.260.0060.00316.53
7.4.250.0000.00716.43
7.4.240.0030.00516.54
7.4.230.0040.00416.71
7.4.220.0130.00416.46
7.4.210.0110.00316.54
7.4.200.0030.00316.27
7.4.160.0090.00616.29
7.4.150.0120.00917.40
7.4.140.0150.00617.86
7.4.130.0090.00916.40
7.4.120.0070.01016.65
7.4.110.0000.02216.63
7.4.100.0140.00316.50
7.4.90.0140.00316.42
7.4.80.0090.00919.39
7.4.70.0120.00916.47
7.4.60.0150.00916.41
7.4.50.0030.00616.63
7.4.40.0100.00616.46
7.4.30.0140.00316.30
7.4.00.0090.00614.82
7.3.330.0050.00013.34
7.3.320.0000.00513.18
7.3.310.0070.00016.32
7.3.300.0030.00316.36
7.3.290.0110.00716.30
7.3.280.0110.00716.31
7.3.270.0140.00317.40
7.3.260.0070.01116.45
7.3.250.0090.00916.46
7.3.240.0040.01316.53
7.3.230.0140.00916.52
7.3.210.0090.00916.64
7.3.200.0120.01219.39
7.3.190.0110.00516.73
7.3.180.0060.01316.25
7.3.170.0130.01016.27
7.3.160.0110.01116.22
7.3.10.0100.00316.55
7.3.00.0070.00716.77
7.2.330.0090.00916.47
7.2.320.0070.01716.76
7.2.310.0090.00916.64
7.2.300.0100.00616.66
7.2.290.0090.01316.54
7.2.130.0070.00716.88
7.2.120.0060.01016.80
7.2.110.0060.00316.83
7.2.100.0030.00616.59
7.2.90.0080.00816.92
7.2.80.0050.01116.82
7.2.70.0150.00616.93
7.2.60.0040.00816.89
7.2.50.0080.00417.07
7.2.40.0100.00316.90
7.2.30.0100.00717.04
7.2.20.0070.00817.02
7.2.10.0070.00716.77
7.2.00.0020.01118.13
7.1.250.0110.00415.66
7.1.100.0030.01218.14
7.1.70.0000.00717.27
7.1.60.0100.01319.46
7.1.50.0130.01016.77
7.1.00.0000.08022.45
7.0.200.0620.01014.38
7.0.140.0070.06021.96
7.0.60.0000.04719.79
7.0.50.0070.08017.91
7.0.40.0130.08020.19
7.0.30.0170.09020.07
7.0.20.0270.03720.21
7.0.10.0100.08320.07
7.0.00.0000.06720.02
5.6.280.0000.07720.78
5.6.210.0100.03320.47
5.6.200.0070.08018.16
5.6.190.0070.04320.42
5.6.180.0500.07320.61
5.6.170.0170.04020.63
5.6.160.0070.08320.39
5.6.150.0030.04018.20
5.6.140.0030.07318.18
5.6.130.0070.08018.18
5.6.120.0030.07721.02
5.6.110.0270.06321.09
5.6.100.0100.06721.00
5.6.90.0100.06320.96
5.6.80.0030.04020.49
5.5.350.0330.07320.30
5.5.340.0000.04018.09
5.5.330.0070.07720.29
5.5.320.0070.06720.34
5.5.310.0230.08320.30
5.5.300.0100.07317.96
5.5.290.0100.08018.08
5.5.280.0070.06020.98
5.5.270.0070.04720.63
5.5.260.0100.08020.65
5.5.250.0030.04020.79
5.5.240.0070.08720.27
5.4.450.0230.05319.48
5.4.440.1200.06719.65
5.4.430.0900.05019.60
5.4.420.0800.05019.19
5.4.410.1130.07319.18
5.4.400.1000.05318.76
5.4.390.0900.05718.48
5.4.380.1000.05018.77
5.4.370.0970.06018.84
5.4.360.1030.06318.52
5.4.350.0900.05318.84
5.4.340.0900.06018.70
5.4.320.0870.06318.63
5.4.310.0900.05718.46
5.4.300.1070.04318.79
5.4.290.0930.04718.75
5.4.280.1030.05718.63
5.4.270.0930.06318.58
5.4.260.0930.05718.74
5.4.250.0930.05018.78
5.4.240.1100.05018.77
5.4.230.0900.04718.63
5.4.220.0830.06018.68
5.4.210.0870.05018.68
5.4.200.0870.04316.62
5.4.190.0970.04718.73
5.4.180.0930.05318.71
5.4.170.1030.05018.56
5.4.160.0930.06718.45
5.4.150.1030.05318.76
5.4.140.0930.05716.30
5.4.130.0930.04716.41
5.4.120.1170.07316.29
5.4.110.0970.05016.32
5.4.100.1000.04716.26
5.4.90.0970.04316.23
5.4.80.0770.06316.17
5.4.70.1000.04016.26
5.4.60.0970.04316.31
5.4.50.1000.04316.18
5.4.40.0900.04316.22
5.4.30.0770.05316.25
5.4.20.0900.05016.21
5.4.10.0870.04316.39
5.4.00.0670.05715.89
5.3.290.0800.05714.87
5.3.280.0900.06014.66
5.3.270.0800.05314.70
5.3.260.0870.05314.73
5.3.250.0870.05314.64
5.3.240.1030.04714.77
5.3.230.0970.05014.70
5.3.220.0900.05314.55
5.3.210.0970.05714.70
5.3.200.0900.04314.59
5.3.190.0700.06714.66
5.3.180.1000.04314.72
5.3.170.0970.04714.54
5.3.160.0770.05314.59
5.3.150.0930.05314.59
5.3.140.0930.04714.60
5.3.130.0900.06714.72
5.3.120.0170.05314.60
5.3.110.0030.06014.53
5.3.100.0200.04314.08
5.3.90.0470.05014.12
5.3.80.0900.05014.14
5.3.70.1030.04714.08
5.3.60.0900.05014.13
5.3.50.0970.04713.99
5.3.40.0970.04714.17
5.3.30.0900.05013.91
5.3.20.0900.05313.82
5.3.10.0930.04713.71
5.3.00.0830.04313.62
5.2.170.0770.03311.13
5.2.160.0630.04011.13
5.2.150.0700.04311.20
5.2.140.0630.04711.17
5.2.130.0670.03711.22
5.2.120.0570.05011.23
5.2.110.0670.04311.23
5.2.100.0600.04711.16
5.2.90.0670.04011.23
5.2.80.0730.05011.14
5.2.70.0630.04311.15
5.2.60.0700.04011.18
5.2.50.0670.04311.02
5.2.40.0570.03711.04
5.2.30.0730.03711.03
5.2.20.0700.04310.93
5.2.10.0600.04010.87
5.2.00.0600.04710.80
5.1.60.0630.02710.12
5.1.50.0600.03310.06
5.1.40.0630.03010.05
5.1.30.0500.04310.35
5.1.20.0530.03710.56
5.1.10.0600.03310.19
5.1.00.0700.02710.20
5.0.50.0300.0308.68
5.0.40.0400.0208.60
5.0.30.0330.0438.36
5.0.20.0270.0308.20
5.0.10.0270.0308.26
5.0.00.0300.0438.18
4.4.90.0300.0236.77
4.4.80.0330.0236.77
4.4.70.0300.0236.77
4.4.60.0270.0236.77
4.4.50.0300.0206.77
4.4.40.0330.0336.77
4.4.30.0300.0236.77
4.4.20.0330.0236.77
4.4.10.0300.0236.77
4.4.00.0370.0306.77
4.3.110.0330.0206.77
4.3.100.0270.0236.77
4.3.90.0270.0276.77
4.3.80.0300.0376.77
4.3.70.0300.0306.77
4.3.60.0300.0336.77
4.3.50.0270.0376.77
4.3.40.0330.0306.77
4.3.30.0130.0236.77
4.3.20.0130.0236.77
4.3.10.0170.0236.77
4.3.00.0200.01314.52

preferences:
41.63 ms | 400 KiB | 5 Q