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); $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.60.0150.00417.00
8.3.50.0130.00922.13
8.3.40.0120.00918.96
8.3.30.0090.00619.27
8.3.20.0080.00020.04
8.3.10.0040.00423.52
8.3.00.0000.00819.63
8.2.180.0080.00818.53
8.2.170.0100.00722.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.01126.16
8.2.120.0060.00322.20
8.2.110.0030.00722.21
8.2.100.0040.00718.16
8.2.90.0000.00819.30
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0030.00618.03
8.2.50.0030.00618.07
8.2.40.0040.00418.13
8.2.30.0040.00418.26
8.2.20.0040.00418.06
8.2.10.0070.00018.25
8.2.00.0090.00317.98
8.1.280.0110.00425.92
8.1.270.0030.00623.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.93
8.1.230.0070.00319.27
8.1.220.0040.00417.88
8.1.210.0050.00318.77
8.1.200.0100.00017.73
8.1.190.0030.00617.66
8.1.180.0000.00818.10
8.1.170.0030.00718.96
8.1.160.0040.00421.98
8.1.150.0080.00018.88
8.1.140.0000.00817.71
8.1.130.0050.00317.91
8.1.120.0040.00417.59
8.1.110.0070.00017.54
8.1.100.0000.00717.58
8.1.90.0000.00817.69
8.1.80.0030.00517.53
8.1.70.0000.00717.58
8.1.60.0080.00317.80
8.1.50.0080.00017.60
8.1.40.0000.00817.63
8.1.30.0040.00417.80
8.1.20.0060.00317.74
8.1.10.0040.00417.65
8.1.00.0000.00817.59
8.0.300.0030.00518.77
8.0.290.0000.00717.28
8.0.280.0030.00518.50
8.0.270.0000.00717.26
8.0.260.0040.00417.36
8.0.250.0030.00317.14
8.0.240.0000.00717.18
8.0.230.0070.00017.11
8.0.220.0070.00017.05
8.0.210.0040.00417.09
8.0.200.0060.00017.13
8.0.190.0070.00017.14
8.0.180.0030.00517.13
8.0.170.0000.00717.11
8.0.160.0000.00816.98
8.0.150.0070.00017.04
8.0.140.0050.00317.07
8.0.130.0030.00313.54
8.0.120.0040.00417.07
8.0.110.0080.00017.12
8.0.100.0040.00416.96
8.0.90.0040.00416.96
8.0.80.0000.01417.07
8.0.70.0040.00417.16
8.0.60.0040.00417.10
8.0.50.0000.00716.97
8.0.30.0180.00717.17
8.0.20.0120.00717.46
8.0.10.0000.00717.26
8.0.00.0060.01117.06
7.4.330.0050.00015.23
7.4.320.0050.00316.81
7.4.300.0030.00316.81
7.4.290.0000.00716.94
7.4.280.0030.00516.82
7.4.270.0040.00416.83
7.4.260.0000.00716.81
7.4.250.0060.00316.64
7.4.240.0020.00516.93
7.4.230.0000.00716.83
7.4.220.0070.01016.80
7.4.210.0080.01016.90
7.4.200.0030.00316.92
7.4.190.0070.00016.82
7.4.160.0130.00316.77
7.4.150.0100.01017.40
7.4.140.0060.01117.86
7.4.130.0140.00316.85
7.4.120.0090.00916.95
7.4.110.0120.01116.79
7.4.100.0070.01016.82
7.4.90.0090.01216.77
7.4.80.0140.00619.39
7.4.70.0180.00616.73
7.4.60.0100.00716.66
7.4.50.0000.00716.57
7.4.40.0000.01222.77
7.4.30.0070.01116.79
7.4.00.0060.01215.33
7.3.330.0020.00213.41
7.3.320.0000.00513.44
7.3.310.0000.00716.34
7.3.300.0000.00716.55
7.3.290.0080.00816.50
7.3.280.0070.01216.51
7.3.270.0090.00917.40
7.3.260.0140.00716.74
7.3.250.0120.00616.54
7.3.240.0150.00316.61
7.3.230.0040.01216.65
7.3.210.0060.01016.60
7.3.200.0120.01219.39
7.3.190.0080.01516.77
7.3.180.0150.00016.58
7.3.170.0100.00616.73
7.3.160.0140.00316.76
7.3.120.0100.00314.83
7.2.330.0180.00616.96
7.2.320.0160.00916.73
7.2.310.0090.01216.72
7.2.300.0120.00616.92
7.2.290.0030.01317.00
7.2.120.0090.00616.85
7.2.110.0070.00716.79
7.2.100.0080.00016.93
7.2.90.0030.01016.60
7.2.80.0030.00616.95
7.2.70.0000.00917.21
7.2.60.0030.00617.18
7.2.50.0030.01317.23
7.2.40.0000.01517.05
7.2.30.0060.00917.31
7.2.20.0040.01117.21
7.2.10.0030.00617.10
7.2.00.0030.01218.32
7.1.240.0040.01115.82
7.1.230.0030.00915.70
7.1.220.0060.00615.74
7.1.210.0070.00716.05
7.1.200.0070.00715.98
7.1.190.0040.01116.16
7.1.180.0070.00716.02
7.1.170.0000.01316.16
7.1.160.0000.01416.18
7.1.150.0000.01015.71
7.1.140.0070.00715.98
7.1.130.0030.00915.75
7.1.120.0040.01115.90
7.1.110.0120.00016.23
7.1.100.0040.00617.14
7.1.90.0060.00316.15
7.1.80.0040.01116.17
7.1.70.0070.00716.54
7.1.60.0050.01117.61
7.1.50.0080.01216.68
7.1.40.0060.00615.91
7.1.30.0030.00815.79
7.1.20.0070.00716.09
7.1.10.0030.01016.09
7.1.00.0040.03919.14
7.0.320.0030.00915.71
7.0.310.0060.00915.53
7.0.300.0040.00915.50
7.0.290.0070.00715.43
7.0.280.0030.01015.61
7.0.270.0100.00315.69
7.0.260.0150.00015.68
7.0.250.0060.00615.60
7.0.240.0030.00915.66
7.0.230.0080.00315.75
7.0.220.0070.00715.68
7.0.210.0030.00615.30
7.0.200.0030.01016.26
7.0.190.0060.00715.57
7.0.180.0060.00915.47
7.0.170.0040.00815.30
7.0.160.0050.00315.79
7.0.150.0080.00315.64
7.0.140.0000.04718.86
7.0.130.0030.01015.66
7.0.120.0090.00615.41
7.0.110.0030.00915.54
7.0.100.0060.00815.80
7.0.90.0090.00615.54
7.0.80.0040.00715.70
7.0.70.0100.00315.49
7.0.60.0050.03117.84
7.0.50.0080.01816.82
7.0.40.0060.02516.73
7.0.30.0200.02816.89
7.0.20.0150.02016.98
7.0.10.0160.03816.91
7.0.00.0050.04916.96
5.6.380.0030.01014.45
5.6.370.0080.00414.56
5.6.360.0030.01014.49
5.6.350.0070.00714.63
5.6.340.0100.00014.50
5.6.330.0030.01014.52
5.6.320.0060.00914.73
5.6.310.0000.01314.70
5.6.300.0000.01114.63
5.6.290.0070.00014.48
5.6.280.0060.04017.85
5.6.270.0040.00714.23
5.6.260.0070.00714.47
5.6.250.0040.00914.45
5.6.240.0090.00314.40
5.6.230.0030.00814.47
5.6.220.0030.01014.34
5.6.210.0100.02817.53
5.6.200.0050.04816.53
5.6.190.0080.02817.40
5.6.180.0270.03017.61
5.6.170.0190.02317.36
5.6.160.0140.03717.54
5.6.150.0020.04116.29
5.6.140.0070.04416.28
5.6.130.0050.03916.27
5.6.120.0080.02017.78
5.6.110.0130.03817.81
5.6.100.0030.04817.59
5.6.90.0070.02717.75
5.6.80.0010.03817.27
5.6.70.0070.00314.68
5.6.60.0090.00614.65
5.6.50.0070.00714.84
5.6.40.0080.00414.39
5.6.30.0090.00014.24
5.6.20.0090.00614.40
5.6.10.0110.00014.43
5.6.00.0060.00614.08
5.5.380.0060.00611.36
5.5.370.0030.00311.62
5.5.360.0030.00911.40
5.5.350.0090.02115.72
5.5.340.0030.04614.74
5.5.330.0040.04315.81
5.5.320.0100.04315.74
5.5.310.0130.03415.91
5.5.300.0060.04514.80
5.5.290.0070.02014.61
5.5.280.0020.02716.19
5.5.270.0100.04216.09
5.5.260.0150.03816.22
5.5.250.0090.04215.71
5.5.240.0060.04015.71
5.5.230.0070.00311.36
5.5.220.0030.00911.38
5.5.210.0030.00911.36
5.5.200.0030.00611.42
5.5.190.0070.00311.20
5.5.180.0080.00311.14
5.5.170.0000.00814.45
5.5.160.0030.00711.39
5.5.150.0060.00611.15
5.5.140.0060.00311.46
5.5.130.0040.00711.35
5.5.120.0040.00710.83
5.5.110.0080.00411.08
5.5.100.0030.00711.14
5.5.90.0040.00811.50
5.5.80.0030.00311.43
5.5.70.0100.00011.25
5.5.60.0070.00311.34
5.5.50.0060.00611.13
5.5.40.0030.00611.08
5.5.30.0000.01211.45
5.5.20.0030.00711.40
5.5.10.0000.01211.07
5.5.00.0050.00211.41
5.4.450.0110.03115.46
5.4.440.0390.03215.32
5.4.430.0410.02815.27
5.4.420.0100.02515.23
5.4.410.0100.02715.48
5.4.400.0100.02515.11
5.4.390.0030.03215.17
5.4.380.0130.03114.76
5.4.370.0120.02514.88
5.4.360.0120.02714.84
5.4.350.0030.02211.47
5.4.340.0060.02111.58
5.4.330.0030.00911.24
5.4.320.0100.02011.85
5.4.310.0050.02311.93
5.4.300.0070.02012.01
5.4.290.0070.02011.91
5.4.280.0060.02311.92
5.4.270.0080.02811.72
5.4.260.0070.02711.80
5.4.250.0040.03211.84
5.4.240.0110.02711.79
5.4.230.0070.02211.77
5.4.220.0040.02411.62
5.4.210.0060.02411.83
5.4.200.0090.02911.61
5.4.190.0090.03011.86
5.4.180.0080.03211.75
5.4.170.0130.05411.78
5.4.160.0110.02711.77
5.4.150.0120.03411.77
5.4.140.0050.03311.57
5.4.130.0080.02511.75
5.4.120.0090.02511.58
5.4.110.0040.03511.74
5.4.100.0060.02311.60
5.4.90.0060.02111.60
5.4.80.0060.02411.71
5.4.70.0070.02511.65
5.4.60.0040.03311.60
5.4.50.0050.03411.63
5.4.40.0090.03011.73
5.4.30.0080.03211.49
5.4.20.0070.03011.76
5.4.10.0050.02611.43
5.4.00.0060.02211.40
5.3.290.0070.02111.78
5.3.280.0080.02811.68
5.3.270.0090.02611.61
5.3.260.0070.02711.78
5.3.250.0050.02611.76
5.3.240.0110.02211.65
5.3.230.0070.02911.69
5.3.220.0090.02911.62
5.3.210.0110.02711.54
5.3.200.0090.03011.59
5.3.190.0050.03411.70
5.3.180.0110.02711.73
5.3.170.0070.03411.79
5.3.160.0050.02911.75
5.3.150.0100.02511.58
5.3.140.0050.02211.76
5.3.130.0060.02211.75
5.3.120.0040.03111.60
5.3.110.0040.03211.69
5.3.100.0050.02811.44
5.3.90.0070.02911.31
5.3.80.0080.02211.33
5.3.70.0060.02311.35
5.3.60.0050.02311.35
5.3.50.0060.03511.18
5.3.40.0080.02911.21
5.3.30.0070.02811.21
5.3.20.0110.02911.18
5.3.10.0110.04111.08
5.3.00.0070.02911.04
5.2.170.0070.0319.51
5.2.160.0060.0249.51
5.2.150.0070.0259.51
5.2.140.0050.0299.51
5.2.130.0070.0239.49
5.2.120.0040.0239.49
5.2.110.0080.0249.50
5.2.100.0100.0239.50
5.2.90.0120.0379.49
5.2.80.0060.0289.49
5.2.70.0130.0329.49
5.2.60.0040.0209.46
5.2.50.0060.0199.45
5.2.40.0020.0219.44
5.2.30.0040.0249.42
5.2.20.0060.0229.41
5.2.10.0070.0229.37
5.2.00.0060.0249.30
5.1.60.0070.0258.94
5.1.50.0020.0258.94
5.1.40.0030.0198.93
5.1.30.0060.0169.11
5.1.20.0130.0409.12
5.1.10.0050.0158.98
5.1.00.0040.0178.98
5.0.50.0030.0138.22
5.0.40.0040.0128.16
5.0.30.0070.0168.06
5.0.20.0040.0118.04
5.0.10.0040.0128.04
5.0.00.0060.0188.03
4.4.90.0030.0107.31
4.4.80.0040.0097.29
4.4.70.0040.0117.29
4.4.60.0040.0127.30
4.4.50.0070.0137.30
4.4.40.0030.0217.27
4.4.30.0060.0107.29
4.4.20.0030.0137.34
4.4.10.0030.0137.34
4.4.00.0080.0207.30
4.3.110.0040.0137.25
4.3.100.0020.0147.25
4.3.90.0030.0157.23
4.3.80.0020.0197.21
4.3.70.0050.0117.23
4.3.60.0010.0117.23
4.3.50.0010.0157.23
4.3.40.0050.0227.19
4.3.30.0010.0236.56
4.3.20.0030.0126.55
4.3.10.0030.0136.53
4.3.00.0040.0108.74

preferences:
38.95 ms | 401 KiB | 5 Q