3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = null; $list = array('k1' => 'f1.txt', 'k2' => 'f2.txt', 'k3' => 'f3.txt', 'k4' => 'f4.txt'); //$mapping = array_map(function($item) use ($path) { return $path ? $path . $item : $item; }, $list); $pfxFilePath = 'pfxFilePath'; $passFilePath = 'passFilePath'; array_walk($list, function(&$item, $i) use ($pfxFilePath, $passFilePath) { $item.= $pfxFilePath . $passFilePath; }); var_dump($list);

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.0140.00416.63
8.3.50.0070.00716.55
8.3.40.0090.00618.90
8.3.30.0130.00618.80
8.3.20.0040.00420.37
8.3.10.0150.00021.68
8.3.00.0070.00020.24
8.2.180.0070.01118.18
8.2.170.0070.01422.96
8.2.160.0070.00720.38
8.2.150.0110.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00420.95
8.2.120.0080.00826.35
8.2.110.0090.00020.34
8.2.100.0060.00617.84
8.2.90.0000.00819.30
8.2.80.0050.00317.97
8.2.70.0050.00517.63
8.2.60.0080.00017.93
8.2.50.0060.00318.10
8.2.40.0020.00520.61
8.2.30.0060.00321.10
8.2.20.0000.00718.04
8.2.10.0040.00418.00
8.2.00.0040.00418.17
8.1.280.0130.00725.92
8.1.270.0070.00022.21
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0070.00324.02
8.1.230.0070.00417.54
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0000.00917.47
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0040.00420.35
8.1.160.0040.00419.00
8.1.150.0080.00018.82
8.1.140.0000.01019.45
8.1.130.0000.00718.79
8.1.120.0000.00717.52
8.1.110.0000.00817.43
8.1.100.0040.00417.34
8.1.90.0070.00017.47
8.1.80.0030.00617.49
8.1.70.0030.00517.36
8.1.60.0030.00617.54
8.1.50.0030.00617.51
8.1.40.0000.00817.51
8.1.30.0040.00417.56
8.1.20.0050.00317.56
8.1.10.0000.00817.50
8.1.00.0000.00717.45
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00718.34
8.0.270.0030.00317.25
8.0.260.0030.00316.88
8.0.250.0060.00016.84
8.0.240.0040.00416.93
8.0.230.0000.00716.83
8.0.220.0000.00716.77
8.0.210.0030.00316.92
8.0.200.0060.00016.82
8.0.190.0000.00816.81
8.0.180.0070.00016.73
8.0.170.0070.00016.96
8.0.160.0000.00716.76
8.0.150.0000.00716.83
8.0.140.0000.00716.82
8.0.130.0060.00013.27
8.0.120.0000.00716.82
8.0.110.0040.00416.75
8.0.100.0030.00516.73
8.0.90.0040.00416.80
8.0.80.0080.00816.92
8.0.70.0050.00216.88
8.0.60.0040.00416.73
8.0.50.0000.00716.82
8.0.30.0090.00917.20
8.0.20.0150.00417.40
8.0.10.0000.00716.82
8.0.00.0160.00016.76
7.4.330.0030.00315.55
7.4.320.0030.00316.58
7.4.300.0030.00316.59
7.4.290.0000.00716.49
7.4.280.0040.00416.40
7.4.270.0030.00316.39
7.4.260.0040.00416.60
7.4.250.0040.00416.46
7.4.240.0040.00416.42
7.4.230.0000.00716.61
7.4.220.0060.01216.43
7.4.210.0060.01216.60
7.4.200.0070.00016.57
7.4.160.0110.00516.44
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0100.00716.47
7.4.120.0130.00716.49
7.4.110.0000.01716.69
7.4.100.0110.01116.65
7.4.90.0110.00716.47
7.4.80.0100.00719.39
7.4.70.0080.00816.50
7.4.60.0040.01416.39
7.4.50.0060.00916.41
7.4.40.0120.00416.44
7.4.30.0110.00516.39
7.4.10.0100.00714.65
7.4.00.0040.01415.05
7.3.330.0000.00513.31
7.3.320.0000.00513.31
7.3.310.0070.00016.30
7.3.300.0000.00716.30
7.3.290.0080.00616.29
7.3.280.0080.00816.29
7.3.270.0090.00917.40
7.3.260.0030.01516.35
7.3.250.0130.00716.30
7.3.240.0100.01016.46
7.3.230.0070.01016.38
7.3.210.0060.01416.23
7.3.200.0100.01016.21
7.3.190.0160.00616.39
7.3.180.0140.00616.41
7.3.170.0130.00316.39
7.3.160.0100.01316.38
7.3.130.0070.01114.83
7.3.120.0070.00814.84
7.3.110.0070.00914.81
7.3.100.0080.00814.77
7.3.90.0080.01014.86
7.3.80.0060.00614.71
7.3.70.0050.00714.73
7.3.60.0050.01214.75
7.3.50.0030.01114.68
7.3.40.0120.00514.75
7.3.30.0070.00714.60
7.3.20.0090.00316.75
7.3.10.0070.00716.58
7.3.00.0090.00316.69
7.2.330.0100.01016.58
7.2.320.0120.00616.63
7.2.310.0090.00916.56
7.2.300.0030.01416.58
7.2.290.0140.00416.49
7.2.260.0000.01614.98
7.2.250.0100.00715.05
7.2.240.0070.00814.91
7.2.230.0070.00614.89
7.2.220.0090.00714.88
7.2.210.0070.00814.92
7.2.200.0090.00614.93
7.2.190.0050.00914.93
7.2.180.0050.01214.94
7.2.170.0090.00714.95
7.2.160.0040.01114.97
7.2.150.0030.00816.65
7.2.140.0090.00416.88
7.2.130.0030.01016.93
7.2.120.0080.00716.89
7.2.110.0080.00616.68
7.2.100.0070.00916.71
7.2.90.0020.00816.90
7.2.80.0070.00816.92
7.2.70.0090.00616.79
7.2.60.0080.00816.88
7.2.50.0080.00616.79
7.2.40.0030.01116.73
7.2.30.0120.00216.86
7.2.20.0000.01216.64
7.2.10.0120.00516.83
7.2.00.0090.00717.63
7.1.330.0100.00315.77
7.1.320.0090.00715.97
7.1.310.0070.00315.86
7.1.300.0090.00715.93
7.1.290.0030.00915.77
7.1.280.0060.00815.81
7.1.270.0060.00515.85
7.1.260.0050.01115.71
7.1.250.0050.00915.71
7.1.240.0100.00315.61
7.1.230.0100.00315.86
7.1.220.0120.00615.79
7.1.210.0070.00715.74
7.1.200.0090.00715.88
7.1.190.0030.01016.01
7.1.180.0000.00915.89
7.1.170.0080.00315.93
7.1.160.0000.01115.55
7.1.150.0060.00315.84
7.1.140.0040.00815.90
7.1.130.0030.01016.00
7.1.120.0030.01315.81
7.1.110.0030.00915.85
7.1.100.0020.01317.15
7.1.90.0120.00315.83
7.1.80.0000.01215.87
7.1.70.0070.01016.59
7.1.60.0150.01225.56
7.1.50.0180.01125.29
7.1.40.0150.00825.06
7.1.30.0170.01125.16
7.1.20.0180.01125.17
7.1.10.0040.01016.22
7.1.00.0040.01016.24
7.0.330.0060.00615.37
7.0.320.0030.01315.54
7.0.310.0030.01015.27
7.0.300.0000.01215.62
7.0.290.0070.00715.60
7.0.280.0000.00915.60
7.0.270.0000.01615.47
7.0.260.0050.00515.52
7.0.250.0030.01215.59
7.0.240.0130.00015.32
7.0.230.0100.00315.36
7.0.220.0070.00315.54
7.0.210.0030.01015.48
7.0.200.0010.01015.93
7.0.190.0100.00616.20
7.0.180.0050.01015.81
7.0.170.0080.01015.95
7.0.160.0080.00915.60
7.0.150.0080.00815.94
7.0.140.0050.00815.83
7.0.130.0060.00815.95
7.0.120.0080.00816.07
7.0.110.0040.01015.88
7.0.100.0070.00915.88
7.0.90.0090.00615.86
7.0.80.0030.01115.76
7.0.70.0020.01215.90
7.0.60.0060.00515.71
7.0.50.0070.00915.82
7.0.40.0090.00714.90
7.0.30.0040.01015.06
7.0.20.0060.00814.86
7.0.10.0040.01014.91
7.0.00.0030.01314.94
5.6.400.0060.00314.18
5.6.390.0060.00314.41
5.6.380.0090.00614.64
5.6.370.0130.00314.54
5.6.360.0030.00814.67
5.6.350.0040.01113.98
5.6.340.0060.00314.40
5.6.330.0080.00714.55
5.6.320.0070.00714.55
5.6.310.0000.00914.32
5.6.300.0080.00414.34
5.6.290.0030.01314.37
5.6.280.0040.01114.42
5.6.270.0030.01014.71
5.6.260.0070.00314.64
5.6.250.0060.01114.36
5.6.240.0050.00514.32
5.6.230.0070.00714.25
5.6.220.0060.00614.15
5.6.210.0040.00714.50
5.6.200.0070.01114.10
5.6.190.0120.00614.39
5.6.180.0060.00614.36
5.6.170.0030.01214.39
5.6.160.0030.00914.11
5.6.150.0070.00314.27
5.6.140.0030.01014.22
5.6.130.0100.00714.31
5.6.120.0030.00714.43
5.6.110.0030.01314.43
5.6.100.0040.01214.48
5.6.90.0140.00314.38
5.6.80.0070.00314.41
5.6.70.0000.01014.16
5.6.60.0070.00714.39
5.6.50.0000.00814.04
5.6.40.0120.00314.18
5.6.30.0000.00914.29
5.6.20.0030.01014.11
5.6.10.0030.01214.19
5.6.00.0090.00614.32

preferences:
35.81 ms | 400 KiB | 5 Q