3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strs = [ "some string", "another string", ]; $result = array_map(null, $strs, array_fill(0, sizeof($strs), true)); var_dump($result);

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.110.0030.00620.94
8.3.100.0120.00316.60
8.3.90.0120.00626.77
8.3.80.0090.00019.36
8.3.70.0100.00616.58
8.3.60.0070.00718.55
8.3.50.0050.01017.13
8.3.40.0110.00718.53
8.3.30.0100.00618.59
8.3.20.0000.00818.61
8.3.10.0000.00823.48
8.3.00.0040.00420.42
8.2.230.0090.00022.58
8.2.220.0040.00724.06
8.2.210.0070.00726.77
8.2.200.0030.00618.88
8.2.190.0110.00418.31
8.2.180.0070.00718.54
8.2.170.0160.01022.96
8.2.160.0040.01120.53
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0000.00721.04
8.2.110.0060.00322.20
8.2.100.0120.00017.76
8.2.90.0050.00317.78
8.2.80.0040.00417.97
8.2.70.0060.00318.04
8.2.60.0000.00818.03
8.2.50.0050.00318.10
8.2.40.0000.00719.30
8.2.30.0040.00419.28
8.2.20.0000.00717.96
8.2.10.0000.00819.51
8.2.00.0040.00417.59
8.1.290.0030.00630.84
8.1.280.0080.00825.92
8.1.270.0040.00418.79
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00617.36
8.1.230.0070.00320.65
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0060.00318.46
8.1.160.0000.00818.88
8.1.150.0070.00018.80
8.1.140.0000.00722.14
8.1.130.0030.00319.98
8.1.120.0000.00717.48
8.1.110.0040.00417.48
8.1.100.0000.00817.42
8.1.90.0060.00317.50
8.1.80.0040.00417.47
8.1.70.0000.00717.33
8.1.60.0040.00417.62
8.1.50.0030.00517.53
8.1.40.0040.00417.50
8.1.30.0030.00517.63
8.1.20.0080.00017.63
8.1.10.0000.00717.44
8.1.00.0040.00417.36
8.0.300.0030.00519.60
8.0.290.0090.00016.75
8.0.280.0040.00418.35
8.0.270.0030.00317.19
8.0.260.0070.00020.08
8.0.250.0000.00616.78
8.0.240.0030.00316.82
8.0.230.0040.00416.78
8.0.220.0000.00716.72
8.0.210.0000.00616.69
8.0.200.0000.00716.92
8.0.190.0050.00216.86
8.0.180.0020.00516.90
8.0.170.0030.00516.91
8.0.160.0060.00316.95
8.0.150.0090.00016.87
8.0.140.0030.00316.70
8.0.130.0060.00013.36
8.0.120.0020.00516.88
8.0.110.0000.00716.88
8.0.100.0000.00916.69
8.0.90.0000.00816.73
8.0.80.0080.00816.89
8.0.70.0000.00716.95
8.0.60.0000.00717.00
8.0.50.0040.00416.73
8.0.30.0090.00916.99
8.0.20.0070.01117.40
8.0.10.0000.00716.98
8.0.00.0110.00716.86
7.4.330.0000.00415.55
7.4.320.0060.00016.58
7.4.300.0030.00316.57
7.4.290.0060.00016.42
7.4.280.0040.00416.39
7.4.270.0070.00016.59
7.4.260.0000.00916.56
7.4.250.0000.00716.60
7.4.240.0080.00016.51
7.4.230.0000.00716.39
7.4.220.0030.00516.63
7.4.210.0100.00616.57
7.4.200.0030.00316.61
7.4.160.0110.00816.46
7.4.140.0050.01317.86
7.4.130.0130.00316.33
7.4.120.0100.01016.50
7.4.110.0110.00816.51
7.4.100.0030.01316.34
7.4.90.0040.01316.41
7.4.80.0070.01019.39
7.4.70.0040.01516.40
7.4.60.0030.01516.47
7.4.50.0080.00316.36
7.4.40.0100.01316.55
7.4.00.0100.00315.12
7.3.330.0000.00512.88
7.3.320.0030.00312.89
7.3.310.0000.00716.13
7.3.300.0000.00816.18
7.3.290.0030.00316.15
7.3.280.0080.00816.12
7.3.260.0110.00616.25
7.3.240.0110.00716.34
7.3.230.0090.00916.46
7.3.210.0080.00816.34
7.3.200.0080.00916.16
7.3.190.0140.00316.11
7.3.180.0040.01116.06
7.3.170.0140.00716.44
7.3.160.0100.01316.47
7.2.330.0160.00616.27
7.2.320.0090.00616.32
7.2.310.0080.01216.30
7.2.300.0140.00416.51
7.2.290.0080.01016.25
7.2.110.1300.00314.30
7.2.100.1500.00614.63
7.2.90.1650.00714.61
7.2.80.1890.01014.58
7.2.70.1950.00714.93
7.2.60.1580.01014.87
7.2.50.0290.01314.95
7.2.40.0520.01014.96
7.2.30.0070.01314.82
7.2.20.1950.00314.70
7.2.10.1940.00714.73
7.2.00.0200.00314.97
7.1.230.0050.00713.90
7.1.220.1810.00313.72
7.1.210.1600.01013.77
7.1.200.1940.00913.62
7.1.190.0310.00713.77
7.1.180.0160.00013.52
7.1.170.1260.00713.73
7.1.160.2230.00713.73
7.1.150.0790.00313.83
7.1.140.0110.00713.68
7.1.130.1890.01013.67
7.1.120.2040.00313.80
7.1.110.0290.00013.73
7.1.100.0200.00713.79
7.1.90.0860.01113.91
7.1.80.0810.00313.72
7.1.70.0320.00713.44
7.1.60.0330.01031.73
7.1.50.0330.01631.77
7.1.40.1810.00331.75
7.1.30.0460.01831.72
7.1.20.0310.00731.47
7.1.10.0090.01113.89
7.1.00.0150.00013.90
5.6.380.0040.00814.38

preferences:
61.03 ms | 403 KiB | 5 Q