3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = null; $list = array('f1.txt', 'f2.txt', 'f3.txt', 'f4.txt'); $mapping = array_map(function($item) use ($path) { return $path ? $path . $item : $item; }, $list); var_dump($mapping);

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.01216.63
8.3.50.0080.00816.60
8.3.40.0060.00918.63
8.3.30.0040.01118.53
8.3.20.0040.00419.97
8.3.10.0110.00721.78
8.3.00.0080.00019.13
8.2.180.0110.01116.50
8.2.170.0000.01522.96
8.2.160.0070.00720.47
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00021.04
8.2.120.0070.00026.35
8.2.110.0080.00420.56
8.2.100.0070.00417.60
8.2.90.0040.00419.05
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0030.00517.80
8.2.50.0000.00818.10
8.2.40.0070.00020.64
8.2.30.0060.00320.94
8.2.20.0050.00217.93
8.2.10.0000.00717.93
8.2.00.0050.00218.12
8.1.280.0230.00325.92
8.1.270.0030.00622.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.91
8.1.230.0090.00323.96
8.1.220.0000.00917.78
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.96
8.1.160.0050.00219.07
8.1.150.0000.00720.63
8.1.140.0080.00319.49
8.1.130.0000.00718.95
8.1.120.0000.00717.50
8.1.110.0040.00417.43
8.1.100.0000.00717.34
8.1.90.0080.00017.30
8.1.80.0040.00417.47
8.1.70.0020.00517.51
8.1.60.0050.00317.50
8.1.50.0040.00417.40
8.1.40.0000.00717.48
8.1.30.0000.00817.57
8.1.20.0000.00717.67
8.1.10.0000.00717.53
8.1.00.0000.00817.46
8.0.300.0080.00020.07
8.0.290.0040.00416.75
8.0.280.0040.00418.49
8.0.270.0080.00017.16
8.0.260.0000.00716.71
8.0.250.0030.00516.83
8.0.240.0070.00416.79
8.0.230.0030.00316.80
8.0.220.0030.00316.89
8.0.210.0040.00416.90
8.0.200.0000.00716.95
8.0.190.0060.00316.84
8.0.180.0040.00416.93
8.0.170.0070.00016.96
8.0.160.0030.00616.88
8.0.150.0000.00816.71
8.0.140.0000.00816.82
8.0.130.0090.00013.38
8.0.120.0070.00016.76
8.0.110.0040.00416.88
8.0.100.0040.00416.77
8.0.90.0040.00416.90
8.0.80.0120.00316.84
8.0.70.0000.00716.92
8.0.60.0000.00816.80
8.0.50.0000.00716.92
8.0.30.0120.00617.04
8.0.20.0090.01017.40
8.0.10.0050.00316.98
8.0.00.0090.00916.66
7.4.330.0000.00715.55
7.4.320.0000.00616.44
7.4.300.0000.00616.63
7.4.290.0030.00316.39
7.4.280.0030.00516.40
7.4.270.0040.00416.47
7.4.260.0000.00716.34
7.4.250.0030.00316.53
7.4.240.0030.00416.51
7.4.230.0030.00316.48
7.4.220.0120.00616.52
7.4.210.0180.00316.62
7.4.200.0000.00716.41
7.4.160.0080.00716.46
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0120.01216.43
7.4.120.0070.01016.53
7.4.110.0000.01516.51
7.4.100.0030.01316.38
7.4.90.0120.00616.41
7.4.80.0130.00419.39
7.4.70.0110.00516.67
7.4.60.0100.00716.66
7.4.50.0060.01016.36
7.4.40.0120.00416.56
7.4.30.0120.01316.59
7.4.00.0090.01015.00
7.3.330.0050.00013.23
7.3.320.0000.00613.29
7.3.310.0020.00416.11
7.3.300.0030.00316.30
7.3.290.0090.00616.30
7.3.280.0090.00816.28
7.3.270.0090.00917.40
7.3.260.0070.01116.37
7.3.250.0100.00816.40
7.3.240.0080.00916.40
7.3.230.0080.01416.54
7.3.210.0060.01016.39
7.3.200.0070.01016.61
7.3.190.0100.00716.44
7.3.180.0110.00716.45
7.3.170.0070.00816.40
7.3.160.0120.00316.52
7.3.120.0070.01114.78
7.3.110.0030.01415.04
7.3.100.0030.01314.94
7.3.90.0070.00714.63
7.3.80.0060.01015.07
7.3.70.0030.00714.75
7.3.60.0130.00314.78
7.3.50.0030.01314.86
7.3.40.0110.00714.69
7.3.30.0120.00314.75
7.3.20.0000.01416.59
7.3.10.0100.00616.31
7.3.00.0120.00816.32
7.2.330.0090.01016.68
7.2.320.0070.01416.43
7.2.310.0060.01016.70
7.2.300.0070.01016.69
7.2.290.0140.00316.52
7.2.250.0100.00914.88
7.2.240.0110.00714.89
7.2.230.0070.01015.13
7.2.220.0030.01015.09
7.2.210.0050.00514.92
7.2.200.0070.00715.11
7.2.190.0060.00314.95
7.2.180.0090.00614.95
7.2.170.0030.01415.18
7.2.130.0090.00916.21
7.2.120.0120.00816.33
7.2.110.0100.00716.21
7.2.100.0120.00916.18
7.2.90.0160.00516.59
7.2.80.0170.00216.29
7.2.70.0140.00716.49
7.2.60.0090.00816.36
7.2.50.0170.00216.60
7.2.40.0150.00616.50
7.2.30.0120.01216.53
7.2.20.0110.01016.68
7.2.10.0110.00416.73
7.2.00.0110.00617.53
7.1.330.0030.01015.71
7.1.320.0030.00615.84
7.1.310.0070.01015.48
7.1.300.0040.01115.73
7.1.290.0080.00315.71
7.1.280.0000.01615.86
7.1.270.0100.00315.62
7.1.260.0040.00715.63
7.1.250.0090.00815.51
7.1.200.0000.01415.45
7.1.100.0000.01317.80
7.1.70.0100.01017.29
7.1.60.0310.00935.08
7.1.50.0350.01234.82
7.1.40.0410.00734.54
7.1.30.0260.00934.61
7.1.20.0240.01634.73
7.1.10.0090.01216.61
7.1.00.0110.00716.67
7.0.200.0090.01316.86
7.0.190.0160.00616.72
7.0.180.0030.01716.13
7.0.170.0110.00916.21
7.0.160.0050.01416.06
7.0.150.0040.01616.21
7.0.140.0080.01116.28
7.0.130.0080.01116.33
7.0.120.0160.00316.57
7.0.110.0020.01915.98
7.0.100.0040.01616.22
7.0.90.0120.00616.40
7.0.80.0040.01116.23
7.0.70.0100.01016.12
7.0.60.0190.00316.04
7.0.50.0090.00916.18
7.0.40.0090.00916.64
7.0.30.0080.00816.46
7.0.20.0120.00916.48
7.0.10.0060.01416.25
7.0.00.0120.00816.36

preferences:
41.74 ms | 401 KiB | 5 Q