3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = "systematic,gesmar,synthesis,mysterious"; $words=explode(",",$words); $your_array = preg_grep('~(?=[^s]*s)(?=[^m]*m)(?=[^e]*e)~', $words);; print_r($your_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.0110.00716.63
8.3.50.0110.00517.44
8.3.40.0140.00718.58
8.3.30.0040.01118.66
8.3.20.0040.00418.66
8.3.10.0080.00018.77
8.3.00.0100.01617.63
8.2.180.0140.00716.75
8.2.170.0110.00422.96
8.2.160.0080.00621.19
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00321.02
8.2.110.0030.00721.18
8.2.100.0090.00317.91
8.2.90.0050.00519.22
8.2.80.0000.00919.41
8.2.70.0040.00417.75
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0050.00317.97
8.2.30.0080.00017.87
8.2.20.0070.00317.80
8.2.10.0070.00017.80
8.2.00.0040.00417.73
8.1.280.0030.01625.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0070.00322.52
8.1.230.0110.00020.89
8.1.220.0050.00317.76
8.1.210.0000.00818.77
8.1.200.0090.00017.25
8.1.190.0050.00317.40
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0000.00718.84
8.1.150.0000.00718.70
8.1.140.0080.00017.44
8.1.130.0030.00517.82
8.1.120.0000.00717.47
8.1.110.0050.00217.55
8.1.100.0000.00717.48
8.1.90.0040.00417.54
8.1.80.0050.00317.52
8.1.70.0030.00317.53
8.1.60.0000.00917.70
8.1.50.0060.00317.52
8.1.40.0040.00417.61
8.1.30.0000.00817.62
8.1.20.0050.00217.57
8.1.10.0040.00417.60
8.1.00.0040.00417.44
8.0.300.0070.00020.03
8.0.290.0040.00416.88
8.0.280.0000.00718.27
8.0.270.0030.00317.12
8.0.260.0060.00016.94
8.0.250.0020.00517.08
8.0.240.0040.00417.03
8.0.230.0040.00416.92
8.0.220.0000.00716.88
8.0.210.0030.00416.98
8.0.200.0040.00417.03
8.0.190.0040.00416.96
8.0.180.0100.00317.05
8.0.170.0030.00516.94
8.0.160.0040.00317.05
8.0.150.0000.00816.99
8.0.140.0000.00816.90
8.0.130.0030.00313.40
8.0.120.0030.00516.97
8.0.110.0040.00416.79
8.0.100.0070.00016.99
8.0.90.0040.00416.91
8.0.80.0060.01016.84
8.0.70.0040.00416.75
8.0.60.0040.00416.90
8.0.50.0040.00417.00
8.0.30.0000.01816.99
8.0.20.0060.01217.12
8.0.10.0050.00217.15
8.0.00.0090.01216.87
7.4.330.0050.00013.09
7.4.320.0030.00316.73
7.4.300.0060.00016.55
7.4.290.0030.00316.59
7.4.280.0030.00516.71
7.4.270.0030.00616.74
7.4.260.0060.00013.41
7.4.250.0000.00816.64
7.4.240.0020.00516.54
7.4.230.0000.00716.48
7.4.220.0180.00716.54
7.4.210.0070.00816.67
7.4.200.0070.00016.76
7.4.190.0000.00716.54
7.4.160.0110.00616.75
7.4.150.0070.01116.73
7.4.140.0100.00916.52
7.4.130.0100.00816.71
7.4.120.0090.00816.43
7.4.110.0070.01016.61
7.4.100.0090.01516.36
7.4.90.0060.01216.55
7.4.80.0030.01316.80
7.4.70.0090.00916.60
7.4.60.0060.01016.58
7.4.50.0090.00316.41
7.4.40.0030.01616.57
7.4.30.0100.00716.45
7.4.00.0110.00515.18
7.3.330.0000.00613.16
7.3.320.0060.00013.04
7.3.310.0040.00416.24
7.3.300.0000.00716.12
7.3.290.0100.01016.32
7.3.280.0060.01016.32
7.3.270.0070.01016.48
7.3.260.0160.00416.59
7.3.250.0110.01416.43
7.3.240.0170.00616.39
7.3.230.0090.00916.61
7.3.210.0130.00716.38
7.3.200.0130.00319.39
7.3.190.0120.00916.68
7.3.180.0070.00916.28
7.3.170.0060.01516.54
7.3.160.0080.00816.38
7.3.120.0020.01214.91
7.3.110.0090.00914.46
7.3.100.0100.00714.63
7.3.90.0040.01115.04
7.3.80.0030.01014.93
7.3.70.0000.01114.98
7.3.60.0030.01014.53
7.3.50.0090.00614.70
7.3.40.0030.01314.74
7.3.30.0060.00614.74
7.3.20.0040.01116.66
7.3.10.0090.00616.49
7.3.00.0070.00716.90
7.2.330.0070.01016.74
7.2.320.0130.00716.71
7.2.310.0110.00716.66
7.2.300.0060.00916.59
7.2.290.0000.01616.64
7.2.250.0100.01014.96
7.2.240.0100.01015.20
7.2.230.0060.00914.92
7.2.220.0000.01015.27
7.2.210.0030.00715.29
7.2.200.0100.00315.06
7.2.190.0040.00714.71
7.2.180.0110.00414.92
7.2.170.0060.00915.11
7.2.60.0000.01416.93
7.2.00.0080.00819.64
7.1.330.0030.01216.03
7.1.320.0070.00716.11
7.1.310.0070.00715.69
7.1.300.0090.00015.81
7.1.290.0060.00916.04
7.1.280.0000.01215.63
7.1.270.0070.00715.82
7.1.260.0060.00915.86
7.1.200.0070.01015.84
7.1.100.0070.00718.36
7.1.70.0060.00917.28
7.1.60.0140.01019.40
7.1.50.0040.01117.06
7.1.00.0100.06322.56
7.0.200.1280.00714.75
7.0.140.0000.07322.07
7.0.120.0030.06722.04
7.0.60.0030.05721.76
7.0.50.0030.06017.92
7.0.40.0170.08320.20
7.0.30.0270.07020.07
7.0.20.0370.07020.25
7.0.10.0000.07020.34
7.0.00.0070.05320.09
5.6.210.0070.05320.70
5.6.200.0070.06018.15
5.6.190.0070.08720.41
5.6.180.0330.04320.46
5.6.170.0230.07720.54
5.6.160.0070.08320.61
5.6.150.0030.04318.24
5.6.140.0070.03718.24
5.6.130.0130.06018.13
5.6.120.0130.08021.02
5.6.110.0030.08721.02
5.6.100.0070.07321.13
5.6.90.0070.04020.96
5.6.80.0170.07020.26
5.5.350.0200.08320.48
5.5.340.0070.06018.01
5.5.330.0100.08020.29
5.5.320.0270.04720.20
5.5.310.0170.09320.34
5.5.300.0100.07017.98
5.5.290.0070.06717.95
5.5.280.0000.04720.89
5.5.270.0170.07720.78
5.5.260.0070.06320.95
5.5.250.0130.07720.58
5.5.240.0030.08020.14
5.4.450.3430.04019.53
5.4.440.3470.04319.29
5.4.430.4430.04019.25
5.4.420.4430.04719.38
5.4.410.4330.03719.25
5.4.400.0100.07718.94
5.4.390.4000.04019.06
5.4.380.3970.04018.99
5.4.370.3730.04719.13
5.4.360.3970.03719.26
5.4.350.3930.03718.93
5.4.340.3670.03719.26
5.4.320.3830.03319.23
5.4.310.3470.04019.22
5.4.300.4600.03319.24
5.4.290.4600.04319.25
5.4.280.4630.03319.13
5.4.270.4200.04319.20
5.4.260.3800.04018.93
5.4.250.3900.04019.18
5.4.240.4700.04719.21
5.4.230.3800.04019.05
5.4.220.4070.04319.14
5.4.210.3570.04019.22
5.4.200.4500.04718.96
5.4.190.3530.03719.11
5.4.180.3800.05018.96
5.4.170.4730.02719.05
5.4.160.3830.04019.23
5.4.150.3430.02318.95
5.4.140.3930.03316.38
5.4.130.3870.03716.45
5.4.120.3870.04016.45
5.4.110.5400.03316.48
5.4.100.3930.04316.35
5.4.90.4030.04016.32
5.4.80.4330.03716.47
5.4.70.3770.02716.51
5.4.60.3700.02716.55
5.4.50.3370.03016.29
5.4.40.3100.03716.50
5.4.30.3400.03316.52
5.4.20.3370.04016.49
5.4.10.2970.04316.50
5.4.00.3400.03315.86
5.3.290.3870.03314.66
5.3.280.4100.04014.64
5.3.270.4630.03714.63
5.3.260.3830.03314.59
5.3.250.3970.03014.60
5.3.240.3600.04314.59
5.3.230.3770.04314.58
5.3.220.3970.03314.59
5.3.210.3930.02714.47
5.3.200.4670.04314.56
5.3.190.3930.03314.44
5.3.180.3470.03714.60
5.3.170.3900.04314.71
5.3.160.3700.03314.55
5.3.150.3370.03314.55
5.3.140.2330.03714.55
5.3.130.3370.04014.54
5.3.120.3300.04014.54
5.3.110.4270.04014.56
5.3.100.3300.04014.06
5.3.90.3130.03314.16
5.3.80.3730.05014.16
5.3.70.4000.04314.03
5.3.60.3970.02714.05
5.3.50.4900.04014.01
5.3.40.4030.02713.82
5.3.30.4000.03714.07
5.3.20.3970.04013.68
5.3.10.4000.03313.70
5.3.00.4730.03013.63
5.2.170.3400.03711.11
5.2.160.3470.03311.29
5.2.150.4070.03011.18
5.2.140.3070.01711.22
5.2.130.3200.03011.05
5.2.120.3200.02711.10
5.2.110.3730.02711.25
5.2.100.3830.03311.06
5.2.90.3630.03011.13
5.2.80.3330.03011.14
5.2.70.4030.03011.09
5.2.60.3970.02710.93
5.2.50.3870.03011.16
5.2.40.2970.02710.93
5.2.30.2370.03011.13
5.2.20.2530.02310.99
5.2.10.2570.03010.81
5.2.00.3330.02010.71
5.1.60.2900.0179.98
5.1.50.3230.0309.89
5.1.40.3100.0279.96
5.1.30.2800.03310.38
5.1.20.2670.02310.34
5.1.10.2770.02310.05
5.1.00.2670.02310.07
5.0.50.1270.0238.54
5.0.40.1370.0278.37
5.0.30.1200.0408.20
5.0.20.1670.0208.21
5.0.10.1370.0208.14
5.0.00.1470.0308.17
4.4.90.1800.0135.88
4.4.80.1470.0135.88
4.4.70.1600.0175.88
4.4.60.1400.0175.88
4.4.50.1230.0135.88
4.4.40.1400.0275.88
4.4.30.1730.0205.88
4.4.20.1330.0135.93
4.4.10.1570.0205.88
4.4.00.1230.0275.88
4.3.110.1100.0175.88
4.3.100.1170.0175.88
4.3.90.1470.0175.88
4.3.80.1430.0275.88
4.3.70.1470.0135.88
4.3.60.1270.0105.88
4.3.50.1430.0205.88
4.3.40.1530.0275.88
4.3.30.0830.0135.88
4.3.20.1030.0205.88
4.3.10.0930.0275.88
4.3.00.0970.0235.88

preferences:
36.67 ms | 401 KiB | 5 Q