3v4l.org

run code in 300+ PHP versions simultaneously
<?php $table_array = array(); $result = array('hi', 'hello', 'there'); $x = array_walk($result, function(&$row, $table_array) { printf('%s ', $row); $index = &$row; $table_array[$index] = array(); }); print_r($x);

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.0090.01218.43
8.3.50.0170.00521.09
8.3.40.0070.00718.69
8.3.30.0070.00719.04
8.3.20.0020.00520.39
8.3.10.0000.00822.09
8.3.00.0050.00220.82
8.2.180.0080.01116.63
8.2.170.0140.00322.96
8.2.160.0070.00719.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00719.77
8.2.110.0060.00322.24
8.2.100.0050.00519.31
8.2.90.0050.00319.07
8.2.80.0060.00319.21
8.2.70.0050.00317.63
8.2.60.0040.00817.89
8.2.50.0040.00518.07
8.2.40.0000.00818.09
8.2.30.0000.00718.04
8.2.20.0000.00717.60
8.2.10.0000.00817.79
8.2.00.0060.00317.91
8.1.280.0110.00325.92
8.1.270.0000.00718.48
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.80
8.1.230.0070.00419.14
8.1.220.0000.00817.80
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0000.00917.52
8.1.180.0030.00618.68
8.1.170.0050.00318.69
8.1.160.0000.00822.07
8.1.150.0030.00518.55
8.1.140.0030.00517.45
8.1.130.0080.00017.82
8.1.120.0040.00417.47
8.1.110.0040.00417.49
8.1.100.0000.00717.44
8.1.90.0080.00017.46
8.1.80.0040.00417.50
8.1.70.0030.00317.39
8.1.60.0030.00617.58
8.1.50.0000.00817.50
8.1.40.0030.00617.39
8.1.30.0060.00317.61
8.1.20.0000.00717.60
8.1.10.0040.00417.60
8.1.00.0050.00217.48
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0030.00318.45
8.0.270.0030.00317.20
8.0.260.0030.00316.77
8.0.250.0030.00316.85
8.0.240.0030.00616.96
8.0.230.0000.00716.84
8.0.220.0050.00216.86
8.0.210.0000.00716.79
8.0.200.0000.00717.04
8.0.190.0060.00317.04
8.0.180.0040.00416.98
8.0.170.0040.00416.95
8.0.160.0040.00417.00
8.0.150.0000.00816.94
8.0.140.0000.00716.95
8.0.130.0000.00513.37
8.0.120.0000.00716.84
8.0.110.0050.00217.00
8.0.100.0000.00716.91
8.0.90.0000.00716.79
8.0.80.0030.01217.00
8.0.70.0070.00016.90
8.0.60.0060.00316.77
8.0.50.0020.00516.91
8.0.30.0080.01317.09
8.0.20.0080.01017.40
8.0.10.0040.00417.01
8.0.00.0090.00916.75
7.4.330.0040.00015.00
7.4.320.0030.00316.47
7.4.300.0000.00716.50
7.4.290.0000.00916.38
7.4.280.0040.00416.53
7.4.270.0030.00316.64
7.4.260.0000.00816.44
7.4.250.0040.00416.46
7.4.240.0020.00516.46
7.4.230.0000.00616.32
7.4.220.0100.00716.68
7.4.210.0070.00916.54
7.4.200.0000.00716.35
7.4.190.0050.00316.46
7.4.160.0090.00916.56
7.4.150.0170.00017.40
7.4.140.0150.00617.86
7.4.130.0070.01616.48
7.4.120.0080.00916.53
7.4.110.0120.00416.35
7.4.100.0070.01516.34
7.4.90.0100.00716.45
7.4.80.0190.00419.39
7.4.70.0130.00316.52
7.4.60.0070.01316.41
7.4.50.0090.00016.32
7.4.40.0070.01122.77
7.4.30.0110.00716.56
7.4.00.0030.01215.07
7.3.330.0050.00013.29
7.3.320.0050.00013.18
7.3.310.0000.00816.43
7.3.300.0000.00716.38
7.3.290.0080.00816.39
7.3.280.0080.00916.37
7.3.270.0060.01117.40
7.3.260.0130.00816.24
7.3.250.0090.00716.33
7.3.240.0000.01916.67
7.3.230.0070.01416.60
7.3.210.0150.00916.41
7.3.200.0140.00819.39
7.3.190.0130.01016.41
7.3.180.0140.00316.45
7.3.170.0060.01016.35
7.3.160.0100.00616.66
7.3.120.0070.01014.98
7.2.330.0160.00316.73
7.2.320.0060.01616.44
7.2.310.0060.01016.65
7.2.300.0190.00316.27
7.2.290.0060.01216.74
7.2.00.0060.00619.34
7.1.100.0000.00817.83
7.1.70.0030.00617.14
7.1.60.0110.01419.82
7.1.50.0130.01016.86
7.1.00.0030.06722.54
7.0.200.0070.00316.88
7.0.140.0030.07322.06
7.0.60.0070.05319.91
7.0.50.0070.05317.93
7.0.40.0030.06020.18
7.0.30.0270.05320.21
7.0.20.0230.03720.23
7.0.10.0070.06720.16
7.0.00.0230.05720.33
5.6.280.0070.07021.13
5.6.210.0130.06020.57
5.6.200.0070.08018.29
5.6.190.0030.06720.64
5.6.180.0530.06720.39
5.6.170.0300.07320.40
5.6.160.0170.07320.43
5.6.150.0100.07718.16
5.6.140.0030.08018.14
5.6.130.0000.06018.16
5.6.120.0100.07720.97
5.6.110.0070.04021.01
5.6.100.0100.08320.98
5.6.90.0100.06321.07
5.6.80.0130.07720.54
5.5.350.0200.08320.50
5.5.340.0070.04717.96
5.5.330.0130.07720.35
5.5.320.3730.03320.24
5.5.310.0370.06020.42
5.5.300.0070.05017.94
5.5.290.0100.08017.95
5.5.280.0100.08020.66
5.5.270.0070.05720.96
5.5.260.0030.08720.65
5.5.250.0100.07720.56
5.5.240.0070.07320.24
5.4.450.0070.08019.28
5.4.440.0130.07019.53
5.4.430.0070.07319.45
5.4.420.0030.06019.54
5.4.410.0100.06719.16
5.4.400.0100.03719.27
5.4.390.0030.05719.22
5.4.380.0100.03019.22
5.4.370.0000.05719.07
5.4.360.0030.06019.14
5.4.350.0070.04718.82
5.4.340.0100.06319.16
5.4.320.0000.06719.08
5.4.310.0070.03719.08
5.4.300.0030.05319.21
5.4.290.0000.08719.24
5.4.280.0000.08019.22
5.4.270.0100.07319.24
5.4.260.0070.05318.99
5.4.250.0070.07319.23
5.4.240.0030.06719.15
5.4.230.0030.07019.10
5.4.220.0030.07719.06
5.4.210.0030.07719.14
5.4.200.0130.05319.18
5.4.190.0000.04019.08
5.4.180.0070.05719.17
5.4.170.0070.04318.84
5.4.160.0170.06319.14
5.4.150.0000.08018.85
5.4.140.0030.07316.38
5.4.130.0070.06716.28
5.4.120.0030.06316.67
5.4.110.0070.07316.40
5.4.100.0030.06016.46
5.4.90.0070.04716.54
5.4.80.0100.04316.43
5.4.70.0200.05016.52
5.4.60.0070.06316.57
5.4.50.0070.06716.32
5.4.40.0030.04316.34
5.4.30.0100.05016.20
5.4.20.0070.06716.37
5.4.10.0070.06016.58
5.4.00.0070.05315.77
5.3.290.0070.04714.57
5.3.280.0030.07714.54
5.3.270.0000.06714.51
5.3.260.0030.07714.51
5.3.250.0030.04014.71
5.3.240.0070.04014.61
5.3.230.0070.05714.51
5.3.220.0000.06014.61
5.3.210.0000.04714.55
5.3.200.0030.06014.67
5.3.190.0030.08014.68
5.3.180.0030.06314.54
5.3.170.0000.05314.63
5.3.160.0030.07014.56
5.3.150.0030.07014.46
5.3.140.0000.04714.61
5.3.130.0000.07014.70
5.3.120.0030.07314.44
5.3.110.0070.07714.48
5.3.100.0030.07014.26
5.3.90.0030.06313.94
5.3.80.0030.03314.04
5.3.70.0030.04313.94
5.3.60.0070.04014.16
5.3.50.0030.05713.86
5.3.40.0030.04714.03
5.3.30.0070.06313.88
5.3.20.0000.07313.59
5.3.10.0030.05713.68
5.3.00.0030.05313.72
5.2.170.0030.05012.19
5.2.160.0000.03712.19
5.2.150.0030.05012.19
5.2.140.0070.06312.19
5.2.130.0030.04312.19
5.2.120.0000.04012.19
5.2.110.0030.04012.19
5.2.100.0070.05712.19
5.2.90.0070.05312.19
5.2.80.0070.05712.19
5.2.70.0000.06012.19
5.2.60.0000.04012.19
5.2.50.0030.03312.19
5.2.40.0030.06012.19
5.2.30.0030.06012.19
5.2.20.0000.03712.19
5.2.10.0030.05312.19
5.2.00.0030.05712.19
5.1.60.0070.03312.19
5.1.50.0030.04012.19
5.1.40.0070.04012.19
5.1.30.0030.05712.19
5.1.20.0000.05712.19
5.1.10.0000.05012.19
5.1.00.0030.04312.19
5.0.50.0030.04712.19
5.0.40.0000.03312.19
5.0.30.0030.06312.19
5.0.20.0030.04312.19
5.0.10.0000.03312.19
5.0.00.0000.04312.19
4.4.90.0030.02012.19
4.4.80.0000.02012.19
4.4.70.0000.03012.19
4.4.60.0030.02012.19
4.4.50.0000.04012.19
4.4.40.0030.03712.19
4.4.30.0000.02312.19
4.4.20.0030.03712.19
4.4.10.0000.02712.19
4.4.00.0070.05312.19
4.3.110.0070.03012.19
4.3.100.0030.02312.19
4.3.90.0000.02712.19
4.3.80.0000.04712.19
4.3.70.0030.03312.19
4.3.60.0070.02312.19
4.3.50.0030.03312.19
4.3.40.0000.04712.19
4.3.30.0000.04012.19
4.3.20.0030.04012.19
4.3.10.0000.03712.19
4.3.00.0030.02312.19

preferences:
49.85 ms | 400 KiB | 5 Q