3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = array("abcd","abc","de","hjjj","g","wer"); $new_array = array_map('strlen', $my_array);print($new_array);exit; // Show maximum and minimum string length using max() function and min() function echo "The shortest array length is " . min($new_array) . ". The longest array length is " . max($new_array).'.'; ?>

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.0030.01716.50
8.3.50.0110.00922.83
8.3.40.0110.00718.83
8.3.30.0130.00019.10
8.3.20.0030.00520.38
8.3.10.0060.00323.53
8.3.00.0040.00419.50
8.2.180.0150.00616.50
8.2.170.0150.00022.96
8.2.160.0090.00620.58
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0080.00021.09
8.2.110.0060.00320.52
8.2.100.0100.00318.22
8.2.90.0000.00818.90
8.2.80.0000.00917.97
8.2.70.0030.00517.49
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0090.00318.15
8.2.30.0040.00419.49
8.2.20.0040.00417.73
8.2.10.0000.00818.19
8.2.00.0000.00717.75
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0100.00723.81
8.1.230.0090.00319.15
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00917.22
8.1.180.0040.00418.10
8.1.170.0050.00318.49
8.1.160.0000.00822.02
8.1.150.0050.00218.70
8.1.140.0040.00417.30
8.1.130.0000.00717.75
8.1.120.0070.00017.43
8.1.110.0000.00817.36
8.1.100.0040.00417.38
8.1.90.0000.00717.39
8.1.80.0000.00817.34
8.1.70.0000.00817.41
8.1.60.0040.00717.54
8.1.50.0030.00617.58
8.1.40.0040.00417.39
8.1.30.0050.00317.64
8.1.20.0040.00417.61
8.1.10.0030.00617.47
8.1.00.0060.00317.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.46
8.0.270.0030.00317.25
8.0.260.0030.00318.50
8.0.250.0000.00717.08
8.0.240.0040.00416.88
8.0.230.0070.00016.86
8.0.220.0000.00716.79
8.0.210.0070.00016.93
8.0.200.0030.00316.93
8.0.190.0040.00716.91
8.0.180.0000.00716.94
8.0.170.0070.00016.98
8.0.160.0000.00716.85
8.0.150.0070.00016.88
8.0.140.0000.00716.89
8.0.130.0000.00613.30
8.0.120.0040.00416.89
8.0.110.0000.00716.73
8.0.100.0040.00416.91
8.0.90.0040.00416.79
8.0.80.0090.01216.95
8.0.70.0040.00416.79
8.0.60.0000.00816.74
8.0.50.0050.00216.89
8.0.30.0090.01216.90
8.0.20.0100.00817.40
8.0.10.0000.00817.12
8.0.00.0110.00816.74
7.4.330.0000.00515.04
7.4.320.0030.00316.45
7.4.300.0030.00316.34
7.4.290.0000.00716.53
7.4.280.0000.00716.43
7.4.270.0030.00316.55
7.4.260.0040.00416.57
7.4.250.0050.00216.55
7.4.240.0000.00716.36
7.4.230.0000.00716.28
7.4.220.0100.01416.57
7.4.210.0070.00716.50
7.4.200.0000.00716.44
7.4.160.0180.00316.63
7.4.150.0130.00717.40
7.4.140.0080.00817.86
7.4.130.0090.00916.54
7.4.120.0110.00616.46
7.4.110.0060.01116.54
7.4.100.0090.01516.34
7.4.90.0140.00316.45
7.4.80.0100.01319.39
7.4.70.0100.00716.67
7.4.60.0070.01616.61
7.4.50.0030.00616.43
7.4.40.0080.00816.55
7.4.30.0030.01216.52
7.4.00.0080.00814.88
7.3.330.0030.00313.24
7.3.320.0000.00513.19
7.3.310.0000.00816.25
7.3.300.0050.00216.34
7.3.290.0100.01016.37
7.3.280.0080.01016.25
7.3.270.0080.01117.40
7.3.260.0060.01016.30
7.3.250.0060.01116.34
7.3.240.0100.01016.21
7.3.230.0040.01216.40
7.3.210.0080.00816.34
7.3.200.0100.00916.33
7.3.190.0100.00616.50
7.3.180.0130.00316.28
7.3.170.0130.00916.49
7.3.160.0160.00616.25
7.3.120.0070.00914.60
7.3.110.0050.00914.63
7.3.100.0080.00814.82
7.3.90.0070.00414.76
7.3.80.0070.00714.68
7.3.70.0050.01314.66
7.3.60.0040.01014.65
7.3.50.0040.01014.51
7.3.40.0040.00914.69
7.3.30.0100.00314.82
7.3.20.0050.00716.59
7.3.10.0100.00616.55
7.3.00.0090.00716.61
7.2.330.0110.00816.52
7.2.320.0070.01016.72
7.2.310.0100.01416.28
7.2.300.0110.00916.32
7.2.290.0100.00716.38
7.2.250.0090.00915.04
7.2.240.0120.00715.07
7.2.230.0030.01314.86
7.2.220.0060.00514.86
7.2.210.0070.00914.92
7.2.200.0080.00614.95
7.2.190.0070.00614.93
7.2.180.0040.00914.96
7.2.170.0040.00614.89
7.2.00.0030.01019.11
7.1.330.0080.00815.85
7.1.320.0030.00715.81
7.1.310.0040.01015.97
7.1.300.0030.01115.75
7.1.290.0060.00915.76
7.1.280.0040.00915.62
7.1.270.0090.00315.86
7.1.260.0060.00715.90
7.1.100.0260.01116.22
7.1.70.0030.01216.83
7.1.60.0120.01219.46
7.1.50.0150.00716.98
7.1.00.0030.07722.48
7.0.200.0150.00814.76
7.0.140.0030.07322.00
7.0.60.0100.07019.91
7.0.50.0030.04017.84
7.0.40.0030.04319.90
7.0.30.0330.07720.13
7.0.20.0370.07020.30
7.0.10.0100.07720.34
7.0.00.0070.04020.12
5.6.280.0030.07021.02
5.6.210.0200.07020.52
5.6.200.0070.07718.12
5.6.190.0030.04720.60
5.6.180.0170.05720.48
5.6.170.0370.07020.47
5.6.160.0070.08720.43
5.6.150.0100.03718.16
5.6.140.0030.04018.22
5.6.130.0230.06018.12
5.6.120.0130.08021.01
5.6.110.0070.08321.08
5.6.100.0100.06321.12
5.6.90.0100.05321.09
5.6.80.0070.08320.38
5.6.70.4600.03020.27
5.5.350.0170.06720.40
5.5.340.0100.06318.02
5.5.330.0130.05720.28
5.5.320.0270.06320.31
5.5.310.0170.04020.24
5.5.300.0170.04317.87
5.5.290.0100.07717.89
5.5.280.0100.05020.84
5.5.270.0100.08320.78
5.5.260.0170.08020.86
5.5.250.0030.04020.68
5.5.240.0200.06320.36
5.4.450.0230.05019.46
5.4.440.0470.03719.57
5.4.430.0170.04019.38
5.4.420.0200.04319.40
5.4.410.0400.04019.45
5.4.400.0100.04019.26
5.4.390.0100.04718.88
5.4.380.0370.05718.56
5.4.370.0400.05718.67
5.4.360.0330.05318.57
5.4.350.0500.05318.61
5.4.340.0230.06318.67
5.4.320.0050.04112.45
5.4.310.0060.04112.45
5.4.300.0050.03912.45
5.4.290.0100.03812.45
5.4.280.0070.05412.35
5.4.270.0070.04712.35
5.4.260.0200.07612.35
5.4.250.0110.05212.35
5.4.240.0070.04212.35
5.4.230.0080.05012.34
5.4.220.0070.04112.34
5.4.210.0100.05712.34
5.4.200.0060.03812.34
5.4.190.0150.05412.34
5.4.180.0130.04412.34
5.4.170.0110.04812.35
5.4.160.0100.04812.34
5.4.150.0080.04512.34
5.4.140.0060.04312.03
5.4.130.0100.04612.01
5.4.120.0070.04111.97
5.4.110.0060.03911.96
5.4.100.0070.04011.96
5.4.90.0110.04311.97
5.4.80.0050.04711.96
5.4.70.0100.03611.96
5.4.60.0060.03711.96
5.4.50.0080.03511.96
5.4.40.0060.03611.95
5.4.30.0030.03911.95
5.4.20.0060.03611.95
5.4.10.0060.03611.95
5.4.00.0090.03511.44
5.3.290.0070.04112.80
5.3.280.0100.03512.71
5.3.270.0050.04112.73
5.3.260.0080.04312.72
5.3.250.0080.04312.72
5.3.240.0090.03412.71
5.3.230.0030.04212.71
5.3.220.0100.05012.68
5.3.210.0100.06112.68
5.3.200.0230.07512.68
5.3.190.0090.05212.67
5.3.180.0100.04712.68
5.3.170.0140.04612.66
5.3.160.0110.04912.67
5.3.150.0050.05812.68
5.3.140.0120.04312.66
5.3.130.0120.04012.66
5.3.120.0040.04512.66
5.3.110.0050.04412.66
5.3.100.0090.04112.12
5.3.90.0070.03912.08
5.3.80.0090.03612.07
5.3.70.0080.04312.07
5.3.60.0060.04612.06
5.3.50.0080.04512.00
5.3.40.0110.03412.00
5.3.30.0080.03611.95
5.3.20.0090.04511.73
5.3.10.0080.04411.70
5.3.00.0050.04111.68
5.2.170.0110.0369.18
5.2.160.0070.0409.18
5.2.150.0130.0379.18
5.2.140.0060.0459.18
5.2.130.0060.0439.14
5.2.120.0160.0519.14
5.2.110.0050.0339.14
5.2.100.0070.0409.14
5.2.90.0070.0439.15
5.2.80.0070.0359.14
5.2.70.0080.0359.14
5.2.60.0050.0349.09
5.2.50.0060.0329.06
5.2.40.0090.0279.04
5.2.30.0090.0559.01
5.2.20.0120.0389.00
5.2.10.0080.0368.92
5.2.00.0040.0318.79
5.1.60.0040.0258.06
5.1.50.0040.0268.06
5.1.40.0040.0268.04
5.1.30.0070.0308.40
5.1.20.0090.0278.42
5.1.10.0110.0368.14
5.1.00.0120.0318.14
5.0.50.0050.0266.62
5.0.40.0060.0266.48
5.0.30.0050.0426.29
5.0.20.0070.0196.26
5.0.10.0030.0266.24
5.0.00.0050.0346.23
4.4.90.0100.0204.78
4.4.80.0020.0244.76
4.4.70.0050.0164.76
4.4.60.0050.0204.75
4.4.50.0050.0194.77
4.4.40.0050.0324.70
4.4.30.0040.0214.76
4.4.20.0030.0234.84
4.4.10.0070.0184.85
4.4.00.0060.0324.76
4.3.110.0040.0224.66
4.3.100.0050.0184.66
4.3.90.0020.0194.63
4.3.80.0050.0254.59
4.3.70.0030.0154.63
4.3.60.0040.0164.63
4.3.50.0060.0284.63
4.3.40.0040.0284.53
4.3.30.0020.0223.28
4.3.20.0050.0223.26
4.3.10.0020.0253.21
4.3.00.0100.01318.56

preferences:
31.98 ms | 401 KiB | 5 Q