3v4l.org

run code in 300+ PHP versions simultaneously
<?php $toto = array( array('toto' => 'alpha', 'aliou' => 'mari' ), array( 'toto' =>'amadou', 'aliou' => 'dje' ) ); function implode_array_values($key,$input) { return implode(', ', array_map(function($entry) use ($key) { return $entry[$key]; }, $input)); } var_dump(implode_array_values('toto',$toto)); echo array_map("count", $input);

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.0100.00718.55
8.3.50.0160.00618.20
8.3.40.0070.01118.97
8.3.30.0110.00418.84
8.3.20.0080.00019.20
8.3.10.0040.00423.61
8.3.00.0070.00020.50
8.2.180.0100.01018.28
8.2.170.0200.00019.13
8.2.160.0150.00022.96
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0060.00319.95
8.2.120.0060.00326.35
8.2.110.0060.00321.08
8.2.100.0040.00817.90
8.2.90.0000.00817.91
8.2.80.0050.00317.97
8.2.70.0070.00417.93
8.2.60.0040.00418.22
8.2.50.0080.00418.10
8.2.40.0050.00319.47
8.2.30.0050.00519.30
8.2.20.0030.00518.19
8.2.10.0070.00018.19
8.2.00.0030.00617.73
8.1.280.0140.00725.92
8.1.270.0140.00422.13
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00723.80
8.1.230.0090.00322.67
8.1.220.0040.00417.74
8.1.210.0030.00619.03
8.1.200.0090.00017.23
8.1.190.0000.00817.40
8.1.180.0050.00318.10
8.1.170.0060.00318.46
8.1.160.0040.00418.94
8.1.150.0000.00918.99
8.1.140.0030.00322.15
8.1.130.0070.00020.14
8.1.120.0040.00317.42
8.1.110.0040.00417.40
8.1.100.0040.00417.45
8.1.90.0070.00017.34
8.1.80.0080.00017.41
8.1.70.0030.00317.48
8.1.60.0000.00817.54
8.1.50.0000.00917.55
8.1.40.0030.00617.55
8.1.30.0090.00017.64
8.1.20.0000.00717.56
8.1.10.0000.00717.56
8.1.00.0020.00517.49
8.0.300.0000.00719.73
8.0.290.0070.00016.75
8.0.280.0070.00018.45
8.0.270.0070.00017.30
8.0.260.0030.00318.45
8.0.250.0030.00316.93
8.0.240.0050.00317.04
8.0.230.0030.00617.03
8.0.220.0030.00516.99
8.0.210.0000.00716.86
8.0.200.0080.00016.89
8.0.190.0040.00416.92
8.0.180.0070.00016.90
8.0.170.0060.00316.96
8.0.160.0040.00717.00
8.0.150.0060.00616.91
8.0.140.0040.00416.80
8.0.130.0050.00013.39
8.0.120.0070.00016.77
8.0.110.0000.00816.93
8.0.100.0050.00316.94
8.0.90.0000.00716.98
8.0.80.0060.00816.88
8.0.70.0000.00716.80
8.0.60.0040.00416.82
8.0.50.0000.00816.77
8.0.30.0080.01017.00
8.0.20.0030.01517.40
8.0.10.0040.00416.85
8.0.00.0110.00816.72
7.4.330.0050.00015.55
7.4.320.0040.00416.59
7.4.300.0060.00016.59
7.4.290.0060.00016.63
7.4.280.0000.00816.48
7.4.270.0070.00416.61
7.4.260.0030.00316.57
7.4.250.0030.00316.45
7.4.240.0030.00316.64
7.4.230.0030.00316.33
7.4.220.0030.00616.57
7.4.210.0100.00916.49
7.4.200.0030.00316.38
7.4.160.0050.01116.54
7.4.140.0140.00717.86
7.4.130.0120.00916.44
7.4.120.0080.01116.51
7.4.110.0080.01216.40
7.4.100.0100.01016.50
7.4.90.0060.01216.38
7.4.80.0110.00719.39
7.4.70.0110.00716.71
7.4.60.0150.00616.41
7.4.50.0000.01516.31
7.4.40.0130.01016.46
7.4.10.0100.01016.55
7.4.00.0020.01215.95
7.3.330.0060.00013.36
7.3.320.0000.00513.38
7.3.310.0050.00316.25
7.3.300.0070.00016.37
7.3.290.0070.00016.23
7.3.280.0060.01316.33
7.3.260.0080.00916.50
7.3.240.0040.01516.45
7.3.230.0030.01316.46
7.3.210.0160.00616.41
7.3.200.0080.00816.43
7.3.190.0100.01016.50
7.3.180.0050.01416.34
7.3.170.0140.00716.38
7.3.160.0030.01416.50
7.3.130.0030.01016.34
7.3.120.0000.01716.37
7.3.110.0040.01116.54
7.3.100.0030.01316.36
7.3.90.0030.00916.48
7.3.80.0070.01016.43
7.3.70.0070.00316.40
7.3.60.0100.00316.34
7.3.50.0080.00416.30
7.3.40.0000.01016.34
7.3.30.0060.00916.25
7.3.20.0040.01118.34
7.3.10.0060.00918.12
7.3.00.0070.01018.23
7.2.330.0070.01116.48
7.2.320.0080.01616.36
7.2.310.0090.00816.61
7.2.300.0110.00716.53
7.2.290.0090.00916.56
7.2.260.0040.01116.29
7.2.250.0100.00616.64
7.2.240.0060.01016.64
7.2.230.0040.01116.63
7.2.220.0000.01816.35
7.2.210.0100.00716.77
7.2.200.0120.00316.53
7.2.190.0080.00816.60
7.2.180.0030.00616.54
7.2.170.0090.00916.59
7.2.160.0070.01016.65
7.2.150.0060.01218.38
7.2.140.0040.00718.41
7.2.130.0160.00018.34
7.2.120.0040.01118.62
7.2.110.0190.00516.50
7.2.100.0170.00816.45
7.2.90.0190.00916.56
7.2.80.0260.00416.29
7.2.70.0180.00916.65
7.2.60.0160.00716.68
7.2.50.0170.00916.70
7.2.40.0230.00616.72
7.2.30.0190.01016.75
7.2.20.0160.01016.76
7.2.10.0170.00916.65
7.2.00.0160.00516.48
7.1.330.0090.00317.26
7.1.320.0090.00617.38
7.1.310.0090.00617.28
7.1.300.0000.01517.42
7.1.290.0060.00817.25
7.1.280.0040.01417.45
7.1.270.0060.00917.23
7.1.260.0090.00317.16
7.1.250.0100.00617.41
7.1.240.0000.01117.29
7.1.230.0240.00815.42
7.1.220.0170.00615.67
7.1.210.0240.00615.58
7.1.200.0130.00915.50
7.1.190.0400.01015.57
7.1.180.0130.01015.67
7.1.170.0110.00815.69
7.1.160.0230.00315.62
7.1.150.0190.00915.55
7.1.140.0190.00615.64
7.1.130.0110.00815.58
7.1.120.0150.00615.70
7.1.110.0100.01015.65
7.1.100.0130.01315.60
7.1.90.0170.00615.50
7.1.80.0170.00715.70
7.1.70.0190.00615.69
7.1.60.0240.00924.64
7.1.50.0200.00824.38
7.1.40.0360.00824.58
7.1.30.0240.00824.55
7.1.20.0200.00824.61
7.1.10.0180.00815.60
7.1.00.0130.01315.55
7.0.330.0030.01016.91
7.0.320.0060.00917.05
7.0.310.0070.00717.07
7.0.300.0060.00916.82
7.0.290.0040.00416.82
7.0.280.0040.00717.00
7.0.270.0040.00816.94
7.0.260.0030.00616.84
7.0.250.0030.00917.11
7.0.240.0030.00916.87
7.0.230.0140.00416.94
7.0.220.0000.01316.92
7.0.210.0030.01016.94
7.0.200.0040.00416.89
7.0.190.0040.01116.98
7.0.180.0060.01017.16
7.0.170.0060.00317.03
7.0.160.0080.00416.99
7.0.150.0070.00717.00
7.0.140.0090.00616.92
7.0.130.0060.00617.11
7.0.120.0080.00317.21
7.0.110.0140.00016.84
7.0.100.0040.01216.98
7.0.90.0000.01416.90
7.0.80.0080.00417.08
7.0.70.0100.00717.10
7.0.60.0090.00316.98
7.0.50.0070.01017.03
7.0.40.0080.00815.00
7.0.30.0070.00714.81
7.0.20.0070.00314.96
7.0.10.0030.00614.98
7.0.00.0090.00015.03
5.6.400.0040.01115.78
5.6.390.0040.00716.05
5.6.380.0120.00715.10
5.6.370.0060.00616.16
5.6.360.0110.00315.92
5.6.350.0050.00515.95
5.6.340.0090.00616.07
5.6.330.0100.00016.14
5.6.320.0000.01416.04
5.6.310.0030.01016.01
5.6.300.0120.00316.00
5.6.290.0040.01216.02
5.6.280.0030.00715.88
5.6.270.0070.00716.04
5.6.260.0100.00015.59
5.6.250.0000.01016.04
5.6.240.0070.00715.98
5.6.230.0040.01216.20
5.6.220.0070.00715.89
5.6.210.0060.00615.82
5.6.200.0100.00915.77
5.6.190.0060.00915.99
5.6.180.0080.00415.89
5.6.170.0090.00615.93
5.6.160.0030.01215.83
5.6.150.0100.01015.73
5.6.140.0030.01015.89
5.6.130.0090.00916.05
5.6.120.0120.00615.90
5.6.110.0060.01215.91
5.6.100.0060.00916.03
5.6.90.0060.00815.79
5.6.80.0060.00915.54
5.6.70.0030.01015.78
5.6.60.0070.00715.75
5.6.50.0060.00915.84
5.6.40.0100.00715.74
5.6.30.0070.00415.86
5.6.20.0090.00616.13
5.6.10.0060.01015.74
5.6.00.0030.01416.04

preferences:
44.51 ms | 400 KiB | 5 Q