3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?php $arrays = array("generate "," unique "," to "," numbers "," within "," a "); $arrays_1 = array_map('strlen', $my_array); echo "The shortest array length is " . min($arrays_1) . ". The longest array length is " . max($arrays_1).'.'; ?> </html> </body>

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.50
8.3.50.0030.01019.74
8.3.40.0110.00718.85
8.3.30.0070.00719.22
8.3.20.0050.00220.29
8.3.10.0040.00423.32
8.3.00.0040.00419.38
8.2.180.0070.01116.75
8.2.170.0000.01522.96
8.2.160.0070.01020.46
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0030.01126.16
8.2.120.0040.00421.10
8.2.110.0060.00322.09
8.2.100.0090.00318.22
8.2.90.0060.00319.25
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0040.00417.87
8.2.20.0070.00017.64
8.2.10.0000.00818.05
8.2.00.0000.00817.74
8.1.280.0040.01425.92
8.1.270.0000.00823.92
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0060.00323.91
8.1.230.0030.00818.97
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0070.00317.23
8.1.190.0030.00517.11
8.1.180.0090.00018.10
8.1.170.0090.00018.65
8.1.160.0050.00221.86
8.1.150.0030.00518.86
8.1.140.0000.00717.37
8.1.130.0070.00017.80
8.1.120.0040.00417.36
8.1.110.0050.00317.39
8.1.100.0000.00717.27
8.1.90.0030.00317.31
8.1.80.0000.00717.39
8.1.70.0000.00817.33
8.1.60.0000.00917.54
8.1.50.0040.00417.50
8.1.40.0040.00417.37
8.1.30.0000.00817.63
8.1.20.0030.00517.49
8.1.10.0000.00717.60
8.1.00.0000.00717.47
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.46
8.0.270.0000.00717.16
8.0.260.0040.00417.23
8.0.250.0030.00316.87
8.0.240.0080.00016.92
8.0.230.0030.00316.88
8.0.220.0000.00816.77
8.0.210.0040.00416.82
8.0.200.0000.00616.84
8.0.190.0000.00816.96
8.0.180.0050.00316.91
8.0.170.0060.00316.96
8.0.160.0000.00716.71
8.0.150.0000.00716.66
8.0.140.0040.00416.70
8.0.130.0030.00313.24
8.0.120.0000.00816.83
8.0.110.0040.00416.86
8.0.100.0040.00316.80
8.0.90.0070.00016.84
8.0.80.0080.00816.87
8.0.70.0040.00416.78
8.0.60.0070.00016.88
8.0.50.0070.00016.79
8.0.30.0110.00817.17
8.0.20.0150.00917.40
8.0.10.0000.00716.87
8.0.00.0070.01016.76
7.4.330.0060.00015.00
7.4.320.0000.00616.55
7.4.300.0030.00316.55
7.4.290.0000.00716.60
7.4.280.0090.00316.57
7.4.270.0050.00216.39
7.4.260.0030.00616.47
7.4.250.0080.00016.48
7.4.240.0070.00116.60
7.4.230.0000.00716.34
7.4.220.0040.02116.46
7.4.210.0090.00616.47
7.4.200.0070.00016.44
7.4.160.0060.00916.40
7.4.150.0060.01217.40
7.4.140.0090.01117.86
7.4.130.0080.01116.40
7.4.120.0070.01116.41
7.4.110.0070.01016.45
7.4.100.0200.00016.60
7.4.90.0080.00816.47
7.4.80.0120.01219.39
7.4.70.0080.01116.53
7.4.60.0050.01116.54
7.4.50.0040.00416.52
7.4.40.0110.00616.37
7.4.30.0090.00616.37
7.4.00.0030.01314.95
7.3.330.0000.00513.05
7.3.320.0020.00213.10
7.3.310.0070.00016.38
7.3.300.0070.00016.30
7.3.290.0110.00316.27
7.3.280.0100.00816.30
7.3.270.0110.00617.40
7.3.260.0140.00316.30
7.3.250.0120.01216.42
7.3.240.0160.00416.49
7.3.230.0050.01316.57
7.3.210.0120.00416.38
7.3.200.0040.01419.39
7.3.190.0030.01616.39
7.3.180.0060.00916.43
7.3.170.0030.01916.58
7.3.160.0140.00316.58
7.3.10.0040.00416.55
7.3.00.0050.00516.63
7.2.330.0150.00316.45
7.2.320.0090.00916.31
7.2.310.0100.00716.86
7.2.300.0150.00416.45
7.2.290.0060.01616.69
7.2.130.0080.00617.02
7.2.120.0070.00317.03
7.2.110.0070.00717.01
7.2.100.0070.00716.96
7.2.90.0050.00516.95
7.2.80.0030.01016.84
7.2.70.0100.00616.86
7.2.60.0090.00816.96
7.2.50.0110.00416.81
7.2.40.0000.00916.82
7.2.30.0030.00616.73
7.2.20.0090.00616.93
7.2.10.0060.00916.64
7.2.00.0060.00818.08
7.1.250.0000.01115.55
7.1.100.0040.00418.17
7.1.70.0000.00717.09
7.1.60.0160.00719.40
7.1.50.0330.00334.70
7.1.00.0070.07322.36
7.0.200.0030.00516.61
7.0.140.0070.07022.21
7.0.60.0000.08719.90
7.0.50.0070.04017.80
7.0.40.0030.04320.12
7.0.30.0200.03720.13
7.0.20.0300.06720.13
7.0.10.0100.07320.16
7.0.00.0070.04720.19
5.6.280.0000.07720.98
5.6.210.0170.04720.76
5.6.200.0030.05018.08
5.6.190.0070.06720.33
5.6.180.0470.07020.43
5.6.170.0470.05320.40
5.6.160.0100.08720.45
5.6.150.0200.06318.17
5.6.140.0100.08018.13
5.6.130.0000.06718.18
5.6.120.0070.08320.82
5.6.110.0200.06321.07
5.6.100.0100.05720.95
5.6.90.0130.06321.11
5.6.80.0100.08020.35
5.5.350.0270.06320.33
5.5.340.0070.08018.02
5.5.330.0100.08020.56
5.5.320.0470.07020.26
5.5.310.0170.04720.27
5.5.300.0100.06318.01
5.5.290.0030.04317.99
5.5.280.0070.07720.76
5.5.270.0070.08020.74
5.5.260.0130.07020.66
5.5.250.0170.08320.68
5.5.240.0200.06020.25
5.4.450.0330.03319.56
5.4.440.0170.05019.55
5.4.430.0130.05319.57
5.4.420.0230.04719.60
5.4.410.0130.03319.32
5.4.400.0400.03319.26
5.4.390.0370.03019.21
5.4.380.0400.06018.59
5.4.370.0270.06018.46
5.4.360.0370.05018.68
5.4.350.0400.05318.70
5.4.340.0330.05718.76
5.4.320.0030.03912.45
5.4.310.0050.03812.45
5.4.300.0040.03912.45
5.4.290.0070.03712.45
5.4.280.0060.03512.35
5.4.270.0080.03512.35
5.4.260.0080.03412.35
5.4.250.0060.03812.34
5.4.240.0070.03412.34
5.4.230.0050.03912.34
5.4.220.0110.03912.34
5.4.210.0070.03512.34
5.4.200.0090.03412.34
5.4.190.0030.03812.34
5.4.180.0050.04412.34
5.4.170.0040.04512.34
5.4.160.0060.03512.34
5.4.150.0070.03412.34
5.4.140.0070.03812.02
5.4.130.0030.03812.01
5.4.120.0090.03211.96
5.4.110.0070.03811.96
5.4.100.0050.03611.96
5.4.90.0070.03611.96
5.4.80.0060.03711.96
5.4.70.0070.04911.96
5.4.60.0060.04811.96
5.4.50.0040.03711.96
5.4.40.0110.03411.95
5.4.30.0070.03611.95
5.4.20.0070.04911.95
5.4.10.0090.04511.95
5.4.00.0050.03711.43
5.3.290.0060.03912.80
5.3.280.0060.03712.71
5.3.270.0050.04512.73
5.3.260.0090.04512.72
5.3.250.0060.03912.72
5.3.240.0080.03412.72
5.3.230.0050.03912.71
5.3.220.0090.04012.68
5.3.210.0030.04612.68
5.3.200.0080.03512.68
5.3.190.0040.03812.68
5.3.180.0030.03912.68
5.3.170.0040.03812.67
5.3.160.0070.03712.67
5.3.150.0050.03812.68
5.3.140.0080.04912.66
5.3.130.0070.03812.66
5.3.120.0030.04512.66
5.3.110.0070.03812.65
5.3.100.0080.05412.12
5.3.90.0080.03412.08
5.3.80.0060.03512.08
5.3.70.0050.03612.07
5.3.60.0080.03712.06
5.3.50.0070.03512.00
5.3.40.0060.03612.00
5.3.30.0050.03711.95
5.3.20.0040.03811.72
5.3.10.0060.04611.69
5.3.00.0080.03911.68
5.2.170.0020.0349.18
5.2.160.0050.0299.18
5.2.150.0040.0319.18
5.2.140.0030.0319.18
5.2.130.0030.0319.14
5.2.120.0060.0299.13
5.2.110.0070.0269.14
5.2.100.0060.0289.14
5.2.90.0110.0429.14
5.2.80.0060.0379.13
5.2.70.0080.0309.13
5.2.60.0050.0369.09
5.2.50.0070.0279.05
5.2.40.0070.0269.04
5.2.30.0020.0329.00
5.2.20.0080.0259.00
5.2.10.0050.0278.92
5.2.00.0060.0308.78
5.1.60.0030.0258.06
5.1.50.0040.0258.06
5.1.40.0060.0308.04
5.1.30.0010.0298.39
5.1.20.0060.0268.41
5.1.10.0040.0258.13
5.1.00.0050.0248.14
5.0.50.0030.0206.62
5.0.40.0030.0196.47
5.0.30.0030.0316.29
5.0.20.0040.0196.26
5.0.10.0040.0236.23
5.0.00.0030.0306.23
4.4.90.0030.0154.77
4.4.80.0040.0144.76
4.4.70.0030.0154.75
4.4.60.0030.0204.76
4.4.50.0040.0164.77
4.4.40.0040.0254.71
4.4.30.0020.0164.76
4.4.20.0020.0164.84
4.4.10.0010.0174.85
4.4.00.0060.0224.76
4.3.110.0030.0174.67
4.3.100.0060.0194.67
4.3.90.0050.0174.63
4.3.80.0030.0294.58
4.3.70.0030.0184.63
4.3.60.0020.0174.63
4.3.50.0020.0224.63
4.3.40.0040.0294.54
4.3.30.0050.0183.28
4.3.20.0030.0213.26
4.3.10.0010.0193.22
4.3.00.0030.01715.66

preferences:
60.4 ms | 400 KiB | 5 Q