3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourcestring="A string1 A string2 A string3 Of string4 to match"; preg_match_all('/string.{1}/',$sourcestring,$match); $myMatches = ""; foreach($match[0] as $thisMatch){ echo "$thisMatch\n"; $myMatches .= "$thisMatch <br\>"; } echo "My Matchs : $myMatches";

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.40.0200.00319.08
8.3.30.0070.01019.01
8.3.20.0040.00420.29
8.3.10.0080.00023.48
8.3.00.0040.00420.72
8.2.170.0170.00322.96
8.2.160.0100.00320.51
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.98
8.2.110.0030.00622.11
8.2.100.0030.00718.09
8.2.90.0030.00619.34
8.2.80.0050.00317.97
8.2.70.0080.00017.88
8.2.60.0080.00018.05
8.2.50.0090.00018.07
8.2.40.0080.00019.95
8.2.30.0000.00718.28
8.2.20.0040.00417.77
8.2.10.0000.00718.13
8.2.00.0000.00817.83
8.1.270.0040.00423.88
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0080.00419.11
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00317.25
8.1.180.0000.01118.10
8.1.170.0030.00518.65
8.1.160.0070.00021.96
8.1.150.0000.00818.83
8.1.140.0030.00517.56
8.1.130.0000.00717.82
8.1.120.0030.00417.62
8.1.110.0040.00417.67
8.1.100.0040.00417.54
8.1.90.0070.00017.66
8.1.80.0040.00417.58
8.1.70.0070.00017.55
8.1.60.0040.00417.73
8.1.50.0060.00317.54
8.1.40.0080.00017.70
8.1.30.0050.00317.77
8.1.20.0000.00817.72
8.1.10.0030.00517.61
8.1.00.0000.00817.66
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0070.00018.41
8.0.270.0030.00317.32
8.0.260.0040.00417.29
8.0.250.0030.00317.20
8.0.240.0050.00317.10
8.0.230.0030.00317.11
8.0.220.0070.00017.03
8.0.210.0050.00217.01
8.0.200.0060.00016.98
8.0.190.0080.00017.12
8.0.180.0000.00817.11
8.0.170.0030.00517.06
8.0.160.0040.00416.91
8.0.150.0070.00017.00
8.0.140.0000.00716.93
8.0.130.0000.00513.49
8.0.120.0000.00717.06
8.0.110.0000.00717.02
8.0.100.0000.00717.15
8.0.90.0040.00416.87
8.0.80.0110.01117.09
8.0.70.0000.00716.91
8.0.60.0040.00417.06
8.0.50.0080.00017.04
8.0.30.0090.00917.38
8.0.20.0100.00817.40
8.0.10.0040.00417.16
8.0.00.0120.00616.96
7.4.330.0040.00415.00
7.4.320.0000.00716.77
7.4.300.0000.00616.70
7.4.290.0000.00716.62
7.4.280.0000.00816.68
7.4.270.0030.00416.73
7.4.260.0030.00316.71
7.4.250.0000.00716.78
7.4.240.0040.00316.72
7.4.230.0000.00716.86
7.4.220.0090.00916.75
7.4.210.0100.00516.82
7.4.200.0050.00216.91
7.4.190.0080.00016.96
7.4.160.0090.01416.70
7.4.150.0030.01617.40
7.4.140.0140.00617.86
7.4.130.0100.00716.87
7.4.120.0170.00416.76
7.4.110.0090.00916.88
7.4.100.0160.00816.61
7.4.90.0150.00416.68
7.4.80.0110.00719.39
7.4.70.0100.00716.47
7.4.60.0080.00816.61
7.4.50.0030.00616.82
7.4.40.0080.00816.73
7.4.30.0090.00616.80
7.4.00.0080.00814.99
7.3.330.0030.00313.22
7.3.320.0070.00013.18
7.3.310.0000.00616.50
7.3.300.0030.00316.50
7.3.290.0090.00616.43
7.3.280.0110.00716.46
7.3.270.0160.00317.40
7.3.260.0040.01516.53
7.3.250.0150.00516.76
7.3.240.0070.01016.48
7.3.230.0090.00916.39
7.3.210.0100.01016.63
7.3.200.0040.01219.39
7.3.190.0090.00916.84
7.3.180.0030.01316.46
7.3.170.0110.00616.53
7.3.160.0100.01016.43
7.3.120.0070.01014.99
7.3.110.0100.00315.15
7.3.100.0060.01015.00
7.3.90.0040.01015.03
7.3.80.0070.00915.03
7.3.70.0050.00614.98
7.3.60.0050.00815.01
7.3.50.0060.01115.00
7.3.40.0020.01015.04
7.3.30.0090.00414.93
7.3.20.0080.00716.80
7.3.10.0070.00416.81
7.3.00.0030.01216.87
7.2.330.0130.01016.78
7.2.320.0150.00316.69
7.2.310.0080.00916.79
7.2.300.0060.01116.70
7.2.290.0140.00316.78
7.2.250.0070.01115.07
7.2.240.0070.01015.16
7.2.230.0040.01115.30
7.2.220.0070.00715.13
7.2.210.0080.00715.26
7.2.200.0060.00715.28
7.2.190.0040.01315.11
7.2.180.0030.01115.32
7.2.170.0040.00915.10
7.2.80.0070.00317.02
7.2.60.0120.00317.06
7.1.330.0040.01115.92
7.1.320.0040.00716.07
7.1.310.0050.00916.00
7.1.300.0070.01015.94
7.1.290.0080.00415.86
7.1.280.0030.00815.92
7.1.270.0070.00715.94
7.1.260.0040.01115.94
7.1.200.0090.00315.98
7.1.70.0040.00417.06
7.1.60.0030.02019.46
7.1.50.0080.00317.17
7.1.00.0070.07322.46
7.0.200.0070.01016.82
7.0.140.0000.07721.96
7.0.70.0100.05021.77
7.0.60.0030.08721.83
7.0.50.0030.07722.11
7.0.40.0100.08320.05
7.0.30.0070.07720.15
7.0.20.0100.08320.18
7.0.10.0070.07720.00
7.0.00.0070.06320.11
5.6.280.0000.07720.82
5.6.220.0000.07320.68
5.6.210.0100.07720.46
5.6.200.0000.06320.95
5.6.190.0070.03721.06
5.6.180.0070.08320.99
5.6.170.0030.06021.05
5.6.160.0100.06020.93
5.6.150.0070.08321.02
5.6.140.0000.07020.96
5.6.130.0070.06020.93
5.6.120.0030.06321.07
5.6.110.0070.07721.08
5.6.100.0030.09021.02
5.6.90.0030.08721.03
5.6.80.0070.07320.55
5.6.70.0000.08020.41
5.6.60.0030.06020.40
5.6.50.0100.07320.43
5.6.40.0130.07020.46
5.6.30.0000.08320.38
5.6.20.0130.07320.31
5.6.10.0100.08020.34
5.6.00.0070.05720.47
5.5.360.0030.07320.33
5.5.350.0070.08320.48
5.5.340.0070.07320.64
5.5.330.0070.08020.77
5.5.320.0070.05720.80
5.5.310.0070.05020.87
5.5.300.0030.04720.92
5.5.290.0030.08720.89
5.5.280.0030.08020.89
5.5.270.0070.07720.72
5.5.260.0030.08320.82
5.5.250.0030.08320.73
5.5.240.0030.07020.21
5.5.230.0100.07320.30
5.5.220.0030.08020.24
5.5.210.0070.06020.25
5.5.200.0070.05720.26
5.5.190.0030.06720.27
5.5.180.0030.08720.18
5.5.160.0130.07320.26
5.5.150.0030.07320.26
5.5.140.0070.05720.21
5.5.130.0000.08320.16
5.5.120.0070.07020.14
5.5.110.0030.08020.22
5.5.100.0100.07320.09
5.5.90.0100.07720.12
5.5.80.0070.08020.12
5.5.70.0030.08020.00
5.5.60.0030.07720.03
5.5.50.0000.06720.15
5.5.40.0030.07020.13
5.5.30.0030.07319.95
5.5.20.0100.07320.07
5.5.10.0000.08319.97
5.5.00.0100.08019.96
5.4.450.0100.07719.28
5.4.440.0030.08719.11
5.4.430.0100.03319.11
5.4.420.0070.08019.35
5.4.410.0000.06019.27
5.4.400.0000.07019.05
5.4.390.0070.04318.90
5.4.380.0100.04719.05
5.4.370.0030.08019.14
5.4.360.0000.08319.05
5.4.350.0030.07719.02
5.4.340.0000.08018.78
5.4.320.0000.05318.81
5.4.310.0130.07019.00
5.4.300.0070.07319.04
5.4.290.0070.05319.11
5.4.280.0030.08019.09
5.4.270.0030.05318.97
5.4.260.0030.08019.05
5.4.250.0030.07319.07
5.4.240.0000.08019.13
5.4.230.0030.07019.02
5.4.220.0000.08318.97
5.4.210.0070.07319.11
5.4.200.0100.07319.03
5.4.190.0070.06319.09
5.4.180.0030.07718.74
5.4.170.0070.05718.80
5.4.160.0000.04019.07
5.4.150.0070.07718.76
5.4.140.0000.05316.27
5.4.130.0030.07016.25
5.4.120.0070.06716.36
5.4.110.0030.07316.36
5.4.100.0030.07016.21
5.4.90.0070.06016.34
5.4.80.0000.07716.22
5.4.70.0070.07316.30
5.4.60.0000.05016.23
5.4.50.0000.04016.18
5.4.40.0030.07316.35
5.4.30.0030.07316.27
5.4.20.0030.07016.20
5.4.10.0100.07016.33
5.4.00.0100.06015.82
5.3.290.0000.08314.64
5.3.280.0030.07014.41
5.3.270.0000.08714.57
5.3.260.0030.07314.46
5.3.250.0030.06314.58
5.3.240.0030.07014.54
5.3.230.0070.06314.50
5.3.220.0000.05014.55
5.3.210.0000.06014.42
5.3.200.0030.07314.40
5.3.190.0030.07314.56
5.3.180.0030.06314.39
5.3.170.0000.07314.55
5.3.160.0030.04714.43
5.3.150.0000.08014.47
5.3.140.0030.05014.38
5.3.130.0100.07014.55
5.3.120.0030.07714.36
5.3.110.0000.08014.40
5.3.100.0030.07314.03
5.3.90.0030.07013.97
5.3.80.0000.04714.00
5.3.70.0030.07013.92
5.3.60.0030.05713.77
5.3.50.0100.07013.79
5.3.40.0000.07013.93
5.3.30.0030.07313.66
5.3.20.0030.07013.63
5.3.10.0000.04013.56
5.3.00.0030.05713.40
5.2.170.0000.06312.23
5.2.160.0070.05712.23
5.2.150.0070.06012.23
5.2.140.0070.06012.23
5.2.130.0000.05712.23
5.2.120.0030.04712.23
5.2.110.0030.05312.23
5.2.100.0030.04712.23
5.2.90.0130.05012.23
5.2.80.0070.04312.23
5.2.70.0000.06312.23
5.2.60.0070.04712.23
5.2.50.0030.05712.23
5.2.40.0000.06712.23
5.2.30.0030.04712.23
5.2.20.0000.06312.23
5.2.10.0100.05012.23
5.2.00.0000.04712.23
5.1.60.0000.04312.23
5.1.50.0030.05312.23
5.1.40.0030.05312.23
5.1.30.0030.04012.23
5.1.20.0030.05712.23
5.1.10.0070.05012.23
5.1.00.0000.05712.23
5.0.50.0070.04012.23
5.0.40.0030.04312.23
5.0.30.0030.06712.23
5.0.20.0030.03712.23
5.0.10.0000.04312.23
5.0.00.0000.06312.23
4.4.90.0070.03012.23
4.4.80.0030.01312.23
4.4.70.0030.03312.23
4.4.60.0030.03312.23
4.4.50.0000.03312.23
4.4.40.0070.05012.23
4.4.30.0030.03312.23
4.4.20.0030.03312.23
4.4.10.0070.03012.23
4.4.00.0000.03712.23
4.3.110.0030.02712.23
4.3.100.0000.03712.23
4.3.90.0000.03712.23
4.3.80.0000.05312.23
4.3.70.0000.03312.23
4.3.60.0000.03012.23
4.3.50.0000.02312.23
4.3.40.0000.05712.23
4.3.30.0030.02712.23
4.3.20.0000.03712.23
4.3.10.0000.02712.23
4.3.00.0030.03012.23

preferences:
31.67 ms | 400 KiB | 5 Q