3v4l.org

run code in 300+ PHP versions simultaneously
<?php function search($input) { $result = $input; for($a=0;$a<count($input);$a++) { for($b=0;$b<count($input);$a++) { $d=""; for($c=1;$c<$b;$c++) { $d = $d . $input[$a+$c]; } print $d; $result[]= $d; } } return array_filter(array_unique($result)); } print json_encode(search(["a", "b"])) . "\n"; print json_encode(search(["a", "b", "c"]));

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.70.0600.06750.38
8.3.60.0660.06049.60
8.3.50.0250.07751.31
8.3.40.0370.03335.66
8.3.30.0390.02636.11
8.3.20.0190.01937.21
8.3.10.0130.01939.65
8.3.00.0090.01837.39
8.2.180.0230.06450.27
8.2.170.0260.05535.92
8.2.160.0240.04237.24
8.2.150.0170.02136.21
8.2.140.0230.01637.46
8.2.130.0100.01740.37
8.2.120.0030.02340.14
8.2.110.0100.03840.19
8.2.100.0210.03534.84
8.2.90.0070.03836.14
8.2.80.0130.02934.87
8.2.70.0220.02934.59
8.2.60.0070.03835.09
8.2.50.0140.02834.68
8.2.40.0100.03135.28
8.2.30.0170.02435.20
8.2.20.0140.02834.76
8.2.10.0100.04235.20
8.2.00.0130.05034.81
8.1.280.0370.04050.03
8.1.270.0110.01839.97
8.1.260.0230.00735.89
8.1.250.0030.01939.88
8.1.240.0070.02742.04
8.1.230.0270.01336.20
8.1.220.0170.01334.74
8.1.210.0060.02534.43
8.1.200.0160.01634.27
8.1.190.0100.02434.36
8.1.180.0100.02034.31
8.1.170.0100.01735.65
8.1.160.0040.02638.99
8.1.150.0110.01835.73
8.1.140.0060.02334.51
8.1.130.0160.01034.82
8.1.120.0140.01734.43
8.1.110.0060.02234.49
8.1.100.0070.02234.38
8.1.90.0170.01434.57
8.1.80.0130.01334.51
8.1.70.0030.02634.39
8.1.60.0130.03434.66
8.1.50.0190.01634.50
8.1.40.0280.00734.50
8.1.30.0100.02634.64
8.1.20.0150.02134.65
8.1.10.0100.05550.56
8.1.00.0200.04650.39
8.0.300.0160.03550.20
8.0.290.0260.03250.10
8.0.280.0230.03251.35
8.0.270.0130.04450.18
8.0.260.0200.03649.70
8.0.250.0110.04349.90
8.0.240.0200.03749.87
8.0.230.0130.04349.69
8.0.220.0140.03949.72
8.0.210.0200.03749.68
8.0.200.0250.02949.84
8.0.190.0300.03449.81
8.0.180.0300.05749.80
8.0.170.0200.04949.85
8.0.160.0330.03949.88
8.0.150.0240.04149.81
8.0.140.0260.04249.73
8.0.130.0590.09378.27
8.0.120.0320.03649.67
8.0.110.0170.04849.79
8.0.100.0240.04149.77
8.0.90.0210.04549.65
8.0.80.0450.08449.75
8.0.70.0230.04349.67
8.0.60.0160.04549.78
8.0.50.0170.05049.83
8.0.30.0760.05850.03
8.0.20.0610.07350.05
8.0.10.0070.05749.94
8.0.00.0640.06949.65
7.4.330.0160.02549.08
7.4.320.0170.03849.44
7.4.300.0210.03849.30
7.4.290.0370.05149.49
7.4.280.0270.03749.38
7.4.270.0200.04349.45
7.4.260.0360.05249.38
7.4.250.0200.05149.36
7.4.240.0150.05349.40
7.4.230.0270.04049.57
7.4.220.0870.05449.44
7.4.210.0540.06049.42
7.4.200.0210.04549.55
7.4.190.0240.04449.66
7.4.160.0670.06449.31
7.4.150.0900.05349.54
7.4.140.0730.08849.36
7.4.130.0560.07249.37
7.4.120.0630.07949.59
7.4.110.0590.07049.44
7.4.100.0750.06549.41
7.4.90.0530.08049.59
7.4.80.0640.08149.30
7.4.70.0670.05449.43
7.4.60.0470.07749.47
7.4.50.0210.04849.54
7.4.40.0260.07849.07
7.4.30.0590.08249.19
7.4.00.0330.06747.64
7.3.330.0500.08978.24
7.3.320.0470.08778.13
7.3.310.0230.04749.30
7.3.300.0200.04649.36
7.3.290.0910.08149.24
7.3.280.0700.07949.25
7.3.270.0500.09449.28
7.3.260.0830.07449.21
7.3.250.0780.09549.40
7.3.240.0540.09349.27
7.3.230.0630.08749.43
7.3.210.0710.08949.18
7.3.200.0650.07549.35
7.3.190.0910.05549.57
7.3.180.0620.07649.39
7.3.170.0590.07249.58
7.3.160.0580.07749.30
7.3.120.0460.06248.10
7.3.10.1090.05450.73
7.3.00.0500.07150.50
7.2.330.0430.09849.73
7.2.320.0620.08849.38
7.2.310.0640.09949.71
7.2.300.0610.07849.67
7.2.290.0730.06649.20
7.2.130.0460.06650.79
7.2.120.1200.04950.98
7.2.110.0370.05750.82
7.2.100.0330.06950.67
7.2.90.0170.06950.97
7.2.80.0300.04750.88
7.2.70.0160.05950.95
7.2.60.0320.05550.82
7.2.50.0440.06450.56
7.2.40.0370.05850.80
7.2.30.0170.06050.82
7.2.20.0290.06550.82
7.2.10.0170.05750.63
7.2.00.0130.05752.11
7.1.250.0460.16849.62
7.1.240.0300.17149.68
7.1.230.0330.16849.89
7.1.220.0170.17249.92
7.1.210.0330.17449.67
7.1.200.0670.11649.85
7.1.190.0230.17149.91
7.1.180.0230.16149.52
7.1.170.0130.18249.86
7.1.160.0230.18249.61
7.1.150.0200.16049.89
7.1.140.0200.18349.80
7.1.130.0160.17549.95
7.1.120.0200.16049.57
7.1.110.0370.15449.79
7.1.100.0470.09439.04
7.1.90.0160.17149.93
7.1.80.0130.18349.55
7.1.70.0560.12350.60
7.1.60.0190.11250.51
7.1.50.0130.13150.39
7.1.40.0200.18149.87
7.1.30.0100.16349.83
7.1.20.0100.16749.67
7.1.10.0130.15749.50
7.1.00.0130.16353.02
7.0.330.0790.16149.15
7.0.320.0440.16149.56
7.0.310.0200.17949.45
7.0.300.0130.16949.50
7.0.290.0200.16249.37
7.0.280.0170.16049.51
7.0.270.0300.16149.50
7.0.260.0270.16049.53
7.0.250.0130.16549.55
7.0.240.0100.17649.64
7.0.230.0170.16749.37
7.0.220.0100.19149.35
7.0.210.0070.16749.52
7.0.200.4560.11149.04
7.0.190.0100.16549.55
7.0.180.0000.17449.48
7.0.170.0100.16849.48
7.0.160.0070.16249.51
7.0.150.0100.16449.27
7.0.140.0100.15752.83
7.0.130.0170.15549.52
7.0.120.0070.16649.48
7.0.110.0030.17749.31
7.0.100.0100.16349.67
7.0.90.4730.13451.14
7.0.80.4920.15451.24
7.0.70.4980.15551.12
7.0.60.4630.13251.29
7.0.50.5330.14651.40
7.0.40.5270.14549.79
7.0.30.5320.14149.76
7.0.20.4830.15549.77
7.0.10.4630.15449.75
7.0.00.4080.14649.77
5.6.380.0430.18979.25
5.6.370.0370.19379.07
5.6.360.0360.20179.23
5.6.350.0330.19279.18
5.6.340.0230.20578.86
5.6.330.0230.20379.26
5.6.320.0270.19779.30
5.6.310.0230.18579.12
5.6.300.0300.20278.43
5.6.290.0430.18079.28
5.6.280.0280.19382.52
5.6.270.0270.19379.27
5.6.260.0530.18178.83
5.6.250.0260.20579.20
5.6.240.0220.18082.10
5.6.230.0370.18582.19
5.6.220.0320.18082.18
5.6.210.0380.17882.04
5.6.200.0280.21382.25
5.6.190.0220.19482.29
5.6.180.0350.18182.37
5.6.170.0230.20982.31
5.6.160.0250.19582.47
5.6.150.0300.17582.50
5.6.140.0380.19082.24
5.6.130.0270.20382.39
5.6.120.0230.18182.33
5.6.110.0380.18182.30
5.6.100.0280.22082.39
5.6.90.0330.16582.46
5.6.80.0370.17581.80
5.6.70.0380.16382.25
5.6.60.0180.17882.01
5.6.50.0450.14582.02
5.6.40.0370.14881.88
5.6.30.0280.15281.92
5.6.20.0320.15682.03
5.6.10.0230.16981.93
5.6.00.0200.16581.99
5.5.380.0220.15580.56
5.5.370.0200.20980.35
5.5.360.0350.19580.49
5.5.350.0230.17680.49
5.5.340.0380.18880.51
5.5.330.0360.19680.54
5.5.320.0320.18580.55
5.5.310.0250.20180.71
5.5.300.0350.19380.57
5.5.290.0280.19280.84
5.5.280.0350.18580.72
5.5.270.0370.19280.65
5.5.260.0260.22680.66
5.5.250.0380.19680.49
5.5.240.0410.15480.31
5.5.230.0200.17180.33
5.5.220.0250.17080.31
5.5.210.0200.16580.29
5.5.200.0240.17080.39
5.5.190.0280.16280.35
5.5.180.0280.19180.30
5.5.170.0400.17575.62
5.5.160.0200.17380.25
5.5.150.0220.15980.35
5.5.140.0370.16180.27
5.5.130.0330.15180.22
5.5.120.0150.16780.31
5.5.110.0270.15980.11
5.5.100.0230.17880.21
5.5.90.0300.17080.37
5.5.80.0250.17380.38
5.5.70.0300.19380.24
5.5.60.0270.17880.31
5.5.50.0260.19080.28
5.5.40.0380.14880.33
5.5.30.0250.19880.15
5.5.20.0270.18180.38
5.5.10.0300.15480.05
5.5.00.0380.17980.26
5.4.450.0270.16679.83
5.4.440.0350.16879.85
5.4.430.0280.16879.93
5.4.420.0260.22579.77
5.4.410.0400.19879.68
5.4.400.0370.18079.81
5.4.390.0280.16779.69
5.4.380.0280.16179.78
5.4.370.0170.17179.61
5.4.360.0130.18979.69
5.4.350.0180.16679.79
5.4.340.0360.14679.53
5.4.330.0230.20075.67
5.4.320.0220.16179.71
5.4.310.0170.16779.65
5.4.300.0220.16179.66
5.4.290.0150.17079.71
5.4.280.0220.15979.87
5.4.270.0280.16179.52
5.4.260.0420.14679.71
5.4.250.0320.19479.48
5.4.240.0430.18079.79
5.4.230.0230.19379.79
5.4.220.0330.18879.71
5.4.210.0430.18379.53
5.4.200.0350.16279.43
5.4.190.0230.16879.79
5.4.180.0380.17579.63
5.4.170.0330.17579.63
5.4.160.0300.18179.54
5.4.150.0300.18679.68
5.4.140.0320.19778.37
5.4.130.0400.15478.35
5.4.120.0250.19678.21
5.4.110.0300.18878.22
5.4.100.0200.17878.40
5.4.90.0320.17878.18
5.4.80.0220.20078.37
5.4.70.0330.17278.47
5.4.60.0250.17778.32
5.4.50.0210.19078.39
5.4.40.0350.18978.45
5.4.30.0380.15578.25
5.4.20.0300.16778.44
5.4.10.0330.19978.37
5.4.00.0330.16478.14
5.3.290.0020.02812.51
5.3.280.0030.02812.44
5.3.270.0070.03912.43
5.3.260.0050.02112.53
5.3.250.0090.03512.42
5.3.240.0050.03612.37
5.3.230.0030.03812.47
5.3.220.0030.04012.43
5.3.210.0050.03212.39
5.3.200.0040.04012.34
5.3.190.0070.02012.38
5.3.180.0040.04112.41
5.3.170.0050.04012.54
5.3.160.0080.03612.52
5.3.150.0120.03012.59
5.3.140.0030.03012.58
5.3.130.0030.02612.52
5.3.120.0090.02112.54
5.3.110.0130.03712.41
5.3.100.0050.03912.08
5.3.90.0110.03412.24
5.3.80.0080.03912.13
5.3.70.0090.04012.16
5.3.60.0030.03912.04
5.3.50.0050.03012.05
5.3.40.0090.02112.14
5.3.30.0140.03712.03
5.3.20.0070.03612.09
5.3.10.0060.04211.95
5.3.00.0070.04011.89
5.2.170.0030.03710.66
5.2.160.0020.03810.67
5.2.150.0060.03410.69
5.2.140.0080.02510.70
5.2.130.0110.03010.67
5.2.120.0070.02210.71
5.2.110.0070.03410.66
5.2.100.0070.01710.58
5.2.90.0030.03610.58
5.2.80.0050.03310.63
5.2.70.0050.02810.58
5.2.60.0100.03210.55
5.2.50.0090.03010.62
5.2.40.0060.03310.54
5.2.30.0040.03610.64
5.2.20.0080.02510.63
5.2.10.0030.03310.49
5.2.00.0020.03210.50
5.1.60.0050.02810.14
5.1.50.0060.01810.10
5.1.40.0040.01510.00
5.1.30.0030.02510.22
5.1.20.0050.02710.32
5.1.10.0070.02910.16
5.1.00.0080.02810.06
5.0.50.0080.0239.37
5.0.40.0080.0139.30
5.0.30.0040.0269.24
5.0.20.0050.0199.13
5.0.10.0050.0229.19
5.0.00.0020.0319.21
4.4.90.0000.0158.75
4.4.80.0030.0188.75
4.4.70.0050.0198.75
4.4.60.0030.0158.75
4.4.50.0000.0238.75
4.4.40.0030.0258.75
4.4.30.0030.0108.75
4.4.20.0000.0218.75
4.4.10.0020.0168.75
4.4.00.0070.0198.75
4.3.110.0050.0188.75
4.3.100.0010.0208.75
4.3.90.0050.0188.75
4.3.80.0060.0218.75
4.3.70.0020.0138.75
4.3.60.0060.0158.75
4.3.50.0050.0188.75
4.3.40.0040.0188.75
4.3.30.0020.0138.75
4.3.20.0020.0168.75
4.3.10.0020.0218.75
4.3.00.0050.0168.75

preferences:
48.91 ms | 401 KiB | 5 Q