3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = 'in the middle 9850112686331(14-15) for Rocco A & Stephanie'; $arr = explode(' ', $subject); $candidates = []; for ($i = 0; $i < count($arr); $i++) { for ($j = $i; $j < count($arr); $j++) { $candidates[] = implode(' ', array_slice($arr, $i, $j - $i + 1)) . PHP_EOL; } } sort($candidates); print_r($candidates);

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.00618.55
8.3.50.0090.01022.10
8.3.40.0070.00718.55
8.3.30.0000.01518.68
8.3.20.0040.01420.07
8.3.10.0000.00821.88
8.3.00.0040.00421.91
8.2.180.0120.00616.50
8.2.170.0070.00722.96
8.2.160.0040.01120.52
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00020.87
8.2.120.0070.00026.35
8.2.110.0000.00920.97
8.2.100.0060.00617.93
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0030.00517.93
8.2.50.0040.00418.09
8.2.40.0000.00820.55
8.2.30.0070.00019.47
8.2.20.0000.00917.72
8.2.10.0080.00018.17
8.2.00.0040.00418.06
8.1.280.0120.00325.92
8.1.270.0070.01122.24
8.1.260.0030.00628.09
8.1.250.0000.00828.09
8.1.240.0070.00322.42
8.1.230.0100.00019.16
8.1.220.0000.00817.91
8.1.210.0030.00618.77
8.1.200.0030.00717.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.41
8.1.160.0040.00420.79
8.1.150.0030.00618.94
8.1.140.0030.00519.65
8.1.130.0070.00017.66
8.1.120.0040.00417.46
8.1.110.0040.00317.46
8.1.100.0040.00417.50
8.1.90.0030.00617.39
8.1.80.0050.00317.45
8.1.70.0070.00017.54
8.1.60.0040.00417.58
8.1.50.0080.00017.57
8.1.40.0060.00317.52
8.1.30.0030.00517.73
8.1.20.0030.00517.66
8.1.10.0080.00017.53
8.1.00.0080.00017.47
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.52
8.0.270.0000.00717.28
8.0.260.0060.00317.30
8.0.250.0000.00716.98
8.0.240.0050.00216.96
8.0.230.0000.00716.86
8.0.220.0070.00016.89
8.0.210.0000.00716.80
8.0.200.0030.00516.93
8.0.190.0030.00516.93
8.0.180.0040.00416.89
8.0.170.0070.00016.95
8.0.160.0020.00516.96
8.0.150.0070.00016.84
8.0.140.0050.00216.75
8.0.130.0030.00313.31
8.0.120.0080.00016.86
8.0.110.0000.00716.91
8.0.100.0040.00416.74
8.0.90.0040.00416.78
8.0.80.0170.00016.87
8.0.70.0030.00516.93
8.0.60.0000.00716.79
8.0.50.0040.00416.85
8.0.30.0120.00217.07
8.0.20.0130.00917.40
8.0.10.0000.00716.87
8.0.00.0100.00916.74
7.4.330.0050.00016.77
7.4.320.0030.00316.55
7.4.300.0000.00716.54
7.4.290.0000.00716.62
7.4.280.0000.00916.63
7.4.270.0030.00316.63
7.4.260.0030.00316.59
7.4.250.0000.00816.48
7.4.240.0030.00516.63
7.4.230.0000.00716.65
7.4.220.0160.00616.59
7.4.210.0080.00716.48
7.4.200.0050.00316.41
7.4.160.0080.00816.60
7.4.150.0110.00717.40
7.4.140.0140.00517.86
7.4.130.0110.01216.40
7.4.120.0080.01116.64
7.4.110.0180.00616.65
7.4.100.0150.00916.53
7.4.90.0120.00516.65
7.4.80.0070.01019.39
7.4.70.0100.00616.58
7.4.60.0100.01016.49
7.4.50.0100.00616.39
7.4.40.0060.01516.68
7.4.30.0140.00816.38
7.4.10.0060.01314.98
7.4.00.0070.00914.95
7.3.330.0000.00613.21
7.3.320.0050.00013.20
7.3.310.0030.00316.31
7.3.300.0050.00216.33
7.3.290.0120.00816.40
7.3.280.0130.00516.39
7.3.270.0120.00617.40
7.3.260.0090.00916.32
7.3.240.0120.00816.44
7.3.230.0090.01216.39
7.3.210.0130.00316.42
7.3.200.0100.00719.39
7.3.190.0110.00716.43
7.3.180.0160.00616.52
7.3.170.0070.01016.65
7.3.160.0060.01316.38
7.3.130.0030.01314.54
7.3.120.0040.01115.01
7.3.110.0070.01414.81
7.3.100.0090.00914.56
7.3.90.0070.00414.75
7.3.80.0040.00815.01
7.3.70.0030.00914.89
7.3.60.0070.00714.85
7.3.50.0070.00714.86
7.3.40.0060.00614.88
7.3.30.0030.01014.73
7.3.20.0060.00616.88
7.3.10.0050.00416.61
7.3.00.0110.00516.65
7.2.330.0140.00516.47
7.2.320.0090.00916.80
7.2.310.0060.01216.36
7.2.300.0070.01316.74
7.2.290.0080.00816.90
7.2.260.0160.00314.81
7.2.250.0070.00715.00
7.2.240.0070.00714.82
7.2.230.0060.00915.21
7.2.220.0070.00714.67
7.2.210.0030.01015.31
7.2.200.0050.00515.07
7.2.190.0060.01215.09
7.2.180.0040.01415.02
7.2.170.0000.00915.15
7.2.160.0120.00315.03
7.2.150.0040.01116.70
7.2.140.0030.01216.89
7.2.130.0080.00417.05
7.2.120.0030.01016.76
7.2.110.0070.00516.59
7.2.100.0060.00516.60
7.2.90.0090.00516.82
7.2.80.0050.00616.90
7.2.70.0030.00916.82
7.2.60.0060.01016.85
7.2.50.0060.00716.89
7.2.40.0090.00616.89
7.2.30.0030.01116.73
7.2.20.0090.00416.70
7.2.10.0050.00716.86
7.2.00.0090.00616.75
7.1.330.0040.01115.85
7.1.320.0060.00315.82
7.1.310.0000.01115.62
7.1.300.0030.01515.88
7.1.290.0080.00415.50
7.1.280.0030.01015.89
7.1.270.0090.00615.61
7.1.260.0070.00715.80
7.1.250.0030.00915.95
7.1.240.0020.01115.88
7.1.230.0010.01115.84
7.1.220.0040.01315.64
7.1.210.0080.00515.84
7.1.200.0040.00915.71
7.1.190.0080.00516.00
7.1.180.0060.00815.70
7.1.170.0050.00815.74
7.1.160.0070.00815.64
7.1.150.0030.00916.04
7.1.140.0080.00615.81
7.1.130.0110.00215.75
7.1.120.0030.00915.67
7.1.110.0020.01415.81
7.1.100.0050.00815.98
7.1.90.0030.00715.68
7.1.80.0070.00715.86
7.1.70.0060.00516.28
7.1.60.0030.01116.92
7.1.50.0050.01116.12
7.1.40.0050.00915.75
7.1.30.0030.00615.71
7.1.20.0060.00415.71
7.1.10.0070.00815.90
7.1.00.0050.03018.01
7.0.330.0080.00415.39
7.0.320.0070.00915.37
7.0.310.0050.00715.27
7.0.300.0030.00515.39
7.0.290.0020.01215.54
7.0.280.0020.00815.39
7.0.270.0040.00915.41
7.0.260.0060.00515.50
7.0.250.0060.00815.35
7.0.240.0080.00515.49
7.0.230.0080.00315.47
7.0.220.0070.00315.45
7.0.210.0050.00915.40
7.0.200.0280.00915.29
7.0.190.0080.00515.46
7.0.180.0100.00515.44
7.0.170.0050.00615.32
7.0.160.0040.00715.43
7.0.150.0060.00515.46
7.0.140.0030.01015.45
7.0.130.0070.00815.55
7.0.120.0050.01015.45
7.0.110.0070.00615.53
7.0.100.0050.00715.31
7.0.90.0030.01015.39
7.0.80.0050.01215.53
7.0.70.0060.00715.39
7.0.60.0130.02817.46
7.0.50.0070.01516.21
7.0.40.0120.02415.67
7.0.30.0160.01715.79
7.0.20.0130.02015.72
7.0.10.0040.02415.76
7.0.00.0100.02815.60
5.6.400.0030.01214.59
5.6.390.0080.00414.67
5.6.380.0060.00814.52
5.6.370.0040.00914.45
5.6.360.0110.00114.77
5.6.350.0030.01014.28
5.6.340.0050.00814.27
5.6.330.0070.00714.35
5.6.320.0020.01014.39
5.6.310.0050.00614.50
5.6.300.0050.01014.58
5.6.290.0090.00414.34
5.6.280.0030.01816.48
5.6.270.0050.00714.52
5.6.260.0090.00514.42
5.6.250.0040.00514.54
5.6.240.0020.01314.48
5.6.230.0040.01014.56
5.6.220.0050.00514.51
5.6.210.0050.03516.47
5.6.200.0050.01815.50
5.6.190.0090.01716.44
5.6.180.0170.02916.45
5.6.170.0070.02516.28
5.6.160.0060.03216.46
5.6.150.0030.01715.65
5.6.140.0080.01515.68
5.6.130.0060.02115.71
5.6.120.0080.01916.71
5.6.110.0060.03016.63
5.6.100.0110.02616.59
5.6.90.0030.01716.56
5.6.80.0090.01516.35
5.6.70.0080.00614.26
5.6.60.0080.00814.24
5.6.50.0050.00814.36
5.6.40.0030.01114.30
5.6.30.0090.00514.24
5.6.20.0080.00514.29
5.6.10.0050.00914.23
5.6.00.0080.00314.30
5.5.380.0070.00713.01
5.5.370.0060.00812.98
5.5.360.0050.00713.03
5.5.350.0190.02615.33
5.5.340.0080.03014.57
5.5.330.0040.01915.29
5.5.320.0200.01915.29
5.5.310.0120.03015.17
5.5.300.0050.01914.47
5.5.290.0060.03314.56
5.5.280.0060.01815.40
5.5.270.0060.03715.50
5.5.260.0070.02115.49
5.5.250.0060.02715.38
5.5.240.0150.02215.28
5.5.230.0060.00812.64
5.5.220.0090.00412.75
5.5.210.0060.00912.83
5.5.200.0070.00312.72
5.5.190.0040.00612.76
5.5.180.0050.00812.89
5.5.170.0050.00814.34
5.5.160.0040.00912.86
5.5.150.0050.00712.79
5.5.140.0080.00212.81
5.5.130.0080.00312.95
5.5.120.0060.00612.74
5.5.110.0030.00712.73
5.5.100.0030.01012.65
5.5.90.0060.00712.64
5.5.80.0090.00412.76
5.5.70.0020.00812.61
5.5.60.0080.00612.74
5.5.50.0030.01212.74
5.5.40.0060.00812.63
5.5.30.0080.00312.78
5.5.20.0050.00712.90
5.5.10.0130.00012.77
5.5.00.0050.00312.75

preferences:
62.54 ms | 401 KiB | 5 Q