3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all( '#\[(link)(.*?)!?\](.*?)\[\/\\1\]#i', '[link href="http://www.google.com" title="Google" target="_blank"]Google[/link][link href="http://www.facebook.com"]Facebook[/link] [link href=\'http://www.twitter.com\' rel="nofollow"]Twitter[/link]', $StrMatches ); /* $StrMatches[0] = Full tag string * $StrMatches[1] = Tag name * $StrMatches[2] = tag params string * $StrMatches[3] = Tag content * */ print_r($StrMatches);

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.0030.01218.39
8.3.50.0110.00723.00
8.3.40.0090.01218.84
8.3.30.0140.00319.11
8.3.20.0030.00620.34
8.3.10.0040.00420.65
8.3.00.0060.00319.38
8.2.180.0090.00618.45
8.2.170.0070.01422.96
8.2.160.0030.01220.49
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00421.00
8.2.110.0060.00320.50
8.2.100.0040.00717.91
8.2.90.0020.00519.05
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0030.00617.90
8.2.50.0060.00318.07
8.2.40.0090.00018.03
8.2.30.0000.00719.38
8.2.20.0050.00317.62
8.2.10.0040.00418.05
8.2.00.0000.00817.75
8.1.280.0110.00425.92
8.1.270.0040.00422.03
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00423.74
8.1.230.0000.01119.09
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0020.01217.35
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0110.00018.71
8.1.160.0070.00022.00
8.1.150.0080.00018.91
8.1.140.0040.00417.41
8.1.130.0070.00017.71
8.1.120.0050.00217.52
8.1.110.0030.00517.50
8.1.100.0030.00417.40
8.1.90.0000.00717.48
8.1.80.0070.00017.46
8.1.70.0000.00717.41
8.1.60.0060.00317.45
8.1.50.0000.00817.41
8.1.40.0000.00717.45
8.1.30.0000.00817.67
8.1.20.0040.00417.70
8.1.10.0080.00017.65
8.1.00.0030.00517.49
8.0.300.0000.00918.77
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0070.00017.18
8.0.260.0030.00317.18
8.0.250.0050.00316.93
8.0.240.0030.00317.01
8.0.230.0030.00316.88
8.0.220.0040.00416.93
8.0.210.0040.00416.86
8.0.200.0000.00816.93
8.0.190.0030.00317.00
8.0.180.0040.00417.03
8.0.170.0000.00916.93
8.0.160.0080.00016.85
8.0.150.0070.00016.89
8.0.140.0040.00416.89
8.0.130.0060.00013.35
8.0.120.0030.00516.78
8.0.110.0030.00616.79
8.0.100.0040.00416.79
8.0.90.0070.00016.82
8.0.80.0060.01516.97
8.0.70.0000.00816.96
8.0.60.0090.00016.80
8.0.50.0040.00416.91
8.0.30.0140.00917.33
8.0.20.0100.00917.40
8.0.10.0040.00416.91
8.0.00.0120.00716.85
7.4.330.0030.00315.00
7.4.320.0030.00316.70
7.4.300.0060.00016.58
7.4.290.0030.00316.59
7.4.280.0110.00016.63
7.4.270.0000.00716.70
7.4.260.0000.00716.59
7.4.250.0070.00016.71
7.4.240.0030.00316.64
7.4.230.0030.00316.41
7.4.220.0090.01216.74
7.4.210.0060.01016.75
7.4.200.0050.00316.80
7.4.160.0130.00316.57
7.4.150.0060.01317.40
7.4.140.0120.00817.86
7.4.130.0080.01016.46
7.4.120.0090.00716.54
7.4.110.0090.00916.64
7.4.100.0150.00316.51
7.4.90.0100.00716.58
7.4.80.0060.01219.39
7.4.70.0070.01016.44
7.4.60.0090.00916.70
7.4.50.0040.00416.54
7.4.40.0160.00616.48
7.4.30.0120.00316.64
7.4.00.0070.00715.09
7.3.330.0050.00013.17
7.3.320.0050.00013.24
7.3.310.0040.00416.38
7.3.300.0000.00716.35
7.3.290.0030.01116.25
7.3.280.0050.01216.34
7.3.270.0090.00917.40
7.3.260.0110.00716.38
7.3.250.0090.01016.62
7.3.240.0110.01116.54
7.3.230.0070.01016.39
7.3.210.0040.01316.55
7.3.200.0000.01619.39
7.3.190.0080.00816.35
7.3.180.0060.01016.61
7.3.170.0130.00916.55
7.3.160.0030.01216.48
7.3.10.0040.00916.73
7.3.00.0110.00716.24
7.2.330.0390.01916.43
7.2.320.0070.01016.55
7.2.310.0160.00616.57
7.2.300.0100.00716.42
7.2.290.0030.01316.77
7.2.130.0090.00616.89
7.2.120.0080.00816.78
7.2.110.0160.00716.71
7.2.100.0090.00917.07
7.2.90.0180.00517.09
7.2.80.0060.00916.67
7.2.70.0170.00717.11
7.2.60.0130.00316.96
7.2.50.0060.00616.98
7.2.40.0080.00417.02
7.2.30.0250.00016.93
7.2.20.0130.00716.75
7.2.10.0120.00316.93
7.2.00.0100.00718.16
7.1.250.0090.00515.91
7.1.100.0130.00018.03
7.1.70.0000.01217.36
7.1.60.0130.00619.46
7.1.50.0000.01316.81
7.1.00.0070.06722.59
7.0.200.1200.00615.00
7.0.140.0070.07022.08
7.0.100.0170.05319.96
7.0.90.0070.07719.98
7.0.80.0100.07719.88
7.0.70.0030.04319.96
7.0.60.0230.06019.88
7.0.50.0030.06020.33
7.0.40.0030.08320.04
7.0.30.0070.08020.11
7.0.20.0000.09320.11
7.0.10.0070.07720.11
7.0.00.0070.08320.14
5.6.280.0000.07720.77
5.6.250.0100.04020.75
5.6.240.0100.08320.54
5.6.230.0130.07020.53
5.6.220.0070.07720.57
5.6.210.0000.07720.61
5.6.200.0100.08721.17
5.6.190.0030.04321.11
5.6.180.0070.08321.03
5.6.170.0030.07320.94
5.6.160.0030.08320.93
5.6.150.0030.05021.04
5.6.140.0070.07321.12
5.6.130.0100.08021.01
5.6.120.0130.06721.06
5.6.110.0030.04321.08
5.6.100.0030.05020.93
5.6.90.0070.07720.90
5.6.80.0070.08320.51
5.6.70.0100.06720.30
5.6.60.0170.06720.44
5.6.50.0100.05020.42
5.6.40.0130.07020.39
5.6.30.0030.05020.44
5.6.20.0100.07320.37
5.6.10.0100.04720.43
5.6.00.0070.05720.34
5.5.380.0130.06020.44
5.5.370.0030.04320.34
5.5.360.0100.07320.31
5.5.350.0070.04720.33
5.5.340.0100.07020.91
5.5.330.0100.04020.92
5.5.320.0100.03320.91
5.5.310.0070.08320.88
5.5.300.0030.08320.85
5.5.290.0030.05020.85
5.5.280.0130.07320.79
5.5.270.0200.07320.90
5.5.260.0070.06720.84
5.5.250.0070.08320.68
5.5.240.0130.07720.25
5.5.230.0130.07720.12
5.5.220.0100.03320.28
5.5.210.0070.04720.14
5.5.200.0200.02720.10
5.5.190.0100.08020.14
5.5.180.0070.06320.17
5.5.160.0070.04720.17
5.5.150.0000.05020.11
5.5.140.0030.08320.07
5.5.130.0000.07720.23
5.5.120.0030.08720.07
5.5.110.0100.07320.21
5.5.100.0070.07720.09
5.5.90.0170.04320.14
5.5.80.0070.08020.04
5.5.70.0130.07020.14
5.5.60.0000.07720.10
5.5.50.0070.04020.05
5.5.40.0070.06320.07
5.5.30.0000.06320.03
5.5.20.0130.07020.09
5.5.10.0170.07020.07
5.5.00.0130.07720.02
5.4.450.0130.06719.45
5.4.440.0200.07019.48
5.4.430.0100.07719.35
5.4.420.0070.08019.57
5.4.410.0200.07019.23
5.4.400.0130.07018.95
5.4.390.0130.04319.03
5.4.380.0100.06019.15
5.4.370.0130.05719.09
5.4.360.0030.04318.88
5.4.350.0100.07319.23
5.4.340.0100.07719.22
5.4.320.0030.04019.04
5.4.310.0070.04719.00
5.4.300.0030.04719.20
5.4.290.0070.05719.03
5.4.280.0030.05018.84
5.4.270.0000.08019.12
5.4.260.0100.05719.04
5.4.250.0100.07718.95
5.4.240.0100.07019.04
5.4.230.0070.06719.03
5.4.220.0070.06318.86
5.4.210.0170.06019.17
5.4.200.0100.06318.86
5.4.190.0070.06719.08
5.4.180.0100.04019.03
5.4.170.0170.06719.02
5.4.160.0100.08019.20
5.4.150.0070.06019.05
5.4.140.0130.05716.41
5.4.130.0030.07316.32
5.4.120.0070.07016.41
5.4.110.0100.06316.27
5.4.100.0070.07716.52
5.4.90.0130.03316.48
5.4.80.0100.03716.37
5.4.70.0030.03716.42
5.4.60.0030.04016.34
5.4.50.0070.03316.33
5.4.40.0000.04016.37
5.4.30.0070.03316.45
5.4.20.0030.03716.43
5.4.10.0130.02716.39
5.4.00.0000.03715.88
5.3.290.0100.04314.66
5.3.280.0000.04714.54
5.3.270.0070.07014.72
5.3.260.0070.06014.61
5.3.250.0130.07014.57
5.3.240.0100.04014.72
5.3.230.0030.08314.65
5.3.220.0030.08014.61
5.3.210.0100.06014.55
5.3.200.0100.07314.68
5.3.190.0100.03314.61
5.3.180.0070.03714.54
5.3.170.0030.03714.49
5.3.160.0070.03314.54
5.3.150.0030.03714.51
5.3.140.0070.03014.68
5.3.130.0000.04314.57
5.3.120.0030.03714.64
5.3.110.0030.04314.52
5.3.100.0070.03714.01
5.3.90.0000.03313.94
5.3.80.0030.04013.89
5.3.70.0030.03014.03
5.3.60.0000.03313.98
5.3.50.0070.03313.82
5.3.40.0030.03014.02
5.3.30.0000.04013.79
5.3.20.0000.03013.80
5.3.10.0030.03713.53
5.3.00.0000.03713.56
5.2.170.0030.03011.23
5.2.160.0000.03011.14
5.2.150.0030.02711.13
5.2.140.0000.03011.16
5.2.130.0000.02711.08
5.2.120.0000.03011.11
5.2.110.0030.02311.21
5.2.100.0070.02011.14
5.2.90.0000.02711.12
5.2.80.0070.02311.18
5.2.70.0000.02711.15
5.2.60.0000.03310.94
5.2.50.0000.05011.02
5.2.40.0000.03011.05
5.2.30.0030.02711.03
5.2.20.0000.03310.99
5.2.10.0000.03010.87
5.2.00.0030.02710.64
5.1.60.0030.0279.98
5.1.50.0030.0239.98
5.1.40.0070.0209.80
5.1.30.0070.04010.34
5.1.20.0000.03010.42
5.1.10.0030.02310.09
5.1.00.0000.02710.14
5.0.50.0030.0208.53
5.0.40.0000.0208.53
5.0.30.0030.0338.53
5.0.20.0070.0138.53
5.0.10.0030.0178.53
5.0.00.0000.0338.53
4.4.90.0000.0178.53
4.4.80.0030.0238.53
4.4.70.0000.0138.53
4.4.60.0000.0138.53
4.4.50.0100.0108.53
4.4.40.0000.0308.53
4.4.30.0030.0138.53
4.4.20.0000.0178.53
4.4.10.0030.0138.53
4.4.00.0000.0278.53
4.3.110.0000.0178.53
4.3.100.0000.0178.53
4.3.90.0000.0138.53
4.3.80.0030.0238.53
4.3.70.0030.0138.53
4.3.60.0000.0138.53
4.3.50.0000.0178.53
4.3.40.0000.0308.53
4.3.30.0030.0138.53
4.3.20.0000.0178.53
4.3.10.0000.0178.53
4.3.00.0000.0278.53

preferences:
49.34 ms | 401 KiB | 5 Q