3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all( '#(?:\[link|\G)\K(?:\s+([^=\s]+)=["\'](.*?)["\']|.*?\](.*?)\[/link\])#i', 'ops [link href="http://www.google.com"]www.google.com[/link]', $matches, PREG_SET_ORDER); var_dump($matches); exit; $links = array(); $reset = true; foreach($matches as $match) { if($reset) { $links[] = array( 'params' => array(), 'value' => null ); $reset = false; } end($links); $key = key($links); if(isset($match[3])) { $links[$key]['value'] = $match[3]; $reset = true; } else { $links[$key]['params'][$match[1]] = $match[2]; } } print_r($links);

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.0140.00719.09
8.3.30.0140.00419.18
8.3.20.0060.00320.39
8.3.10.0080.00023.68
8.3.00.0030.00717.88
8.2.170.0180.00022.96
8.2.160.0040.01120.57
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0000.00722.15
8.2.110.0060.00322.26
8.2.100.0000.01218.03
8.2.90.0060.00319.07
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0000.00818.04
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0040.00418.13
8.2.20.0040.00417.85
8.2.10.0070.00018.18
8.2.00.0030.00817.88
8.1.270.0040.00424.02
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00923.85
8.1.230.0080.00319.34
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0040.00417.66
8.1.180.0110.00018.10
8.1.170.0040.00418.83
8.1.160.0000.00721.92
8.1.150.0040.00418.75
8.1.140.0030.00617.51
8.1.130.0040.00417.93
8.1.120.0000.00717.48
8.1.110.0040.00417.51
8.1.100.0080.00017.50
8.1.90.0070.00017.40
8.1.80.0000.00717.42
8.1.70.0030.00517.52
8.1.60.0080.00417.51
8.1.50.0090.00017.68
8.1.40.0030.00517.68
8.1.30.0040.00417.70
8.1.20.0040.00417.75
8.1.10.0070.00017.65
8.1.00.0050.00317.58
8.0.300.0040.00420.79
8.0.290.0000.00717.16
8.0.280.0000.00718.34
8.0.270.0070.00017.19
8.0.260.0030.00317.20
8.0.250.0000.00817.09
8.0.240.0040.00417.07
8.0.230.0040.00417.07
8.0.220.0030.00317.14
8.0.210.0000.00717.04
8.0.200.0030.00317.02
8.0.190.0070.00316.95
8.0.180.0040.00817.02
8.0.170.0000.00716.93
8.0.160.0080.00017.07
8.0.150.0000.00716.88
8.0.140.0000.00716.96
8.0.130.0000.00613.54
8.0.120.0020.00517.07
8.0.110.0030.00617.05
8.0.100.0040.00417.17
8.0.90.0070.00017.02
8.0.80.0090.01317.10
8.0.70.0050.00217.07
8.0.60.0040.00417.07
8.0.50.0070.00017.18
8.0.30.0060.01517.34
8.0.20.0100.01017.40
8.0.10.0040.00417.19
8.0.00.0110.00817.01
7.4.330.0030.00315.06
7.4.320.0030.00316.82
7.4.300.0030.00316.79
7.4.290.0000.00716.73
7.4.280.0060.00316.77
7.4.270.0030.00516.77
7.4.260.0030.00316.60
7.4.250.0000.00716.76
7.4.240.0020.00516.76
7.4.230.0040.00416.89
7.4.220.0100.00716.75
7.4.210.0050.01216.70
7.4.200.0000.00716.59
7.4.190.0070.00016.61
7.4.160.0120.00416.88
7.4.150.0080.01117.40
7.4.140.0100.00917.86
7.4.130.0050.00816.51
7.4.120.0120.00516.72
7.4.110.0090.00916.50
7.4.100.0150.00316.69
7.4.90.0150.00316.73
7.4.80.0070.01419.39
7.4.70.0060.01116.58
7.4.60.0120.00516.54
7.4.50.0030.00316.74
7.4.40.0130.00622.77
7.4.30.0040.01216.64
7.4.00.0110.00515.21
7.3.330.0060.00013.21
7.3.320.0000.00513.11
7.3.310.0060.00316.38
7.3.300.0070.00016.40
7.3.290.0070.00716.30
7.3.280.0090.00816.41
7.3.270.0100.01417.40
7.3.260.0140.00416.48
7.3.250.0130.01016.53
7.3.240.0150.00916.39
7.3.230.0150.00316.39
7.3.210.0100.01016.50
7.3.200.0120.01319.39
7.3.190.0140.00916.53
7.3.180.0080.00816.50
7.3.170.0070.01016.66
7.3.160.0000.01616.51
7.3.120.0030.01114.83
7.3.110.0060.01315.09
7.3.100.0120.00614.83
7.3.90.0070.01114.91
7.3.80.0150.00314.93
7.3.70.0040.01514.57
7.3.60.0060.00914.88
7.3.50.0030.01014.93
7.3.40.0110.00414.88
7.3.30.0080.00714.89
7.3.20.0090.00016.79
7.3.10.0000.01416.71
7.3.00.0030.01316.71
7.2.330.0120.00616.64
7.2.320.0030.01916.57
7.2.310.0060.01116.79
7.2.300.0090.00616.83
7.2.290.0100.00616.60
7.2.250.0040.01514.82
7.2.240.0130.00715.16
7.2.230.0030.01215.09
7.2.220.0100.00615.15
7.2.210.0100.00714.83
7.2.200.0070.00715.13
7.2.190.0030.01315.29
7.2.180.0080.00815.00
7.2.170.0030.01015.16
7.2.00.0040.00919.36
7.1.330.0070.01015.91
7.1.320.0000.01215.93
7.1.310.0090.00915.98
7.1.300.0040.01115.83
7.1.290.0000.01716.09
7.1.280.0100.00016.02
7.1.270.0060.00615.88
7.1.260.0070.00716.09
7.1.100.0070.00718.32
7.1.70.0030.00616.95
7.1.60.0090.01519.46
7.1.50.0160.00616.95
7.1.00.0030.07722.33
7.0.200.0000.01016.83
7.0.140.0070.07022.07
7.0.60.0070.08319.94
7.0.50.0070.08317.85
7.0.40.0070.08320.06
7.0.30.0330.07020.19
7.0.20.0130.04720.02
7.0.10.0200.05720.18
7.0.00.0030.08720.19
5.6.280.0000.07021.10
5.6.210.0070.04020.76
5.6.200.0070.03718.18
5.6.190.0100.08320.56
5.6.180.0430.07020.77
5.6.170.0170.04720.49
5.6.160.0100.07720.52
5.6.150.0070.08018.13
5.6.140.0030.04318.11
5.6.130.0000.04318.12
5.6.120.0000.09021.14
5.6.110.0200.06720.98
5.6.100.0070.06721.11
5.6.90.0030.04021.03
5.6.80.0030.07320.37
5.6.70.4330.04320.43
5.5.350.0100.03720.38
5.5.340.0070.08317.98
5.5.330.0070.07320.37
5.5.320.0400.07020.29
5.5.310.0270.08020.50
5.5.300.0030.04317.96
5.5.290.0030.08317.92
5.5.280.0130.07020.89
5.5.270.0170.08020.79
5.5.260.0070.08720.79
5.5.250.0070.07020.64
5.5.240.0230.03020.21
5.4.450.0830.05319.13
5.4.440.0670.06319.23
5.4.430.0700.04719.50
5.4.420.0100.05719.46
5.4.410.0100.05019.10
5.4.400.0700.06019.21
5.4.390.0670.05019.14
5.4.380.0230.06718.74
5.4.370.0470.04718.73
5.4.360.0300.05018.74
5.4.350.0270.06718.72
5.4.340.0330.06318.74
5.4.320.0060.03912.46
5.4.310.0110.03712.45
5.4.300.0050.03812.45
5.4.290.0070.04012.45
5.4.280.0100.04512.34
5.4.270.0040.04512.35
5.4.260.0080.05512.35
5.4.250.0080.04212.35
5.4.240.0110.03512.35
5.4.230.0100.04212.34
5.4.220.0090.03612.34
5.4.210.0110.04312.34
5.4.200.0070.04112.34
5.4.190.0090.03712.33
5.4.180.0110.04112.34
5.4.170.0080.03512.35
5.4.160.0090.03912.34
5.4.150.0090.04012.34
5.4.140.0070.05012.02
5.4.130.0070.03612.01
5.4.120.0030.03911.97
5.4.110.0080.04611.96
5.4.100.0080.03411.96
5.4.90.0050.03911.96
5.4.80.0070.05611.96
5.4.70.0150.05511.96
5.4.60.0110.03511.96
5.4.50.0090.03811.96
5.4.40.0040.03911.95
5.4.30.0050.05311.95
5.4.20.0080.05111.95
5.4.10.0150.05011.94
5.4.00.0050.03911.44
5.3.290.0090.04412.80
5.3.280.0070.04012.71
5.3.270.0090.05712.72
5.3.260.0090.05812.72
5.3.250.0150.07312.72
5.3.240.0070.04312.72
5.3.230.0090.04712.71
5.3.220.0160.04112.68
5.3.210.0090.03712.68
5.3.200.0160.05112.68
5.3.190.0070.03812.68
5.3.180.0100.05512.67
5.3.170.0050.05012.67
5.3.160.0130.03612.68
5.3.150.0090.05212.68
5.3.140.0070.04612.66
5.3.130.0090.05512.66
5.3.120.0050.05812.66
5.3.110.0130.04712.66
5.3.100.0080.04612.12
5.3.90.0090.05112.09
5.3.80.0030.04012.07
5.3.70.0090.04612.07
5.3.60.0100.04812.06
5.3.50.0110.06212.00
5.3.40.0090.04212.00
5.3.30.0070.03911.96
5.3.20.0080.04911.74
5.3.10.0060.03911.70
5.3.00.0070.03911.70
5.2.170.0060.0469.20
5.2.160.0070.0529.20
5.2.150.0100.0609.20
5.2.140.0060.0339.20
5.2.130.0100.0449.16
5.2.120.0090.0409.15
5.2.110.0070.0399.16
5.2.100.0070.0419.15
5.2.90.0060.0329.16
5.2.80.0080.0319.15
5.2.70.0060.0339.15
5.2.60.0050.0329.10
5.2.50.0100.0279.07
5.2.40.0060.0309.05
5.2.30.0050.0319.03
5.2.20.0060.0329.02
5.2.10.0040.0418.93
5.2.00.0100.0328.79
5.1.60.0090.0318.07
5.1.50.0080.0408.06
5.1.40.0060.0378.05
5.1.30.0090.0308.39
5.1.20.0070.0408.42
5.1.10.0200.0608.14
5.1.00.0120.0698.14
5.0.50.0050.0406.63
5.0.40.0050.0246.49
5.0.30.0070.0536.31
5.0.20.0080.0236.28
5.0.10.0060.0276.26
5.0.00.0040.0426.25
4.4.90.0130.0384.78
4.4.80.0050.0194.76
4.4.70.0040.0214.75
4.4.60.0120.0394.76
4.4.50.0110.0264.77
4.4.40.0060.0314.71
4.4.30.0070.0274.76
4.4.20.0040.0234.85
4.4.10.0090.0204.85
4.4.00.0030.0284.76
4.3.110.0030.0194.67
4.3.100.0060.0244.66
4.3.90.0080.0174.63
4.3.80.0040.0264.59
4.3.70.0070.0164.63
4.3.60.0050.0144.63
4.3.50.0050.0154.63
4.3.40.0020.0284.54
4.3.30.0040.0173.29
4.3.20.0020.0163.28
4.3.10.0030.0183.24
4.3.00.0370.02710.31

preferences:
39.27 ms | 400 KiB | 5 Q