3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html=<<<HTML <a href="bla">123 "this" is asd</a> <a href="bla">this should not be captured</a> <a href="bla">no quotes in anchor text here</a> <a href="bla">"445 is in quotes"</a> <a href="bla">asd "blabla" sometimes</a> <a href="bla">Je commence à avoir mal à la tête</a> <a href="bla">something with quotes like “blabla” is bad</a> HTML; echo preg_replace('~<a[^>]*>.*?["“”].*?</a>\R?~u','',$html);

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.70.0110.00418.39
8.3.60.0150.00016.63
8.3.50.0110.00416.79
8.3.40.0100.00619.07
8.3.30.0070.01318.92
8.3.20.0050.00320.39
8.3.10.0080.00023.70
8.3.00.0030.00519.53
8.2.190.0030.01016.58
8.2.180.0130.00316.45
8.2.170.0170.00322.96
8.2.160.0090.00620.99
8.2.150.0080.00024.18
8.2.140.0070.01124.66
8.2.130.0070.00026.16
8.2.120.0060.00317.75
8.2.110.0000.01121.11
8.2.100.0030.00917.84
8.2.90.0040.00417.73
8.2.80.0080.00018.86
8.2.70.0000.00817.93
8.2.60.0040.00417.87
8.2.50.0050.00318.10
8.2.40.0000.00822.35
8.2.30.0070.00019.52
8.2.20.0000.00718.15
8.2.10.0040.00418.02
8.2.00.0070.00018.09
8.1.280.0100.01025.92
8.1.270.0050.00222.09
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.96
8.1.230.0030.00917.82
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0060.00317.39
8.1.180.0000.00818.10
8.1.170.0060.00319.03
8.1.160.0030.00618.79
8.1.150.0040.00320.22
8.1.140.0000.00717.67
8.1.130.0070.00319.05
8.1.120.0040.00417.45
8.1.110.0070.00317.57
8.1.100.0040.00417.47
8.1.90.0040.00417.44
8.1.80.0040.00417.43
8.1.70.0000.00717.39
8.1.60.0040.00417.56
8.1.50.0040.00417.58
8.1.40.0050.00217.61
8.1.30.0060.00617.64
8.1.20.0000.00817.64
8.1.10.0030.00617.60
8.1.00.0050.00317.51
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.53
8.0.270.0070.00017.32
8.0.260.0060.00617.20
8.0.250.0030.00317.27
8.0.240.0000.00717.21
8.0.230.0060.00317.04
8.0.220.0100.00017.08
8.0.210.0000.00717.11
8.0.200.0000.00617.05
8.0.190.0040.00417.05
8.0.180.0070.00417.18
8.0.170.0080.00017.06
8.0.160.0040.00417.02
8.0.150.0000.00717.04
8.0.140.0040.00416.97
8.0.130.0050.00013.48
8.0.120.0000.00716.98
8.0.110.0000.00717.02
8.0.100.0000.00717.14
8.0.90.0070.00016.94
8.0.80.0120.00317.06
8.0.70.0000.00716.98
8.0.60.0040.00417.00
8.0.50.0040.00417.16
8.0.30.0090.00917.19
8.0.20.0130.00917.41
8.0.10.0000.00717.04
8.0.00.0110.00716.87
7.4.330.0060.00015.55
7.4.320.0030.00316.73
7.4.300.0070.00016.66
7.4.290.0030.00316.57
7.4.280.0070.00016.62
7.4.270.0030.00316.71
7.4.260.0030.00316.78
7.4.250.0050.00216.74
7.4.240.0040.00416.80
7.4.230.0000.00716.58
7.4.220.0000.00816.61
7.4.210.0110.00316.88
7.4.200.0030.00316.56
7.4.160.0080.01116.60
7.4.150.0090.00917.40
7.4.140.0110.01117.86
7.4.130.0090.00916.76
7.4.120.0100.00916.63
7.4.110.0100.00716.79
7.4.100.0110.01116.62
7.4.90.0140.00316.60
7.4.80.0120.00619.39
7.4.70.0140.00516.60
7.4.60.0130.00316.61
7.4.50.0070.00316.82
7.4.40.0040.01216.85
7.4.00.0070.00415.05
7.3.330.0050.00013.27
7.3.320.0000.00613.16
7.3.310.0070.00016.47
7.3.300.0040.00416.41
7.3.290.0020.01216.40
7.3.280.0090.00616.38
7.3.270.0070.01017.40
7.3.260.0100.01316.42
7.3.240.0100.00616.54
7.3.230.0300.00816.52
7.3.210.0070.01016.50
7.3.200.0120.00316.58
7.3.190.0000.01516.32
7.3.180.0100.01016.50
7.3.170.0060.01016.27
7.3.160.0060.01316.63
7.3.120.0110.00714.90
7.3.110.0080.00815.06
7.3.100.0090.00914.89
7.3.90.0070.01014.99
7.3.80.0160.00014.82
7.3.70.0100.00614.90
7.3.60.0090.00614.84
7.3.50.0090.01214.77
7.3.40.0070.00714.90
7.3.30.0080.00814.79
7.3.20.0000.01615.79
7.3.10.0080.00815.79
7.3.00.0050.00715.70
7.2.330.0060.01116.57
7.2.320.0090.00616.68
7.2.310.0060.01716.47
7.2.300.0140.00416.66
7.2.290.0090.01216.75
7.2.240.0000.01515.10
7.2.230.0070.00914.99
7.2.220.0090.00715.09
7.2.210.0080.00815.09
7.2.200.0120.00315.05
7.2.190.0120.00614.93
7.2.180.0080.01115.01
7.2.170.0110.00214.72
7.2.160.0110.00814.98
7.2.150.0070.00716.11
7.2.140.0130.00416.04
7.2.130.0060.00916.14
7.2.120.0090.00515.94
7.2.110.0090.01015.90
7.2.100.0040.01115.88
7.2.90.0090.00615.95
7.2.80.0050.01215.91
7.2.70.0100.01015.95
7.2.60.0060.00616.35
7.2.50.0070.00716.13
7.2.40.0080.00816.00
7.2.30.0140.00316.07
7.2.20.0040.01317.29
7.2.10.0080.00917.38
7.2.00.0050.01017.22
7.1.330.0070.01016.06
7.1.320.0080.00715.11
7.1.310.0080.00914.89
7.1.300.0070.01014.85
7.1.290.0090.00914.94
7.1.280.0060.00715.06
7.1.270.0110.00314.95
7.1.260.0100.00315.07
7.1.250.0030.00914.90
7.1.240.0100.01314.05
7.1.230.0190.00013.72
7.1.220.0100.00514.01
7.1.210.0050.01013.81
7.1.200.0080.00914.62
7.1.190.0110.01414.18
7.1.180.0330.00613.93
7.1.170.0070.00713.91
7.1.160.0130.00313.95
7.1.150.0030.01013.63
7.1.140.0070.00916.29
7.1.130.0090.01016.37
7.1.120.0120.00715.57
7.1.110.0070.00916.06
7.1.100.0090.00616.08
7.1.90.0090.00915.96
7.1.80.0110.00716.21
7.1.70.0090.00915.63
7.1.60.0240.00824.75
7.1.50.0210.01124.36
7.1.40.0190.01324.26
7.1.30.0180.00924.28
7.1.20.0140.01624.52
7.1.10.0080.01015.32
7.1.00.0080.00915.37
7.0.330.0090.00913.51
5.6.400.0080.00814.34
5.6.390.0080.00814.30
5.6.380.0080.00614.27

preferences:
19.36 ms | 401 KiB | 5 Q