3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = " http://www.url1.com/ = ' http://www.url2.com/ 'http://www.url3.com/ <a href='http://www.url4.com/'>Testing1</a> <img src = 'https://url5.com'>Testing2</a>"; $url_pregex = 'https?://[-a-zA-Z()0-9@:%_+.~#?&;//=]+'; $pregex = "\\s*=\\s*['\"]?\\s*$url_pregex|($url_pregex)"; preg_match_all('`' . $pregex . '`i', $html, $matches); echo "Matches<br><pre>"; var_export(array_values(array_filter($matches[1]))); echo "</pre>";

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.4.130.0050.00718.75
8.4.120.0120.00823.82
8.4.110.0110.00818.80
8.4.100.0070.00318.91
8.4.90.0110.00719.11
8.4.80.0090.00418.91
8.4.70.0070.00218.36
8.4.60.0140.00718.92
8.4.50.0090.00218.87
8.4.40.0100.01017.96
8.4.30.0170.00318.64
8.4.20.0130.00719.79
8.4.10.0080.00019.73
8.3.260.0100.00916.62
8.3.250.0130.00719.12
8.3.240.0120.00817.29
8.3.230.0120.00816.70
8.3.220.0090.00918.85
8.3.210.0130.00616.84
8.3.200.0040.00516.97
8.3.190.0100.00817.16
8.3.180.0110.00917.32
8.3.170.0170.00018.86
8.3.160.0070.01117.18
8.3.150.0150.00319.11
8.3.140.0070.01117.17
8.3.130.0040.00418.55
8.3.120.0070.01117.23
8.3.110.0060.00316.74
8.3.100.0080.00820.20
8.3.90.0050.00326.77
8.3.80.0060.00318.27
8.3.70.0090.01318.30
8.3.60.0110.00416.89
8.3.50.0110.00716.67
8.3.40.0130.01021.76
8.3.30.0120.00920.80
8.3.20.0140.00723.59
8.3.10.0170.00323.57
8.3.00.0140.00720.79
8.2.290.0120.00520.65
8.2.280.0090.01118.67
8.2.270.0110.00417.29
8.2.260.0110.00718.43
8.2.250.0030.01518.70
8.2.240.0090.00617.18
8.2.230.0040.00420.94
8.2.220.0050.00324.06
8.2.210.0110.00426.77
8.2.200.0060.00316.75
8.2.190.0100.01616.58
8.2.180.0030.01716.75
8.2.170.0070.01421.11
8.2.160.0150.00622.12
8.2.150.0140.00720.96
8.2.140.0070.01422.10
8.2.130.0140.00721.99
8.2.120.0100.01321.16
8.2.110.0070.01421.03
8.2.100.0100.01021.02
8.2.90.0130.00920.92
8.2.80.0100.00721.31
8.2.70.0090.00920.73
8.2.60.0140.00421.08
8.2.50.0090.00920.98
8.2.40.0130.01021.11
8.2.30.0160.00620.79
8.2.20.0190.00320.80
8.2.10.0180.00420.79
8.2.00.0060.01220.74
8.1.330.0130.00621.74
8.1.320.0140.00716.65
8.1.310.0090.00920.05
8.1.300.0060.00320.29
8.1.290.0030.00618.88
8.1.280.0120.00325.92
8.1.270.0040.01423.82
8.1.260.0140.00723.85
8.1.250.0140.00723.83
8.1.240.0150.00618.87
8.1.230.0090.00918.87
8.1.220.0120.00918.98
8.1.210.0070.01418.74
8.1.200.0150.00318.80
8.1.190.0200.00318.80
8.1.180.0060.01018.57
8.1.170.0150.00718.70
8.1.160.0160.00018.77
8.1.150.0090.00618.86
8.1.140.0140.01018.71
8.1.130.0130.01320.68
8.1.120.0000.01818.64
8.1.110.0120.00618.75
8.1.100.0040.01419.89
8.1.90.0090.00618.71
8.1.80.0080.00819.84
8.1.70.0070.00720.66
8.1.60.0120.00320.57
8.1.50.0120.00420.49
8.1.40.0120.00318.55
8.1.30.0140.00018.95
8.1.20.0110.00420.09
8.1.10.0120.00318.69
8.1.00.0040.01118.69

preferences:
44.15 ms | 403 KiB | 5 Q