3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Dit is een link: <a href="bla.html">Tralalala</a>, en nog eentje: <a href="bla.htmlie">Tralalala</a>'; $regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>"; preg_match_all("/$regexp/siU", $string, $matches); // $matches[2] = array of link addresses // $matches[3] = array of link text - including HTML code echo "test"; print_r($matches); ?>

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.0100.01019.09
8.3.30.0060.00919.10
8.3.20.0000.00820.33
8.3.10.0080.00021.95
8.3.00.0080.00020.90
8.2.170.0110.00422.96
8.2.160.0070.01022.18
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0060.00319.95
8.2.110.0060.00319.20
8.2.100.0030.00917.75
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0030.00517.88
8.2.60.0050.00317.93
8.2.50.0030.00518.07
8.2.40.0020.00518.12
8.2.30.0000.00818.14
8.2.20.0040.00417.88
8.2.10.0040.00417.96
8.2.00.0040.00417.83
8.1.270.0100.01018.86
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00723.88
8.1.230.0070.00419.04
8.1.220.0000.00817.75
8.1.210.0060.00318.77
8.1.200.0090.00017.36
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0000.00920.35
8.1.160.0040.00421.99
8.1.150.0040.00418.91
8.1.140.0000.00817.53
8.1.130.0030.00317.85
8.1.120.0030.00317.57
8.1.110.0040.00417.52
8.1.100.0000.00817.51
8.1.90.0040.00417.46
8.1.80.0000.00817.44
8.1.70.0030.00317.54
8.1.60.0040.00417.57
8.1.50.0040.00417.65
8.1.40.0000.00817.56
8.1.30.0000.00817.76
8.1.20.0040.00417.71
8.1.10.0040.00417.63
8.1.00.0040.00417.49
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.46
8.0.270.0050.00317.30
8.0.260.0030.00317.19
8.0.250.0030.00517.04
8.0.240.0000.00617.10
8.0.230.0030.00517.09
8.0.220.0070.00017.04
8.0.210.0000.00717.07
8.0.200.0040.00416.95
8.0.190.0060.00317.02
8.0.180.0050.00617.08
8.0.170.0080.00017.12
8.0.160.0030.00517.11
8.0.150.0050.00217.05
8.0.140.0040.00417.02
8.0.130.0000.00713.40
8.0.120.0050.00317.01
8.0.110.0080.00017.09
8.0.100.0040.00416.92
8.0.90.0050.00216.82
8.0.80.0070.01017.10
8.0.70.0000.00816.90
8.0.60.0000.00716.87
8.0.50.0000.00716.98
8.0.30.0060.00717.11
8.0.20.0120.00817.41
8.0.10.0020.00517.00
8.0.00.0160.00317.02
7.4.330.0030.00315.09
7.4.320.0000.00616.74
7.4.300.0000.00616.77
7.4.290.0030.00316.75
7.4.280.0050.00516.54
7.4.270.0000.00716.58
7.4.260.0030.00516.76
7.4.250.0040.00416.76
7.4.240.0040.00416.67
7.4.230.0070.00016.78
7.4.220.0030.02316.68
7.4.210.0090.00616.82
7.4.200.0000.00816.77
7.4.160.0080.00816.59
7.4.150.0110.00817.40
7.4.140.0160.00817.86
7.4.130.0110.00816.67
7.4.120.0090.00816.63
7.4.110.0100.00916.60
7.4.100.0150.00416.61
7.4.90.0100.01016.70
7.4.80.0120.00619.39
7.4.70.0130.00616.82
7.4.60.0070.01016.91
7.4.50.0050.00216.65
7.4.40.0100.00716.48
7.4.30.0070.01016.61
7.4.10.0170.00314.89
7.4.00.0110.00714.93
7.3.330.0000.00513.19
7.3.320.0040.00413.28
7.3.310.0000.00716.35
7.3.300.0000.00616.39
7.3.290.0080.00716.34
7.3.280.0070.01116.38
7.3.270.0110.00917.40
7.3.260.0120.00316.42
7.3.250.0120.00516.55
7.3.240.0100.00716.71
7.3.230.0120.00616.39
7.3.210.0100.01016.78
7.3.200.0150.00319.39
7.3.190.0090.00616.64
7.3.180.0100.00616.71
7.3.170.0130.00916.48
7.3.160.0230.00016.43
7.3.130.0060.01214.80
7.3.120.0080.00914.99
7.3.110.0110.00614.89
7.3.100.0040.01214.92
7.3.90.0060.01014.97
7.3.80.0020.01015.11
7.3.70.0040.00914.85
7.3.60.0030.00714.99
7.3.50.0110.00314.85
7.3.40.0050.01214.98
7.3.30.0050.00914.77
7.3.20.0030.01116.86
7.3.10.0070.00416.83
7.3.00.0060.00516.79
7.2.330.0110.00716.64
7.2.320.0080.01016.73
7.2.310.0110.00816.54
7.2.300.0030.01316.64
7.2.290.0130.00416.62
7.2.260.0070.01115.07
7.2.250.0050.01115.15
7.2.240.0080.00815.09
7.2.230.0070.00915.06
7.2.220.0070.01015.20
7.2.210.0020.01015.19
7.2.200.0050.00915.13
7.2.190.0000.01515.11
7.2.180.0090.00514.84
7.2.170.0040.00915.28
7.2.160.0070.00615.06
7.2.150.0030.00916.79
7.2.140.0030.01316.97
7.2.130.0060.00816.85
7.2.120.0080.00816.94
7.2.110.0090.00616.85
7.2.100.0110.00816.84
7.2.90.0060.00917.10
7.2.80.0070.00816.97
7.2.70.0060.01216.97
7.2.60.0030.01416.99
7.2.50.0070.00616.97
7.2.40.0080.00516.97
7.2.30.0100.00516.99
7.2.20.0070.00916.98
7.2.10.0060.00917.02
7.2.00.0060.01017.83
7.1.330.0070.00715.94
7.1.320.0050.00815.98
7.1.310.0050.01016.22
7.1.300.0080.00516.00
7.1.290.0100.00515.92
7.1.280.0050.01116.00
7.1.270.0040.00615.87
7.1.260.0030.01015.93
7.1.250.0030.00815.94
7.1.240.0110.00715.89
7.1.230.0040.00915.95
7.1.220.0040.00415.93
7.1.210.0040.00816.02
7.1.200.0040.00416.09
7.1.190.0090.00315.83
7.1.180.0000.00815.83
7.1.170.0060.00615.97
7.1.160.0030.00915.76
7.1.150.0060.00616.02
7.1.140.0150.00015.89
7.1.130.0070.01015.99
7.1.120.0030.00915.91
7.1.110.0040.01116.19
7.1.100.0050.00817.37
7.1.90.0100.00315.97
7.1.80.0040.01115.73
7.1.70.0000.00816.54
7.1.60.0080.01017.60
7.1.50.0100.01525.46
7.1.40.0040.00915.68
7.1.30.0060.00615.99
7.1.20.0120.00315.73
7.1.10.0070.00715.82
7.1.00.0020.04519.17
7.0.330.0030.00615.59
7.0.320.0040.00715.55
7.0.310.0080.00615.49
7.0.300.0090.00315.27
7.0.290.0060.00915.39
7.0.280.0110.00315.66
7.0.270.0000.00815.68
7.0.260.0030.01015.58
7.0.250.0100.00315.79
7.0.240.0050.00515.70
7.0.230.0090.00315.56
7.0.220.0030.00615.72
7.0.210.0000.01015.35
7.0.200.0110.00515.40
7.0.190.0030.00615.70
7.0.180.0040.00715.46
7.0.170.0040.01215.60
7.0.160.0070.00715.52
7.0.150.0070.00715.46
7.0.140.0020.04218.75
7.0.130.0030.00815.35
7.0.120.0000.01015.52
7.0.110.0070.00715.45
7.0.100.0150.00015.41
7.0.90.0080.00315.78
7.0.80.0060.00615.70
7.0.70.0070.00715.57
7.0.60.0130.03817.71
7.0.50.0080.04516.82
7.0.40.0070.03516.98
7.0.30.0180.04216.86
7.0.20.0070.02716.99
7.0.10.0050.04916.97
7.0.00.0120.04517.00
5.6.400.0060.00314.24
5.6.390.0070.00714.25
5.6.380.0080.00414.50
5.6.370.0060.00914.53
5.6.360.0080.00814.27
5.6.350.0060.00314.04
5.6.340.0030.00614.23
5.6.330.0080.00414.38
5.6.320.0070.00414.25
5.6.310.0030.00613.91
5.6.300.0000.01314.30
5.6.290.0030.01314.17
5.6.280.0050.03817.70
5.6.270.0050.00514.68
5.6.260.0000.01514.48
5.6.250.0030.01414.16
5.6.240.0080.00314.40
5.6.230.0060.00614.33
5.6.220.0060.01314.30
5.6.210.0070.04517.41
5.6.200.0130.04016.31
5.6.190.0060.04817.39
5.6.180.0190.03617.41
5.6.170.0170.03017.49
5.6.160.0110.03017.44
5.6.150.0050.02116.25
5.6.140.0070.02716.08
5.6.130.0030.04016.32
5.6.120.0050.03417.62
5.6.110.0050.02817.64
5.6.100.0050.05017.59
5.6.90.0030.04017.67
5.6.80.0070.03717.32
5.6.70.0070.00714.30
5.6.60.0000.01214.05
5.6.50.0060.00614.07
5.6.40.0060.00614.01
5.6.30.0120.00314.23
5.6.20.0070.00714.29
5.6.10.0120.00314.34
5.6.00.0030.00714.31
5.5.380.0070.00714.41
5.5.370.0060.00914.20
5.5.360.0100.00313.93
5.5.350.0190.03717.30
5.5.340.0030.02616.17
5.5.330.0080.04317.46
5.5.320.0220.04617.31
5.5.310.0190.04217.19
5.5.300.0090.04215.94
5.5.290.0030.02615.99
5.5.280.0050.04517.60
5.5.270.0100.02317.42
5.5.260.0110.03817.42
5.5.250.0030.04217.32
5.5.240.0050.03817.00
5.5.230.0030.01014.27
5.5.220.0170.00014.02
5.5.210.0000.00914.03
5.5.200.0040.00814.11
5.5.190.0120.00614.10
5.5.180.0070.00714.19
5.5.170.0060.00614.30
5.5.160.0030.00914.30
5.5.150.0040.01114.16
5.5.140.0070.01014.32
5.5.130.0070.00414.21
5.5.120.0030.01014.07
5.5.110.0100.00714.19
5.5.100.0130.00314.40
5.5.90.0070.01014.18
5.5.80.0080.00414.23
5.5.70.0030.00714.04
5.5.60.0080.00814.14
5.5.50.0040.01113.96
5.5.40.0120.00414.20
5.5.30.0030.00714.37
5.5.20.0130.00314.03
5.5.10.0120.00314.01
5.5.00.0060.00914.13
5.4.450.0280.02716.15
5.4.440.0290.03416.05
5.4.430.0200.02616.13
5.4.420.0080.03016.07
5.4.410.0040.03416.09
5.4.400.0170.03015.80
5.4.390.0150.03315.60
5.4.380.0130.03415.78
5.4.370.0130.03515.66
5.4.360.0170.03215.69
5.4.350.0250.03015.75
5.4.340.0230.03815.75
5.4.330.0090.00012.72
5.4.320.0220.03715.61
5.4.310.0280.02915.73
5.4.300.0230.02915.77
5.4.290.0200.02515.61
5.4.280.0170.03515.74
5.4.270.0230.03515.61
5.4.260.0300.03115.72
5.4.250.0260.03615.75
5.4.240.0220.03215.66
5.4.230.0190.02715.63
5.4.220.0220.03515.77
5.4.210.0170.03515.58
5.4.200.0150.03914.61
5.4.190.0200.03515.69
5.4.180.0330.03515.66
5.4.170.0200.02815.73
5.4.160.0220.03015.61
5.4.150.0220.03115.60
5.4.140.0200.02414.51
5.4.130.0140.03014.49
5.4.120.0230.03014.50
5.4.110.0120.03114.58
5.4.100.0220.03814.50
5.4.90.0100.03514.44
5.4.80.0180.02814.56
5.4.70.0220.03314.47
5.4.60.0240.02514.46
5.4.50.0130.03314.48
5.4.40.0160.03014.57
5.4.30.0290.02414.56
5.4.20.0140.03614.50
5.4.10.0170.02814.47
5.4.00.0130.03014.19
5.3.290.0400.05714.75
5.3.280.0200.06014.68
5.3.270.0400.04714.61
5.3.260.0300.06014.63
5.3.250.0230.06014.70
5.3.240.0330.05714.68
5.3.230.0330.05014.79
5.3.220.0370.05014.54
5.3.210.0370.06314.84
5.3.200.0400.04314.59
5.3.190.0270.06014.59
5.3.180.0370.05314.57
5.3.170.0330.06314.54
5.3.160.0400.05314.66
5.3.150.0330.05014.72
5.3.140.0370.05314.83
5.3.130.0370.05314.63
5.3.120.0330.05714.52
5.3.110.0300.05314.57
5.3.100.0430.04714.08
5.3.90.0430.04714.07
5.3.80.0400.04714.07
5.3.70.0270.05714.03
5.3.60.0300.05314.14
5.3.50.0330.04714.04
5.3.40.0130.06714.04
5.3.30.0370.05714.04
5.3.20.0570.05313.80
5.3.10.0400.06313.70
5.3.00.0430.06713.74
5.2.170.0370.05311.24
5.2.160.0270.06011.26
5.2.150.0300.05311.18
5.2.140.0170.05011.27
5.2.130.0230.04311.19
5.2.120.0200.04311.13
5.2.110.0230.04311.21
5.2.100.0270.04011.14
5.2.90.0330.05711.38
5.2.80.0470.04711.19
5.2.70.0370.05311.20
5.2.60.0300.04311.09
5.2.50.0230.04711.29
5.2.40.0300.04011.03
5.2.30.0230.03711.06
5.2.20.0270.04010.98
5.2.10.0370.03310.88
5.2.00.0300.04710.89
5.1.60.0230.03310.06
5.1.50.0300.0439.95
5.1.40.0300.0479.97
5.1.30.0230.03310.30
5.1.20.0170.04010.41
5.1.10.0230.03710.10
5.1.00.0330.02710.18
5.0.50.0200.0238.60
5.0.40.0130.0308.40
5.0.30.0200.0408.33
5.0.20.0130.0238.21
5.0.10.0170.0278.20
5.0.00.0100.0438.28
4.4.90.0170.0236.43
4.4.80.0130.0206.43
4.4.70.0070.0276.43
4.4.60.0130.0176.43
4.4.50.0100.0236.43
4.4.40.0100.0336.43
4.4.30.0170.0176.43
4.4.20.0100.0336.43
4.4.10.0200.0176.43
4.4.00.0130.0306.43
4.3.110.0070.0276.43
4.3.100.0100.0236.43
4.3.90.0030.0276.43
4.3.80.0100.0336.43
4.3.70.0100.0206.43
4.3.60.0200.0236.43
4.3.50.0100.0206.43
4.3.40.0070.0376.43
4.3.30.0070.0206.43
4.3.20.0100.0206.43
4.3.10.0030.0236.43
4.3.00.0100.0177.12

preferences:
67.06 ms | 400 KiB | 5 Q