3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "The text you want to filter goes here. http://google.com, https://www.youtube.com/watch?v=K_m7NEDMrV0,https://instagram.com/hellow/"; preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $string, $match); echo "<pre>"; print_r($match[0]); 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.3.60.0080.00816.63
8.3.50.0090.01216.39
8.3.40.0110.00718.84
8.3.30.0120.00318.85
8.3.20.0040.00420.34
8.3.10.0040.00423.70
8.3.00.0050.00321.82
8.2.180.0040.01118.54
8.2.170.0070.00722.96
8.2.160.0140.00319.34
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0090.00319.03
8.2.110.0030.00722.24
8.2.100.0060.00617.97
8.2.90.0050.00319.35
8.2.80.0090.00018.04
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00820.50
8.2.30.0000.00720.94
8.2.20.0030.00518.09
8.2.10.0030.00518.09
8.2.00.0000.00718.14
8.1.280.0110.00425.92
8.1.270.0030.00522.13
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00321.16
8.1.230.0110.00019.07
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0000.01017.35
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0050.00318.75
8.1.160.0000.00718.99
8.1.150.0040.00420.69
8.1.140.0040.00419.51
8.1.130.0000.00718.88
8.1.120.0050.00217.63
8.1.110.0050.00317.53
8.1.100.0060.00317.46
8.1.90.0070.00017.63
8.1.80.0000.00717.54
8.1.70.0040.00417.54
8.1.60.0030.00617.69
8.1.50.0030.00617.64
8.1.40.0040.00417.61
8.1.30.0050.00317.77
8.1.20.0020.00517.64
8.1.10.0030.00617.74
8.1.00.0000.00717.61
8.0.300.0040.00420.13
8.0.290.0020.00516.88
8.0.280.0000.00818.53
8.0.270.0000.00717.29
8.0.260.0000.00617.00
8.0.250.0030.00317.02
8.0.240.0040.00417.12
8.0.230.0000.00716.92
8.0.220.0040.00417.02
8.0.210.0030.00317.01
8.0.200.0030.00317.02
8.0.190.0060.00316.95
8.0.180.0000.01317.05
8.0.170.0040.00416.98
8.0.160.0030.00317.01
8.0.150.0030.00316.84
8.0.140.0000.00816.95
8.0.130.0060.00013.40
8.0.120.0040.00416.86
8.0.110.0040.00416.99
8.0.100.0000.00716.90
8.0.90.0050.00216.88
8.0.80.0120.00917.01
8.0.70.0000.00716.79
8.0.60.0000.00716.86
8.0.50.0080.00016.94
8.0.30.0080.01217.43
8.0.20.0130.00917.40
8.0.10.0000.00717.12
8.0.00.0110.00816.77
7.4.330.0030.00315.55
7.4.320.0070.00016.68
7.4.300.0000.00616.72
7.4.290.0000.01016.68
7.4.280.0040.00416.64
7.4.270.0030.00316.77
7.4.260.0050.00316.74
7.4.250.0040.00416.72
7.4.240.0040.00416.72
7.4.230.0070.00016.75
7.4.220.0070.01116.71
7.4.210.0110.00516.72
7.4.200.0030.00316.79
7.4.160.0140.00316.65
7.4.150.0110.00717.40
7.4.140.0110.00917.86
7.4.130.0190.00016.79
7.4.120.0100.00816.63
7.4.110.0140.00616.65
7.4.100.0150.00416.60
7.4.90.0000.01916.86
7.4.80.0080.00819.39
7.4.70.0030.01316.70
7.4.60.0060.00916.66
7.4.50.0100.00716.50
7.4.40.0110.01116.54
7.4.30.0120.00616.71
7.4.00.0040.01115.15
7.3.330.0000.00513.13
7.3.320.0030.00313.28
7.3.310.0080.00016.14
7.3.300.0050.00216.34
7.3.290.0090.00016.40
7.3.280.0070.01016.34
7.3.270.0130.00617.40
7.3.260.0130.01016.78
7.3.250.0090.01016.45
7.3.240.0090.01116.53
7.3.230.0060.01216.67
7.3.210.0030.01316.64
7.3.200.0090.00916.66
7.3.190.0090.01216.82
7.3.180.0120.00316.39
7.3.170.0060.01216.53
7.3.160.0120.00616.33
7.3.10.0140.00416.29
7.3.00.0140.00716.33
7.2.330.0090.00916.55
7.2.320.0180.00616.77
7.2.310.0110.01116.67
7.2.300.0130.00316.63
7.2.290.0120.01216.68
7.2.130.0130.01016.49
7.2.120.0180.00616.65
7.2.110.0040.01816.94
7.2.100.0090.00916.97
7.2.90.0160.00016.50
7.2.80.0140.00816.61
7.2.70.0250.00616.47
7.2.60.0030.01416.92
7.2.50.0140.01016.81
7.2.40.0160.00316.79
7.2.30.0170.00416.76
7.2.20.0230.00316.87
7.2.10.0140.00716.66
7.2.00.0080.00818.17
7.1.250.0110.00815.72
7.1.200.0000.01515.84
7.1.100.0110.00018.06
7.1.70.0030.01017.30
7.1.60.0180.00735.25
7.1.50.0180.00935.12
7.1.40.0120.01534.57
7.1.30.0230.01034.59
7.1.20.0140.01434.96
7.1.10.0040.00817.03
7.1.00.0030.01017.02
7.0.200.0000.01116.93
7.0.190.0030.00917.04
7.0.180.0000.01316.27
7.0.170.0030.01416.29
7.0.160.0030.01016.28
7.0.150.0040.01116.39
7.0.140.0030.01016.72
7.0.130.0060.00616.63
7.0.120.0060.00616.48
7.0.110.0030.01016.45
7.0.100.0030.00916.52
7.0.90.0040.01216.68
7.0.80.0030.00916.54
7.0.70.0090.00616.34
7.0.60.0030.01116.35
7.0.50.0060.00616.76
7.0.40.0060.01216.56
7.0.30.0040.01316.68
7.0.20.0030.01016.49
7.0.10.0060.00816.57
7.0.00.0070.00716.64

preferences:
32.11 ms | 400 KiB | 5 Q