3v4l.org

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

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.0100.00718.78
8.3.30.0100.00319.07
8.3.20.0050.00320.29
8.3.10.0040.00423.57
8.3.00.0030.00619.40
8.2.170.0100.00722.96
8.2.160.0140.00020.48
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.41
8.2.110.0000.01020.52
8.2.100.0140.00017.88
8.2.90.0000.00819.12
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0050.00217.93
8.2.50.0030.00618.10
8.2.40.0030.00617.97
8.2.30.0030.00518.10
8.2.20.0040.00417.86
8.2.10.0000.00819.83
8.2.00.0000.00817.78
8.1.270.0080.00023.79
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.65
8.1.230.0070.00417.82
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0050.00517.25
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0040.00421.96
8.1.150.0000.00718.82
8.1.140.0040.00417.55
8.1.130.0070.00017.72
8.1.120.0040.00417.60
8.1.110.0030.00517.50
8.1.100.0030.00317.58
8.1.90.0070.00017.63
8.1.80.0080.00017.45
8.1.70.0030.00317.53
8.1.60.0060.00317.61
8.1.50.0090.00017.66
8.1.40.0070.00017.68
8.1.30.0040.00417.75
8.1.20.0070.00017.79
8.1.10.0000.00717.70
8.1.00.0000.00817.69
8.0.300.0070.00418.77
8.0.290.0060.00316.63
8.0.280.0030.00318.45
8.0.270.0030.00317.18
8.0.260.0030.00316.86
8.0.250.0000.00617.07
8.0.240.0040.00416.99
8.0.230.0030.00317.10
8.0.220.0070.00017.04
8.0.210.0050.00316.88
8.0.200.0000.00817.11
8.0.190.0060.00317.00
8.0.180.0030.00717.01
8.0.170.0000.00717.11
8.0.160.0000.00717.14
8.0.150.0050.00316.88
8.0.140.0030.00516.95
8.0.130.0080.00013.47
8.0.120.0000.00817.03
8.0.110.0050.00217.00
8.0.100.0000.00717.09
8.0.90.0080.00017.02
8.0.80.0100.00617.03
8.0.70.0030.00516.90
8.0.60.0040.00417.10
8.0.50.0000.00716.97
8.0.30.0110.00917.27
8.0.20.0100.00917.40
8.0.10.0000.00716.98
8.0.00.0100.01016.80
7.4.330.0000.00515.16
7.4.320.0040.00416.79
7.4.300.0060.00016.62
7.4.290.0000.00816.73
7.4.280.0040.00416.64
7.4.270.0000.00916.84
7.4.260.0050.00216.84
7.4.250.0030.00516.68
7.4.240.0000.00816.79
7.4.230.0070.00016.51
7.4.220.0060.01016.83
7.4.210.0050.00916.75
7.4.200.0070.00016.89
7.4.190.0000.00816.60
7.4.160.0100.01316.62
7.4.150.0130.00417.40
7.4.140.0140.00417.86
7.4.130.0060.01016.65
7.4.120.0130.00616.75
7.4.110.0070.01016.93
7.4.100.0060.01816.66
7.4.90.0140.00316.72
7.4.80.0180.00019.39
7.4.70.0090.00616.64
7.4.60.0090.00616.69
7.4.50.0040.00416.73
7.4.40.0040.00822.77
7.4.30.0090.00616.73
7.4.00.0120.00315.32
7.3.330.0030.00313.33
7.3.320.0000.00513.31
7.3.310.0070.00016.33
7.3.300.0030.00316.50
7.3.290.0060.00816.41
7.3.280.0110.00816.43
7.3.270.0070.01017.40
7.3.260.0100.00716.72
7.3.250.0140.00916.53
7.3.240.0140.00716.74
7.3.230.0060.01016.49
7.3.210.0090.00916.69
7.3.200.0110.01119.39
7.3.190.0120.01016.47
7.3.180.0150.00016.63
7.3.170.0040.01216.68
7.3.160.0120.00416.54
7.3.120.0080.00815.19
7.2.330.0070.01016.78
7.2.320.0070.01016.71
7.2.310.0030.01416.91
7.2.300.0110.00617.01
7.2.290.0150.00916.83
7.2.00.0100.00719.87
7.1.100.0070.00418.34
7.1.70.0000.00817.41
7.1.60.0090.01519.33
7.1.50.0090.01517.33
7.1.00.0030.07722.34
7.0.200.0110.00416.99
7.0.140.0000.07721.98
7.0.100.0070.07719.90
7.0.90.0230.07019.87
7.0.80.0130.04320.00
7.0.70.0070.04020.00
7.0.60.0100.04719.95
7.0.50.0100.08320.39
7.0.40.0030.04320.15
7.0.30.0070.04019.95
7.0.20.0130.03320.00
7.0.10.0070.03720.06
7.0.00.0130.03320.08
5.6.280.0070.07021.10
5.6.250.0070.07720.66
5.6.240.0070.05020.63
5.6.230.0130.07320.54
5.6.220.0070.06720.68
5.6.210.0030.06020.66
5.6.200.0070.06720.91
5.6.190.0070.07321.02
5.6.180.0030.07021.07
5.6.170.0030.04321.06
5.6.160.0000.04320.94
5.6.150.0030.04321.14
5.6.140.0030.04321.07
5.6.130.0000.05021.04
5.6.120.0070.03721.02
5.6.110.0070.04020.89
5.6.100.0030.03721.02
5.6.90.0070.04321.11
5.6.80.0130.02320.49
5.6.70.0070.04020.32
5.6.60.0000.04320.38
5.6.50.0070.03720.44
5.6.40.0130.03020.46
5.6.30.0170.02320.38
5.6.20.0030.03720.36
5.6.10.0000.04020.37
5.6.00.0000.03720.43
5.5.380.0070.06720.54
5.5.370.0070.07320.36
5.5.360.0070.04720.37
5.5.350.0130.07720.39
5.5.340.0100.07720.64
5.5.330.0070.06320.93
5.5.320.0030.06020.93
5.5.310.0070.04020.79
5.5.300.0030.04020.80
5.5.290.0000.04720.62
5.5.280.0000.04020.90
5.5.270.0030.04320.63
5.5.260.0170.03020.88
5.5.250.0030.04320.44
5.5.240.0070.03020.22
5.5.230.0030.03320.10
5.5.220.0030.04020.30
5.5.210.0070.03720.26
5.5.200.0070.03720.10
5.5.190.0100.03320.11
5.5.180.0000.04320.23
5.5.160.0070.04020.20
5.5.150.0070.04720.21
5.5.140.0000.04720.13
5.5.130.0000.04020.27
5.5.120.0030.03720.21
5.5.110.0100.03720.23
5.5.100.0000.03719.98
5.5.90.0070.06320.11
5.5.80.0000.03319.97
5.5.70.0030.03020.03
5.5.60.0030.03020.11
5.5.50.0030.03720.05
5.5.40.0030.03719.93
5.5.30.0030.04020.04
5.5.20.0030.04020.07
5.5.10.0000.03320.04
5.5.00.0100.07320.05
5.4.450.0030.04019.27
5.4.440.0000.04319.47
5.4.430.0070.03719.35
5.4.420.0070.03019.41
5.4.410.0000.04319.30
5.4.400.0100.03019.15
5.4.390.0070.03019.03
5.4.380.0100.03318.98
5.4.370.0070.03319.12
5.4.360.0030.03319.13
5.4.350.0030.03318.95
5.4.340.0000.03319.23
5.4.320.0100.02719.03
5.4.310.0030.03018.79
5.4.300.0000.03719.10
5.4.290.0030.03018.92
5.4.280.0030.06719.01
5.4.270.0100.03019.07
5.4.260.0100.03018.81
5.4.250.0130.02718.80
5.4.240.0070.02719.07
5.4.230.0000.04019.23
5.4.220.0070.03019.13
5.4.210.0030.03718.96
5.4.200.0100.02719.07
5.4.190.0070.05018.77
5.4.180.0130.04019.11
5.4.170.0070.07718.89
5.4.160.0070.04718.92
5.4.150.0000.05319.02
5.4.140.0170.04716.36
5.4.130.0100.07016.32
5.4.120.0100.05316.39
5.4.110.0030.06716.35
5.4.100.0030.04716.30
5.4.90.0030.07716.33
5.4.80.0130.04316.42
5.4.70.0030.04016.25
5.4.60.0100.04716.36
5.4.50.0100.06316.28
5.4.40.0100.06316.38
5.4.30.0070.07316.34
5.4.20.0070.06716.45
5.4.10.0070.07316.31
5.4.00.0030.07315.72
5.3.290.0070.03714.60
5.3.280.0030.03014.41
5.3.270.0000.03314.45
5.3.260.0070.05714.56
5.3.250.0030.07314.55
5.3.240.0030.07314.55
5.3.230.0030.07714.59
5.3.220.0100.07314.52
5.3.210.0070.08314.48
5.3.200.0070.06314.57
5.3.190.0130.07014.56
5.3.180.0030.06314.52
5.3.170.0100.04714.41
5.3.160.0100.07314.58
5.3.150.0070.07014.44
5.3.140.0070.07314.55
5.3.130.0070.05014.55
5.3.120.0030.08014.37
5.3.110.0030.07714.41
5.3.100.0030.07013.88
5.3.90.0070.07713.87
5.3.80.0030.07013.99
5.3.70.0100.07013.77
5.3.60.0070.06313.78
5.3.50.0070.07713.88
5.3.40.0070.07313.86
5.3.30.0000.06013.87
5.3.20.0100.07013.64
5.3.10.0100.06013.62
5.3.00.0030.04313.61
5.2.170.0030.05711.00
5.2.160.0070.05011.14
5.2.150.0030.03711.19
5.2.140.0030.07011.15
5.2.130.0070.05711.08
5.2.120.0070.05311.05
5.2.110.0000.03711.02
5.2.100.0100.05311.15
5.2.90.0030.06310.95
5.2.80.0030.04711.14
5.2.70.0030.06311.04
5.2.60.0030.04311.00
5.2.50.0030.04310.86
5.2.40.0000.03711.04
5.2.30.0070.06010.82
5.2.20.0070.05710.75
5.2.10.0000.06710.93
5.2.00.0030.05010.73
5.1.60.0100.05010.02
5.1.50.0030.0579.87
5.1.40.0130.04710.00
5.1.30.0100.02310.34
5.1.20.0100.05010.27
5.1.10.0000.04010.09
5.1.00.0130.04710.06
5.0.50.0030.0478.54
5.0.40.0000.0408.36
5.0.30.0070.0578.36
5.0.20.0000.0408.36
5.0.10.0030.0478.36
5.0.00.0070.0408.36
4.4.90.0000.0378.36
4.4.80.0030.0378.36
4.4.70.0000.0338.36
4.4.60.0000.0378.36
4.4.50.0030.0308.36
4.4.40.0000.0378.36
4.4.30.0000.0308.36
4.4.20.0030.0308.36
4.4.10.0030.0338.36
4.4.00.0000.0538.36
4.3.110.0030.0308.36
4.3.100.0030.0338.36
4.3.90.0030.0338.36
4.3.80.0000.0578.36
4.3.70.0000.0338.36
4.3.60.0000.0338.36
4.3.50.0000.0208.36
4.3.40.0000.0538.36
4.3.30.0000.0208.36
4.3.20.0030.0378.36
4.3.10.0030.0178.36
4.3.00.0030.0238.36

preferences:
46.62 ms | 400 KiB | 5 Q