3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1, 2, 3, 4]; $callable = function($value, $key, array $output) { $output[$key] = $value * 100; }; $output = []; array_map($callable, $array, array_keys($array), $output); print_r($output);

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.0110.00418.30
8.3.50.0270.00822.00
8.3.40.0090.00618.84
8.3.30.0090.00618.83
8.3.20.0040.00420.35
8.3.10.0070.00023.63
8.3.00.0030.00519.79
8.2.180.0090.00618.55
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00421.14
8.2.120.0080.00026.35
8.2.110.0090.00020.47
8.2.100.0090.00318.05
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0110.00017.38
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0040.00722.13
8.2.30.0070.00020.54
8.2.20.0000.00717.69
8.2.10.0040.00418.01
8.2.00.0000.00818.12
8.1.280.0110.00325.92
8.1.270.0040.00420.33
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0070.01123.88
8.1.230.0040.00817.60
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00817.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0050.00518.72
8.1.160.0000.00720.65
8.1.150.0070.00018.93
8.1.140.0000.00819.63
8.1.130.0040.00417.63
8.1.120.0040.00417.50
8.1.110.0000.00817.46
8.1.100.0040.00417.43
8.1.90.0000.00717.46
8.1.80.0000.00717.43
8.1.70.0030.00517.40
8.1.60.0000.00817.62
8.1.50.0060.00317.48
8.1.40.0000.00817.54
8.1.30.0060.00317.54
8.1.20.0040.00417.57
8.1.10.0050.00317.63
8.1.00.0000.00817.43
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.39
8.0.270.0000.00717.13
8.0.260.0060.00017.16
8.0.250.0030.00316.98
8.0.240.0030.00316.93
8.0.230.0040.00416.83
8.0.220.0000.00816.77
8.0.210.0080.00016.93
8.0.200.0060.00017.03
8.0.190.0000.00716.92
8.0.180.0080.00017.00
8.0.170.0000.00716.97
8.0.160.0030.00316.93
8.0.150.0070.00316.88
8.0.140.0070.00016.92
8.0.130.0030.00313.39
8.0.120.0000.00816.86
8.0.110.0040.00417.02
8.0.100.0000.00716.92
8.0.90.0070.00016.98
8.0.80.0030.01217.03
8.0.70.0050.00216.93
8.0.60.0000.00716.91
8.0.50.0040.00416.86
8.0.30.0160.00317.25
8.0.20.0130.00617.40
8.0.10.0070.00017.00
8.0.00.0100.00916.85
7.4.330.0000.00516.89
7.4.320.0030.00316.66
7.4.300.0030.00316.61
7.4.290.0030.00316.46
7.4.280.0050.00316.50
7.4.270.0000.00716.42
7.4.260.0050.00316.52
7.4.250.0040.00416.40
7.4.240.0020.00516.58
7.4.230.0070.00016.32
7.4.220.0150.00416.58
7.4.210.0060.01516.68
7.4.200.0000.00716.60
7.4.160.0130.00316.73
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0140.00816.59
7.4.120.0080.01016.48
7.4.110.0140.00316.57
7.4.100.0130.01016.71
7.4.90.0070.01016.64
7.4.80.0130.01019.39
7.4.70.0120.00616.74
7.4.60.0070.01016.32
7.4.50.0000.01816.27
7.4.40.0130.00316.45
7.4.30.0070.01016.41
7.4.10.0060.01014.77
7.4.00.0050.01315.06
7.3.330.0000.00513.32
7.3.320.0050.00013.10
7.3.310.0000.00716.29
7.3.300.0000.00716.32
7.3.290.0090.00916.28
7.3.280.0040.01116.33
7.3.270.0080.00917.40
7.3.260.0070.01016.52
7.3.250.0080.01416.35
7.3.240.0080.00816.33
7.3.230.0040.01416.39
7.3.210.0130.00516.56
7.3.200.0090.00616.33
7.3.190.0110.01116.46
7.3.180.0030.01316.50
7.3.170.0120.00916.37
7.3.160.0050.01116.65
7.3.130.0070.01114.56
7.3.120.0070.01014.70
7.3.110.0120.00614.59
7.3.100.0060.01314.82
7.3.90.0090.00614.94
7.3.80.0040.00714.86
7.3.70.0030.01014.67
7.3.60.0070.00714.70
7.3.50.0070.00414.99
7.3.40.0080.00314.61
7.3.30.0080.00814.74
7.3.20.0100.00316.48
7.3.10.0040.00916.53
7.3.00.0050.01116.58
7.2.330.0170.00016.64
7.2.320.0030.01416.76
7.2.310.0100.00716.43
7.2.300.0130.01016.40
7.2.290.0130.00916.59
7.2.260.0080.00815.08
7.2.250.0030.01014.98
7.2.240.0060.01014.79
7.2.230.0090.00615.12
7.2.220.0090.00914.62
7.2.210.0000.01114.91
7.2.200.0060.01014.87
7.2.190.0090.00615.08
7.2.180.0000.01314.92
7.2.170.0030.01314.78
7.2.160.0110.00715.12
7.2.150.0090.00316.69
7.2.140.0080.00316.93
7.2.130.0120.00516.91
7.2.120.0060.01116.72
7.2.110.0050.00716.60
7.2.100.0040.00816.87
7.2.90.0030.01216.98
7.2.80.0050.00816.56
7.2.70.0060.00916.77
7.2.60.0090.00416.84
7.2.50.0030.00816.76
7.2.40.0100.00316.87
7.2.30.0130.00516.82
7.2.20.0040.01316.81
7.2.10.0100.00316.78
7.2.00.0050.00817.65
7.1.330.0030.00915.60
7.1.320.0060.00915.96
7.1.310.0100.00315.69
7.1.300.0030.00715.76
7.1.290.0030.01415.60
7.1.280.0030.01515.76
7.1.270.0100.00715.65
7.1.260.0100.00715.84
7.1.250.0100.00515.65
7.1.240.0030.01215.66
7.1.230.0030.01015.83
7.1.220.0030.00615.59
7.1.210.0030.00915.74
7.1.200.0070.00715.67
7.1.190.0040.00715.88
7.1.180.0110.00415.63
7.1.170.0060.00915.86
7.1.160.0090.00615.82
7.1.150.0000.01215.50
7.1.140.0090.00315.76
7.1.130.0060.01015.88
7.1.120.0000.01615.55
7.1.110.0070.00715.65
7.1.100.0060.00816.71
7.1.90.0030.01215.55
7.1.80.0100.00315.64
7.1.70.0130.00116.36
7.1.60.0010.01617.46
7.1.50.0060.01116.15
7.1.40.0040.01215.38
7.1.30.0030.00815.59
7.1.20.0080.00415.61
7.1.10.0080.00415.62
7.1.00.0070.04018.93
7.0.330.0060.00715.43
7.0.320.0080.00315.40
7.0.310.0100.00715.36
7.0.300.0070.00715.20
7.0.290.0100.00715.30
7.0.280.0070.00715.20
7.0.270.0040.01115.14
7.0.260.0110.00415.37
7.0.250.0070.00715.38
7.0.240.0100.00315.09
7.0.230.0060.00815.35
7.0.220.0030.00615.57
7.0.210.0070.00715.38
7.0.200.0020.01016.04
7.0.190.0030.01015.20
7.0.180.0060.00615.21
7.0.170.0000.01515.57
7.0.160.0030.00615.47
7.0.150.0000.01315.46
7.0.140.0030.01015.33
7.0.130.0040.00715.57
7.0.120.0120.00015.32
7.0.110.0070.00315.54
7.0.100.0110.00015.56
7.0.90.0030.01215.43
7.0.80.0080.02617.59
7.0.70.0140.02717.69
7.0.60.0080.02317.59
7.0.50.0020.04917.76
7.0.40.0070.02916.77
7.0.30.0050.04116.73
7.0.20.0120.03516.74
7.0.10.0070.04216.84
7.0.00.0070.04216.77
5.6.400.0070.01314.38
5.6.390.0110.00714.10
5.6.380.0100.00314.27
5.6.370.0120.00314.07
5.6.360.0090.00314.16
5.6.350.0030.01514.14
5.6.340.0030.01014.46
5.6.330.0030.00814.26
5.6.320.0030.00614.37
5.6.310.0060.00614.41
5.6.300.0060.00914.21
5.6.290.0080.00314.22
5.6.280.0030.02317.63
5.6.270.0030.01014.40
5.6.260.0080.00314.38
5.6.250.0030.01314.40
5.6.240.0000.01414.15
5.6.230.0070.04217.30
5.6.220.0080.04017.25
5.6.210.0030.03517.31
5.6.200.0080.04217.81
5.6.190.0080.02717.78
5.6.180.0070.02517.44
5.6.170.0070.04717.68
5.6.160.0080.04317.60
5.6.150.0030.03717.68
5.6.140.0070.04417.57
5.6.130.0030.03817.63
5.6.120.0070.02917.63
5.6.110.0060.04517.62
5.6.100.0100.04517.58
5.6.90.0070.04317.60
5.6.80.0020.04317.26
5.6.70.0070.04517.20
5.6.60.0120.04217.27
5.6.50.0050.05217.25
5.6.40.0100.03517.16
5.6.30.0070.04217.32
5.6.20.0070.03917.35
5.6.10.0080.04217.24
5.6.00.0110.03617.23
5.5.380.0040.01414.21
5.5.370.0070.03517.26
5.5.360.0070.02717.13
5.5.350.0120.02517.21
5.5.340.0070.04417.47
5.5.330.0100.03817.61
5.5.320.0080.03317.24
5.5.310.0120.04217.34
5.5.300.0040.04217.56
5.5.290.0030.04617.46
5.5.280.0060.04317.54
5.5.270.0070.02817.63
5.5.260.0070.04717.35
5.5.250.0030.03817.39
5.5.240.0080.04017.07
5.5.230.0040.04716.98
5.5.220.0080.04117.07
5.5.210.0030.03816.85
5.5.200.0030.03017.13
5.5.190.0090.03217.21
5.5.180.0030.04917.10
5.5.170.0060.00313.81
5.5.160.0070.03716.99
5.5.150.0100.03816.91
5.5.140.0070.03917.10
5.5.130.0050.02817.21
5.5.120.0100.03917.01
5.5.110.0030.02716.93
5.5.100.0120.03717.00
5.5.90.0120.03017.02
5.5.80.0100.04017.02
5.5.70.0080.02517.04
5.5.60.0100.02816.88
5.5.50.0050.03217.02
5.5.40.0150.02516.88
5.5.30.0090.04417.12
5.5.20.0070.04517.12
5.5.10.0030.03017.07
5.5.00.0080.02516.91

preferences:
57.73 ms | 401 KiB | 5 Q