3v4l.org

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

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.08
8.3.50.0150.00521.14
8.3.40.0070.00718.59
8.3.30.0100.00319.04
8.3.20.0070.00020.29
8.3.10.0050.00321.92
8.3.00.0050.00220.70
8.2.180.0090.00916.75
8.2.170.0110.00322.96
8.2.160.0100.00319.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.66
8.2.110.0090.00020.96
8.2.100.0150.00017.84
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0050.00320.42
8.2.30.0020.00518.04
8.2.20.0030.00517.63
8.2.10.0040.00417.86
8.2.00.0070.00017.81
8.1.280.0140.00025.92
8.1.270.0080.00020.45
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0100.00022.64
8.1.230.0090.00317.57
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0000.00817.52
8.1.180.0030.00618.10
8.1.170.0060.00318.66
8.1.160.0050.00322.06
8.1.150.0000.00818.70
8.1.140.0040.00417.57
8.1.130.0030.00317.87
8.1.120.0000.00717.44
8.1.110.0000.00817.50
8.1.100.0030.00317.36
8.1.90.0040.00417.40
8.1.80.0050.00317.50
8.1.70.0040.00417.43
8.1.60.0030.00617.59
8.1.50.0070.00017.54
8.1.40.0040.00417.55
8.1.30.0040.00417.55
8.1.20.0000.00817.55
8.1.10.0000.00817.54
8.1.00.0040.00417.37
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0030.00318.39
8.0.270.0040.00417.20
8.0.260.0070.00016.73
8.0.250.0060.00016.84
8.0.240.0060.00316.88
8.0.230.0000.00816.73
8.0.220.0000.00716.76
8.0.210.0040.00416.72
8.0.200.0040.00416.96
8.0.190.0110.00016.93
8.0.180.0040.00416.95
8.0.170.0030.00516.83
8.0.160.0000.00716.78
8.0.150.0000.00716.81
8.0.140.0080.00016.87
8.0.130.0030.00313.37
8.0.120.0000.00716.84
8.0.110.0050.00316.89
8.0.100.0000.00716.92
8.0.90.0040.00416.75
8.0.80.0110.01116.85
8.0.70.0000.00716.84
8.0.60.0070.00016.68
8.0.50.0000.00816.83
8.0.30.0100.00917.18
8.0.20.0120.00717.40
8.0.10.0000.00716.85
8.0.00.0070.01016.74
7.4.330.0050.00015.00
7.4.320.0000.00716.50
7.4.300.0040.00416.58
7.4.290.0080.00316.61
7.4.280.0050.00316.42
7.4.270.0000.00716.51
7.4.260.0060.00316.63
7.4.250.0040.00416.42
7.4.240.0020.00516.55
7.4.230.0070.00016.34
7.4.220.0100.00716.61
7.4.210.0090.00816.49
7.4.200.0040.00416.54
7.4.190.0030.00316.48
7.4.160.0150.00716.40
7.4.150.0100.00717.40
7.4.140.0090.01117.86
7.4.130.0090.00916.53
7.4.120.0080.00816.43
7.4.110.0100.01316.54
7.4.100.0100.01316.29
7.4.90.0060.01116.46
7.4.80.0290.01819.39
7.4.70.0080.01416.66
7.4.60.0100.01016.59
7.4.50.0030.00616.28
7.4.40.0080.01122.77
7.4.30.0120.00316.67
7.4.00.0060.00914.89
7.3.330.0030.00313.20
7.3.320.0000.00613.33
7.3.310.0050.00216.21
7.3.300.0050.00216.38
7.3.290.0060.00916.36
7.3.280.0070.00916.31
7.3.270.0040.01317.40
7.3.260.0120.00616.35
7.3.250.0150.00216.42
7.3.240.0090.00916.36
7.3.230.0030.01416.56
7.3.210.0080.00916.68
7.3.200.0130.00719.39
7.3.190.0100.00616.43
7.3.180.0090.01216.34
7.3.170.0060.00916.45
7.3.160.0030.01216.47
7.3.120.0060.01114.76
7.3.110.0100.00714.91
7.3.100.0090.00614.83
7.3.90.0030.00814.81
7.3.80.0020.01314.88
7.3.70.0030.00914.66
7.3.60.0060.00814.78
7.3.50.0050.00814.71
7.3.40.0060.00614.88
7.3.30.0070.00714.74
7.3.20.0050.01016.65
7.3.10.0070.00816.68
7.3.00.0030.00816.60
7.2.330.0070.01416.30
7.2.320.0130.00316.56
7.2.310.0100.01316.64
7.2.300.0000.01716.67
7.2.290.0060.01016.34
7.2.250.0030.01614.88
7.2.240.0070.00814.89
7.2.230.0050.01015.05
7.2.220.0050.00815.03
7.2.210.0060.00615.04
7.2.200.0070.00515.02
7.2.190.0030.01214.93
7.2.180.0050.00714.82
7.2.170.0060.00714.91
7.2.160.0090.00614.71
7.2.150.0000.01216.78
7.2.140.0040.01117.00
7.2.130.0040.00816.82
7.2.120.0070.01116.60
7.2.110.0060.00916.70
7.2.100.0030.00616.58
7.2.90.0060.00616.92
7.2.80.0090.00616.83
7.2.70.0070.01017.00
7.2.60.0070.00716.69
7.2.50.0070.00316.66
7.2.40.0100.00316.89
7.2.30.0040.01116.95
7.2.20.0030.00616.80
7.2.10.0060.00616.77
7.2.00.0090.00317.92
7.1.330.0030.01215.79
7.1.320.0050.00815.72
7.1.310.0050.00515.58
7.1.300.0020.01315.70
7.1.290.0080.00315.79
7.1.280.0020.01015.60
7.1.270.0100.00015.84
7.1.260.0040.00715.70
7.1.250.0040.01116.03
7.1.100.0120.00618.27
7.1.70.0030.00717.20
7.1.60.0120.01219.82
7.1.50.0100.01317.12
7.1.00.0030.04022.46
7.0.200.0030.00516.75
7.0.140.0070.07021.92
7.0.60.0030.09019.94
7.0.50.0070.04017.87
7.0.40.0100.08020.14
7.0.30.0300.06720.25
7.0.20.0400.06320.09
7.0.10.0070.05320.12
7.0.00.0100.08020.36
5.6.280.0030.07320.96
5.6.210.0070.08020.73
5.6.200.0070.07718.16
5.6.190.0130.07320.39
5.6.180.0270.07020.34
5.6.170.0300.07320.47
5.6.160.0070.04320.55
5.6.150.0030.05718.23
5.6.140.0030.04318.23
5.6.130.0030.08718.27
5.6.120.0000.05321.05
5.6.110.0100.07321.03
5.6.100.0030.06021.01
5.6.90.0100.07320.96
5.6.80.0130.05720.51
5.6.70.3830.04320.37
5.5.350.0200.07720.39
5.5.340.0030.05717.94
5.5.330.0170.07020.40
5.5.320.0230.04720.36
5.5.310.0330.07320.34
5.5.300.0000.04318.01
5.5.290.0070.08018.03
5.5.280.0100.06320.84
5.5.270.0100.08020.87
5.5.260.0030.09020.77
5.5.250.0070.05320.69
5.5.240.0270.04020.25
5.4.450.3200.04019.55
5.4.440.2900.05019.41
5.4.430.2770.05019.27
5.4.420.2930.03319.52
5.4.410.2930.04019.19
5.4.400.2630.04019.24
5.4.390.2600.04319.08
5.4.380.2930.04318.87
5.4.370.2670.04018.99
5.4.360.2870.03318.98
5.4.350.2630.04018.98
5.4.340.3000.03319.23
5.4.320.2670.04019.08
5.4.310.2930.04019.20
5.4.300.2700.03018.98
5.4.290.2900.04019.02
5.4.280.2800.03319.16
5.4.270.2900.04319.06
5.4.260.2930.04019.24
5.4.250.2870.04019.14
5.4.240.2530.03718.95
5.4.230.3000.03019.13
5.4.220.2900.03319.21
5.4.210.2800.03019.15
5.4.200.2730.03719.19
5.4.190.2900.03019.05
5.4.180.3000.04019.09
5.4.170.2730.04018.96
5.4.160.2830.03719.29
5.4.150.2800.04319.11
5.4.140.2970.04016.46
5.4.130.2830.03016.28
5.4.120.2930.03716.66
5.4.110.2930.03716.40
5.4.100.2600.04016.45
5.4.90.2970.03316.52
5.4.80.2900.03716.55
5.4.70.2730.03316.39
5.4.60.2970.03316.30
5.4.50.2870.03016.42
5.4.40.2670.03716.43
5.4.30.2930.03716.26
5.4.20.2800.03716.32
5.4.10.2670.03716.52
5.4.00.3070.03015.79
5.3.290.3070.04714.63
5.3.280.2930.03714.59
5.3.270.2970.03714.72
5.3.260.2930.03714.82
5.3.250.2830.04014.51
5.3.240.2500.04014.52
5.3.230.2870.03714.50
5.3.220.3100.04314.47
5.3.210.2930.04014.54
5.3.200.3430.04314.72
5.3.190.3030.03314.48
5.3.180.2970.04014.78
5.3.170.2930.04014.71
5.3.160.2770.02714.53
5.3.150.2970.03714.67
5.3.140.2630.03714.54
5.3.130.2870.04314.66
5.3.120.2900.04314.52
5.3.110.2630.04314.55
5.3.100.2970.03713.96
5.3.90.2630.04014.01
5.3.80.3100.04014.13
5.3.70.2270.04714.14
5.3.60.2630.04014.16
5.3.50.2570.04713.96
5.3.40.2770.03713.96
5.3.30.2570.05313.96
5.3.20.2930.03713.96
5.3.10.2930.03313.96
5.3.00.2930.04013.96
5.2.170.2500.03013.96
5.2.160.2470.02713.96
5.2.150.1970.03313.96
5.2.140.2200.03013.96
5.2.130.2470.03313.96
5.2.120.2330.03013.96
5.2.110.2330.02313.96
5.2.100.2530.02313.96
5.2.90.2400.02713.96
5.2.80.2500.03013.96
5.2.70.2300.02313.96
5.2.60.2470.02713.96
5.2.50.2330.02313.96
5.2.40.1870.02013.96
5.2.30.1730.02713.96
5.2.20.1830.02313.96
5.2.10.1800.02713.96
5.2.00.2000.02713.96
5.1.60.1870.02013.96
5.1.50.2100.02313.96
5.1.40.1970.01713.70
5.1.30.2100.02713.70
5.1.20.1870.02313.70
5.1.10.2030.02713.70
5.1.00.2030.02713.70
5.0.50.0930.01713.70
5.0.40.0900.02013.70
5.0.30.0900.03013.70
5.0.20.1000.01713.70
5.0.10.0970.02013.70
5.0.00.1100.03313.70
4.4.90.1100.02013.70
4.4.80.0930.01713.70
4.4.70.1230.01313.70
4.4.60.1100.02313.70
4.4.50.1000.02013.70
4.4.40.1100.03313.70
4.4.30.0930.01313.70
4.4.20.1100.01713.70
4.4.10.1130.02013.70
4.4.00.1030.02013.70
4.3.110.0970.01713.70
4.3.100.1170.02013.70
4.3.90.0970.01713.70
4.3.80.0970.02313.70
4.3.70.0930.01713.70
4.3.60.1000.01013.70
4.3.50.0930.01713.70
4.3.40.0930.02313.70
4.3.30.0530.02013.70
4.3.20.0000.01713.70
4.3.10.0470.01713.70
4.3.00.0470.01313.70

preferences:
45.44 ms | 401 KiB | 5 Q