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.0140.00718.43
8.3.50.0130.00722.87
8.3.40.0100.01018.85
8.3.30.0090.00918.87
8.3.20.0110.00720.29
8.3.10.0040.00420.43
8.3.00.0030.00619.02
8.2.180.0120.00318.16
8.2.170.0190.00022.96
8.2.160.0140.00020.39
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0060.00326.16
8.2.120.0030.00620.97
8.2.110.0040.00420.96
8.2.100.0120.00017.71
8.2.90.0070.00019.10
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0000.00817.67
8.2.50.0070.00318.07
8.2.40.0030.00517.92
8.2.30.0040.00419.38
8.2.20.0000.00717.56
8.2.10.0000.00817.88
8.2.00.0040.00417.54
8.1.280.0140.00025.92
8.1.270.0030.00622.12
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0120.00022.00
8.1.230.0080.00422.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.13
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0060.00618.50
8.1.160.0040.00421.87
8.1.150.0040.00418.69
8.1.140.0070.00017.28
8.1.130.0000.00717.67
8.1.120.0040.00417.36
8.1.110.0040.00417.26
8.1.100.0000.00717.37
8.1.90.0030.00317.26
8.1.80.0030.00617.30
8.1.70.0070.00017.18
8.1.60.0060.00317.53
8.1.50.0050.00317.39
8.1.40.0040.00417.34
8.1.30.0050.00317.39
8.1.20.0030.00617.43
8.1.10.0070.00017.45
8.1.00.0050.00217.38
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.30
8.0.270.0030.00617.02
8.0.260.0040.00417.14
8.0.250.0070.00016.81
8.0.240.0030.00316.89
8.0.230.0030.00316.80
8.0.220.0000.00816.73
8.0.210.0030.00316.88
8.0.200.0030.00316.84
8.0.190.0030.00316.95
8.0.180.0000.00716.76
8.0.170.0040.00416.85
8.0.160.0040.00416.70
8.0.150.0040.00416.63
8.0.140.0080.00016.73
8.0.130.0000.00613.19
8.0.120.0060.00316.82
8.0.110.0050.00316.72
8.0.100.0050.00316.63
8.0.90.0040.00416.88
8.0.80.0080.00916.88
8.0.70.0040.00416.77
8.0.60.0090.00016.71
8.0.50.0000.00716.89
8.0.30.0120.01217.06
8.0.20.0120.00617.40
8.0.10.0000.00717.02
8.0.00.0100.01016.56
7.4.330.0000.00615.00
7.4.320.0000.00616.40
7.4.300.0040.00416.33
7.4.290.0000.00716.23
7.4.280.0100.00016.38
7.4.270.0040.00416.39
7.4.260.0030.00616.42
7.4.250.0040.00416.30
7.4.240.0040.00416.36
7.4.230.0000.00716.23
7.4.220.0090.01316.46
7.4.210.0070.01116.42
7.4.200.0000.00716.18
7.4.160.0100.00716.43
7.4.150.0150.00317.40
7.4.140.0050.01317.86
7.4.130.0120.00616.36
7.4.120.0120.00516.52
7.4.110.0100.00716.44
7.4.100.0130.00616.54
7.4.90.0070.01116.41
7.4.80.0080.00819.39
7.4.70.0030.01316.34
7.4.60.0100.00716.25
7.4.50.0080.00016.17
7.4.40.0060.00916.23
7.4.30.0030.01316.29
7.4.00.0060.01014.65
7.3.330.0050.00013.13
7.3.320.0000.00513.02
7.3.310.0000.00716.14
7.3.300.0030.00316.06
7.3.290.0060.00916.18
7.3.280.0020.01416.21
7.3.270.0090.00917.40
7.3.260.0120.00616.20
7.3.250.0070.01216.27
7.3.240.0080.00816.50
7.3.230.0040.01216.39
7.3.210.0030.01416.36
7.3.200.0060.01019.39
7.3.190.0030.01316.05
7.3.180.0130.00516.35
7.3.170.0140.00716.29
7.3.160.0040.01216.37
7.2.330.0090.00916.49
7.2.320.0070.01016.17
7.2.310.0270.03416.48
7.2.300.0080.01116.43
7.2.290.0030.01316.48
7.2.60.0070.00716.79
7.2.00.0060.00818.92
7.1.200.0050.00815.69
7.1.100.0110.00716.38
7.1.70.0080.00016.73
7.1.60.0070.01719.46
7.1.50.0030.01316.83
7.1.00.0130.06722.48
7.0.200.0150.00314.87
7.0.140.0030.07322.12
7.0.60.0130.05019.94
7.0.50.0070.07317.83
7.0.40.0100.04020.27
7.0.30.0530.06720.00
7.0.20.0230.04020.16
7.0.10.0000.04720.21
7.0.00.0030.07020.12
5.6.280.0100.06721.07
5.6.210.0070.08020.70
5.6.200.0100.05018.22
5.6.190.0030.05720.77
5.6.180.0400.03720.27
5.6.170.0370.06720.45
5.6.160.0130.04320.52
5.6.150.0200.07318.18
5.6.140.0100.08318.15
5.6.130.0070.08018.17
5.6.120.0070.05020.84
5.6.110.0030.08020.88
5.6.100.0100.04020.95
5.6.90.0030.08021.06
5.6.80.0030.08720.50
5.5.350.0230.04320.28
5.5.340.0000.06317.86
5.5.330.0070.08720.43
5.5.320.0370.05720.18
5.5.310.0270.05020.30
5.5.300.0070.06717.92
5.5.290.0070.08017.99
5.5.280.0070.04020.84
5.5.270.0130.07720.85
5.5.260.0200.07720.96
5.5.250.0030.05320.57
5.5.240.0230.07320.25
5.4.450.0170.03719.49
5.4.440.0100.05019.46
5.4.430.0330.04019.26
5.4.420.0230.04319.22
5.4.410.0270.03719.45
5.4.400.0300.04719.22
5.4.390.0370.03718.93
5.4.380.0300.04718.68
5.4.370.0370.06718.48
5.4.360.0300.06318.67
5.4.350.0330.04318.60
5.4.340.0430.04718.68
5.4.320.0090.04312.45
5.4.310.0060.03912.45
5.4.300.0050.04912.45
5.4.290.0070.03912.45
5.4.280.0060.04612.34
5.4.270.0040.04012.35
5.4.260.0080.04112.34
5.4.250.0080.04612.34
5.4.240.0040.04512.35
5.4.230.0050.03912.34
5.4.220.0070.03612.34
5.4.210.0070.03412.34
5.4.200.0050.04612.34
5.4.190.0080.03912.34
5.4.180.0090.03812.34
5.4.170.0060.03812.35
5.4.160.0080.03612.34
5.4.150.0070.03912.34
5.4.140.0050.03612.02
5.4.130.0100.04412.01
5.4.120.0100.03711.97
5.4.110.0040.04211.96
5.4.100.0080.03911.96
5.4.90.0060.04011.96
5.4.80.0050.04011.96
5.4.70.0100.04011.96
5.4.60.0070.03311.96
5.4.50.0080.03511.96
5.4.40.0060.03411.95
5.4.30.0070.03511.95
5.4.20.0090.04611.95
5.4.10.0080.04611.95
5.4.00.0050.04411.43
5.3.290.0070.03912.80
5.3.280.0040.04912.71
5.3.270.0090.04712.73
5.3.260.0070.04412.72
5.3.250.0060.04112.72
5.3.240.0070.03612.72
5.3.230.0070.03712.71
5.3.220.0050.03812.68
5.3.210.0030.04112.68
5.3.200.0090.03512.68
5.3.190.0070.03612.68
5.3.180.0060.03612.68
5.3.170.0070.03612.67
5.3.160.0090.04012.68
5.3.150.0070.03912.68
5.3.140.0090.03312.66
5.3.130.0070.03812.66
5.3.120.0100.03512.65
5.3.110.0110.04512.66
5.3.100.0050.04312.12
5.3.90.0080.04512.09
5.3.80.0110.03712.07
5.3.70.0080.04412.07
5.3.60.0060.04212.07
5.3.50.0080.03912.00
5.3.40.0080.03312.00
5.3.30.0090.03711.94
5.3.20.0090.04311.72
5.3.10.0080.04011.69
5.3.00.0100.03711.67
5.2.170.0110.0289.18
5.2.160.0060.0289.18
5.2.150.0090.0279.18
5.2.140.0060.0349.18
5.2.130.0050.0359.13
5.2.120.0050.0309.13
5.2.110.0080.0359.14
5.2.100.0080.0339.14
5.2.90.0060.0319.13
5.2.80.0090.0379.13
5.2.70.0080.0339.13
5.2.60.0070.0369.09
5.2.50.0110.0339.05
5.2.40.0060.0349.04
5.2.30.0070.0319.02
5.2.20.0060.0358.99
5.2.10.0070.0268.91
5.2.00.0040.0308.77
5.1.60.0090.0218.06
5.1.50.0030.0258.06
5.1.40.0060.0238.04
5.1.30.0030.0278.39
5.1.20.0050.0278.41
5.1.10.0030.0278.14
5.1.00.0060.0278.13
5.0.50.0050.0196.61
5.0.40.0040.0266.47
5.0.30.0020.0326.29
5.0.20.0040.0286.25
5.0.10.0040.0266.23
5.0.00.0000.0436.23
4.4.90.0080.0144.78
4.4.80.0050.0224.76
4.4.70.0030.0174.76
4.4.60.0040.0214.75
4.4.50.0020.0214.77
4.4.40.0060.0234.71
4.4.30.0030.0164.75
4.4.20.0030.0224.84
4.4.10.0050.0174.85
4.4.00.0040.0324.76
4.3.110.0020.0234.67
4.3.100.0050.0144.67
4.3.90.0050.0214.63
4.3.80.0050.0264.59
4.3.70.0030.0144.63
4.3.60.0040.0194.63
4.3.50.0030.0144.63
4.3.40.0020.0254.54
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0010.0163.22
4.3.00.0030.01714.93

preferences:
44.7 ms | 401 KiB | 5 Q