3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = array("3d", "4"); $sentences = array("x-3d-abstract--part--282345", "3d-speed--boat-430419", "beautiful-flower-462451", "3d-d--384967"); foreach ($words as $word) { $sentences_found = array_values(array_filter($sentences, function($find_words) use ($word) {return strpos($find_words, $word);})); } print_r($sentences_found);

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.0150.00016.63
8.3.60.0120.00618.55
8.3.50.0130.00521.98
8.3.40.0100.00318.71
8.3.30.0120.00318.92
8.3.20.0060.00320.09
8.3.10.0040.00421.90
8.3.00.0080.00019.18
8.2.190.0150.00318.17
8.2.180.0120.00325.92
8.2.170.0060.00918.96
8.2.160.0120.00622.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0040.00721.21
8.2.100.0040.00717.72
8.2.90.0030.00517.84
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00317.25
8.2.50.0030.00617.74
8.2.40.0070.00017.63
8.2.30.0000.00820.63
8.2.20.0060.00317.73
8.2.10.0040.00418.06
8.2.00.0040.00417.75
8.1.280.0070.01125.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0060.00320.97
8.1.230.0090.00322.73
8.1.220.0000.00917.79
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0030.00517.35
8.1.180.0030.00518.10
8.1.170.0000.00819.26
8.1.160.0030.00519.00
8.1.150.0070.00018.90
8.1.140.0120.00017.32
8.1.130.0000.00817.49
8.1.120.0000.00817.48
8.1.110.0040.00417.35
8.1.100.0040.00417.46
8.1.90.0000.00717.51
8.1.80.0000.00817.41
8.1.70.0000.00717.34
8.1.60.0030.00617.59
8.1.50.0040.00417.56
8.1.40.0050.00317.39
8.1.30.0000.00817.55
8.1.20.0070.00317.59
8.1.10.0040.00417.54
8.1.00.0040.00417.34
8.0.300.0000.00819.85
8.0.290.0060.00316.75
8.0.280.0040.00418.46
8.0.270.0070.00017.26
8.0.260.0040.00416.73
8.0.250.0100.00017.00
8.0.240.0000.00716.86
8.0.230.0000.00716.87
8.0.220.0040.00416.91
8.0.210.0030.00316.95
8.0.200.0030.00317.00
8.0.190.0080.00016.93
8.0.180.0040.00416.77
8.0.170.0000.00716.93
8.0.160.0000.00816.80
8.0.150.0050.00216.76
8.0.140.0030.00616.89
8.0.130.0030.00313.26
8.0.120.0040.00416.77
8.0.110.0040.00416.73
8.0.100.0000.00716.88
8.0.90.0080.00016.76
8.0.80.0170.00316.82
8.0.70.0040.00416.89
8.0.60.0000.00716.82
8.0.50.0000.00716.70
8.0.30.0100.00717.00
8.0.20.0110.01417.40
8.0.10.0040.00416.99
8.0.00.0100.00716.72
7.4.330.0000.00515.03
7.4.320.0030.00316.53
7.4.300.0000.00716.53
7.4.290.0000.00816.53
7.4.280.0000.00816.50
7.4.270.0000.00716.66
7.4.260.0050.00316.39
7.4.250.0040.00416.52
7.4.240.0030.00316.52
7.4.230.0000.00716.68
7.4.220.0140.00316.71
7.4.210.0090.00816.66
7.4.200.0030.00316.43
7.4.160.0080.00816.59
7.4.150.0070.01317.40
7.4.140.0130.00917.86
7.4.130.0100.00716.40
7.4.120.0070.01416.61
7.4.110.0090.00916.49
7.4.100.0100.00716.32
7.4.90.0120.00416.42
7.4.80.0030.02019.39
7.4.70.0130.00316.54
7.4.60.0130.00316.63
7.4.50.0050.00316.57
7.4.40.0150.00616.40
7.4.30.0140.00316.58
7.4.00.0050.00815.15
7.3.330.0000.00513.25
7.3.320.0030.00313.28
7.3.310.0040.00416.39
7.3.300.0030.00316.25
7.3.290.0000.00716.17
7.3.280.0080.00616.29
7.3.270.0110.00617.40
7.3.260.0000.01716.56
7.3.250.0110.00516.49
7.3.240.0120.00916.19
7.3.230.0080.00816.53
7.3.210.0060.01216.32
7.3.200.0040.01419.39
7.3.190.0090.01216.56
7.3.180.0150.00016.52
7.3.170.0110.01116.34
7.3.160.0090.00616.31
7.3.120.0100.00714.95
7.3.110.0000.01114.71
7.3.100.0000.01615.11
7.3.90.0110.00314.80
7.3.80.0090.00615.08
7.3.70.0070.00714.64
7.3.60.0040.00814.73
7.3.50.0030.01314.77
7.3.40.0090.00314.83
7.3.30.0030.01014.86
7.3.20.0060.00616.80
7.3.10.0000.01116.73
7.3.00.0080.00416.50
7.2.330.0090.00916.58
7.2.320.0150.01216.52
7.2.310.0130.00316.80
7.2.300.0100.01316.58
7.2.290.0080.01216.55
7.2.250.0090.00514.91
7.2.240.0060.01214.96
7.2.230.0100.01015.23
7.2.220.0040.00715.05
7.2.210.0060.00614.88
7.2.200.0110.00414.81
7.2.190.0130.00315.04
7.2.180.0040.01115.00
7.2.170.0070.00415.22
7.2.60.0090.00316.96
7.2.00.0060.00619.32
7.1.330.0060.00915.91
7.1.320.0070.00715.92
7.1.310.0040.01215.43
7.1.300.0030.00915.58
7.1.290.0070.01015.76
7.1.280.0040.00715.84
7.1.270.0030.01015.55
7.1.260.0070.00315.84
7.1.200.0040.00715.78
7.1.100.0610.01315.82
7.1.70.0050.00217.19
7.1.60.0100.01419.57
7.1.50.0030.02016.74
7.1.00.0030.07722.54
7.0.200.0110.00316.81
7.0.140.0130.05321.95
7.0.60.0100.07719.95
7.0.50.0100.08017.83
7.0.40.0100.05020.25
7.0.30.0130.05320.16
7.0.20.0330.08020.09
7.0.10.0200.06320.31
7.0.00.0070.04020.06
5.6.280.0070.07020.86
5.6.210.0130.07320.62
5.6.200.0100.07318.19
5.6.190.0130.05320.62
5.6.180.0030.06020.58
5.6.170.0130.05320.52
5.6.160.0070.08720.47
5.6.150.0000.07018.15
5.6.140.0030.04018.29
5.6.130.0070.07718.19
5.6.120.0030.04021.02
5.6.110.0030.09021.12
5.6.100.0000.04321.11
5.6.90.0000.08321.07
5.6.80.0070.05720.30
5.6.70.0270.06020.38
5.5.350.0030.08320.43
5.5.340.0070.06017.98
5.5.330.0100.08020.19
5.5.320.0030.08720.20
5.5.310.0370.06320.36
5.5.300.0000.04317.93
5.5.290.0070.08717.96
5.5.280.0100.05320.89
5.5.270.0000.04320.85
5.5.260.0000.08020.74
5.5.250.0270.07020.66
5.5.240.0100.07020.27
5.4.450.0570.05319.62
5.4.440.0100.05719.45
5.4.430.0130.05319.54
5.4.420.0070.07319.30
5.4.410.0100.05719.25
5.4.400.0130.05319.25
5.4.390.0130.07019.26
5.4.380.0170.05318.61
5.4.370.0230.04318.59
5.4.360.0230.04318.57
5.4.350.0200.05718.59
5.4.340.0170.05318.46
5.4.320.0130.05718.84
5.4.310.0130.05318.50
5.4.300.0170.05318.56
5.4.290.0100.05718.61
5.4.280.0130.05318.46
5.4.270.0170.05318.74
5.4.260.0330.03718.51
5.4.250.0200.05018.50
5.4.240.0270.04318.79
5.4.230.0170.05318.45
5.4.220.0230.05018.73
5.4.210.0070.06018.55
5.4.200.0070.05716.69
5.4.190.0170.05018.58
5.4.180.0070.06318.50
5.4.170.0130.05718.82
5.4.160.0070.06318.55
5.4.150.0170.05318.75
5.4.140.0130.05316.31
5.4.130.0230.04016.30
5.4.120.0200.05016.33
5.4.110.0200.05016.29
5.4.100.0130.05316.29
5.4.90.0130.05316.33
5.4.80.0230.04316.31
5.4.70.0200.04716.25
5.4.60.0270.03716.30
5.4.50.0170.04716.30
5.4.40.0130.05316.20
5.4.30.0230.04016.22
5.4.20.0200.05016.41
5.4.10.0200.04316.22
5.4.00.0100.05315.82
5.3.290.0170.05714.72
5.3.280.0170.05314.63
5.3.270.0230.04714.61
5.3.260.0200.05314.77
5.3.250.0130.05314.73
5.3.240.0200.04714.79
5.3.230.0100.06014.76
5.3.220.0170.06314.67
5.3.210.0300.04014.64
5.3.200.0130.05314.67
5.3.190.0200.05714.67
5.3.180.0130.05314.56
5.3.170.0200.04714.66
5.3.160.0230.04714.56
5.3.150.0200.04714.63
5.3.140.0170.05014.55
5.3.130.0130.05714.67
5.3.120.0130.05714.56
5.3.110.0170.05314.57
5.3.100.0170.05014.16
5.3.90.0270.04314.00
5.3.80.0330.03314.09
5.3.70.0270.04014.24
5.3.60.0230.04313.98
5.3.50.0230.05314.01
5.3.40.0130.05313.95
5.3.30.0100.05313.96
5.3.20.0270.03713.75
5.3.10.0100.05313.64
5.3.00.0130.05313.85
5.2.170.0130.04011.19
5.2.160.0170.03711.20
5.2.150.0070.04711.21
5.2.140.0170.03711.18
5.2.130.0100.04011.02
5.2.120.0100.04011.24
5.2.110.0200.03311.14
5.2.100.0100.04011.01
5.2.90.0130.04011.14
5.2.80.0200.03711.08
5.2.70.0100.04311.15
5.2.60.0130.03711.11
5.2.50.0100.04310.95
5.2.40.0100.04011.05
5.2.30.0100.04310.88
5.2.20.0130.03710.94
5.2.10.0200.03010.90
5.2.00.0170.03310.69
5.1.60.0030.04010.10
5.1.50.0100.0339.95
5.1.40.0070.03710.04
5.1.30.0170.03010.43
5.1.20.0070.04010.32
5.1.10.0100.03310.05
5.1.00.0100.03310.06
5.0.50.0100.0308.53
5.0.40.0030.0308.45
5.0.30.0030.0478.29
5.0.20.0070.0278.34
5.0.10.0030.0308.34
5.0.00.0100.0408.29
4.4.90.0030.0235.87
4.4.80.0070.0205.89
4.4.70.0070.0205.87
4.4.60.0030.0235.93
4.4.50.0100.0175.96
4.4.40.0070.0335.86
4.4.30.0000.0275.91
4.4.20.0070.0205.89
4.4.10.0030.0235.93
4.4.00.0100.0305.96
4.3.110.0030.0235.81
4.3.100.0070.0205.83
4.3.90.0070.0205.79
4.3.80.0000.0375.79
4.3.70.0100.0135.84
4.3.60.0000.0235.81
4.3.50.0070.0205.83
4.3.40.0100.0305.74
4.3.30.0000.0234.60
4.3.20.0030.0204.57
4.3.10.0000.0234.49
4.3.00.0100.0207.21

preferences:
19.31 ms | 401 KiB | 5 Q