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.0100.01018.55
8.3.50.0150.00222.92
8.3.40.0100.01318.84
8.3.30.0070.00718.92
8.3.20.0000.00820.32
8.3.10.0000.00820.53
8.3.00.0030.00519.38
8.2.180.0140.00316.50
8.2.170.0220.00022.96
8.2.160.0060.01020.34
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0090.00026.16
8.2.120.0040.00421.12
8.2.110.0100.00720.52
8.2.100.0060.00617.91
8.2.90.0040.00419.13
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0090.00017.68
8.2.50.0080.00418.07
8.2.40.0080.00018.03
8.2.30.0070.00019.46
8.2.20.0020.00517.65
8.2.10.0040.00417.89
8.2.00.0000.00717.69
8.1.280.0100.01025.92
8.1.270.0090.00021.88
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.79
8.1.230.0080.00419.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00417.25
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0030.00718.70
8.1.160.0050.00221.99
8.1.150.0080.00018.77
8.1.140.0040.00417.41
8.1.130.0000.00717.72
8.1.120.0000.00717.54
8.1.110.0040.00417.46
8.1.100.0000.00717.47
8.1.90.0040.00417.39
8.1.80.0030.00517.40
8.1.70.0000.00717.44
8.1.60.0000.00817.63
8.1.50.0000.00717.59
8.1.40.0040.00417.45
8.1.30.0080.00017.63
8.1.20.0040.00417.63
8.1.10.0040.00417.63
8.1.00.0000.00817.61
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0040.00418.26
8.0.270.0000.00717.17
8.0.260.0080.00017.17
8.0.250.0030.00316.97
8.0.240.0040.00416.94
8.0.230.0070.00016.98
8.0.220.0000.00716.95
8.0.210.0030.00316.86
8.0.200.0030.00316.95
8.0.190.0040.00417.00
8.0.180.0000.00817.03
8.0.170.0060.00316.87
8.0.160.0070.00016.93
8.0.150.0000.00716.78
8.0.140.0000.00816.92
8.0.130.0060.00013.36
8.0.120.0040.00416.79
8.0.110.0030.00616.89
8.0.100.0050.00316.87
8.0.90.0040.00416.97
8.0.80.0060.01616.88
8.0.70.0030.00516.92
8.0.60.0030.00616.98
8.0.50.0000.00716.97
8.0.30.0130.01217.04
8.0.20.0170.00217.40
8.0.10.0020.00517.08
8.0.00.0090.00816.83
7.4.330.0030.00315.00
7.4.320.0060.00016.60
7.4.300.0030.00316.63
7.4.290.0000.00716.75
7.4.280.0000.00916.58
7.4.270.0050.00316.50
7.4.260.0100.00016.48
7.4.250.0040.00416.69
7.4.240.0050.00316.62
7.4.230.0000.00716.71
7.4.220.0130.00716.73
7.4.210.0070.01016.76
7.4.200.0000.00816.51
7.4.160.0090.01116.39
7.4.150.0090.00917.40
7.4.140.0120.01017.86
7.4.130.0050.01316.58
7.4.120.0090.01016.66
7.4.110.0070.01016.69
7.4.100.0130.00916.74
7.4.90.0090.00916.63
7.4.80.0110.01419.39
7.4.70.0090.00916.68
7.4.60.0040.01416.65
7.4.50.0040.00016.61
7.4.40.0060.01616.51
7.4.30.0060.00916.63
7.4.00.0100.00315.02
7.3.330.0000.00613.05
7.3.320.0000.00513.21
7.3.310.0000.00716.35
7.3.300.0030.00316.29
7.3.290.0030.01116.44
7.3.280.0070.00916.28
7.3.270.0090.00917.40
7.3.260.0030.01316.64
7.3.250.0080.01216.47
7.3.240.0060.01616.76
7.3.230.0090.00916.39
7.3.210.0070.01016.30
7.3.200.0150.00619.39
7.3.190.0080.00816.39
7.3.180.0000.01716.58
7.3.170.0060.01616.58
7.3.160.0140.00316.54
7.2.330.0140.00916.73
7.2.320.0100.01016.80
7.2.310.0060.01616.54
7.2.300.0150.00916.63
7.2.290.0080.00816.68
7.2.00.0250.00819.27
7.1.200.0030.00315.95
7.1.100.0000.01218.04
7.1.70.0040.00417.42
7.1.60.0070.01719.46
7.1.50.0030.01317.04
7.1.00.0000.08022.29
7.0.200.0120.00814.99
7.0.140.0030.07322.21
7.0.60.0070.07719.95
7.0.50.0100.08317.85
7.0.40.0070.04320.12
7.0.30.0370.05020.24
7.0.20.0270.04320.25
7.0.10.0070.04020.23
7.0.00.0070.06020.14
5.6.280.0070.06321.04
5.6.210.0170.06020.66
5.6.200.0070.05718.18
5.6.190.0100.03720.61
5.6.180.0330.05020.39
5.6.170.0330.05020.44
5.6.160.0100.05320.50
5.6.150.0070.08018.28
5.6.140.0000.08318.17
5.6.130.0100.07718.13
5.6.120.0000.06020.78
5.6.110.0170.06721.11
5.6.100.0030.09020.95
5.6.90.0130.04320.94
5.6.80.0130.07320.37
5.5.350.0330.07320.38
5.5.340.0030.04017.98
5.5.330.0130.07020.25
5.5.320.0370.05320.41
5.5.310.0300.05720.35
5.5.300.0070.08017.94
5.5.290.0030.08318.02
5.5.280.0170.06720.79
5.5.270.0070.05720.82
5.5.260.0100.06320.96
5.5.250.0070.07320.66
5.5.240.0300.07020.15
5.4.450.0170.04019.55
5.4.440.0630.04019.32
5.4.430.0230.04019.54
5.4.420.0530.04319.40
5.4.410.0370.03719.19
5.4.400.0470.03018.98
5.4.390.0370.04019.09
5.4.380.0330.05718.71
5.4.370.0370.04718.73
5.4.360.0330.06018.73
5.4.350.0430.06018.71
5.4.340.0200.06718.56
5.4.320.0070.03912.48
5.4.310.0100.04312.48
5.4.300.0110.03912.48
5.4.290.0080.04012.48
5.4.280.0070.04312.38
5.4.270.0050.04312.38
5.4.260.0070.04612.38
5.4.250.0100.04512.38
5.4.240.0070.04012.38
5.4.230.0130.03712.37
5.4.220.0040.03812.37
5.4.210.0100.03712.37
5.4.200.0090.03912.37
5.4.190.0090.04212.37
5.4.180.0040.04012.37
5.4.170.0080.04212.38
5.4.160.0050.04812.38
5.4.150.0090.04012.37
5.4.140.0080.04612.05
5.4.130.0090.03712.04
5.4.120.0100.03512.00
5.4.110.0090.03312.00
5.4.100.0090.03712.00
5.4.90.0100.03711.99
5.4.80.0100.03411.99
5.4.70.0100.03111.98
5.4.60.0100.03311.98
5.4.50.0040.04111.99
5.4.40.0080.03411.97
5.4.30.0060.03611.97
5.4.20.0080.03411.98
5.4.10.0040.03811.98
5.4.00.0070.03511.46
5.3.290.0120.03612.80
5.3.280.0070.04112.71
5.3.270.0110.04312.72
5.3.260.0080.03612.72
5.3.250.0070.04612.72
5.3.240.0130.04212.72
5.3.230.0090.04712.70
5.3.220.0090.03712.68
5.3.210.0100.04112.68
5.3.200.0130.03412.68
5.3.190.0120.03712.68
5.3.180.0070.05012.68
5.3.170.0110.03812.67
5.3.160.0100.03812.67
5.3.150.0060.04712.68
5.3.140.0090.04412.66
5.3.130.0040.04012.66
5.3.120.0120.03912.66
5.3.110.0120.04012.66
5.3.100.0090.04112.12
5.3.90.0090.04012.10
5.3.80.0090.04412.09
5.3.70.0070.04012.09
5.3.60.0090.04512.07
5.3.50.0090.03712.02
5.3.40.0080.04212.02
5.3.30.0120.03811.98
5.3.20.0060.03511.76
5.3.10.0060.03611.73
5.3.00.0080.03511.71
5.2.170.0040.0319.22
5.2.160.0030.0319.22
5.2.150.0030.0329.21
5.2.140.0060.0349.21
5.2.130.0070.0349.17
5.2.120.0070.0379.18
5.2.110.0080.0349.18
5.2.100.0040.0299.18
5.2.90.0070.0279.18
5.2.80.0040.0319.17
5.2.70.0050.0329.17
5.2.60.0070.0419.13
5.2.50.0050.0309.09
5.2.40.0050.0299.08
5.2.30.0080.0329.06
5.2.20.0090.0259.04
5.2.10.0040.0308.94
5.2.00.0060.0288.79
5.1.60.0050.0248.06
5.1.50.0060.0248.05
5.1.40.0050.0258.04
5.1.30.0050.0268.39
5.1.20.0070.0248.41
5.1.10.0050.0318.13
5.1.00.0060.0248.13
5.0.50.0040.0206.61
5.0.40.0060.0176.47
5.0.30.0050.0306.29
5.0.20.0060.0176.26
5.0.10.0040.0196.23
5.0.00.0040.0306.22
4.4.90.0070.0114.78
4.4.80.0060.0214.75
4.4.70.0060.0164.75
4.4.60.0030.0234.75
4.4.50.0020.0184.77
4.4.40.0060.0264.71
4.4.30.0050.0184.76
4.4.20.0070.0204.84
4.4.10.0000.0184.85
4.4.00.0070.0334.76
4.3.110.0020.0174.67
4.3.100.0040.0174.66
4.3.90.0050.0144.63
4.3.80.0030.0244.59
4.3.70.0060.0164.63
4.3.60.0040.0174.63
4.3.50.0060.0144.63
4.3.40.0040.0274.54
4.3.30.0050.0183.28
4.3.20.0030.0183.26
4.3.10.0030.0143.22
4.3.00.0000.01714.93

preferences:
40.1 ms | 401 KiB | 5 Q