3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re ='/(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/im'; $str = 'Test text http://hello-world.com Test text http://google.com/file.jpg?google=1 Test text https://hell.o.wor.ld/test?qwe=qwe Test text text text http://test.test/test hello all how are you I hope you all are fine '; $utmUrl = "utm_source=source&utm_medium=email&utm_campaign=mycamp"; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); foreach ($matches as $match) $str = preg_replace('%' . $match[0] . '%', $match[0] . (strpos($match[0], '?') !== false ? '&' : '?') . $utmUrl, $str); var_dump($str);

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.0070.01116.63
8.3.50.0100.01016.38
8.3.40.0100.00321.77
8.3.30.0110.00718.69
8.3.20.0080.00024.18
8.3.10.0070.00724.66
8.3.00.0060.00326.16
8.2.180.0130.00325.92
8.2.170.0070.01419.20
8.2.160.0040.01122.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00426.35
8.2.110.0100.00019.17
8.2.100.0060.00618.16
8.2.90.0000.00818.13
8.2.80.0000.00819.03
8.2.70.0050.00317.93
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0040.00419.48
8.2.30.0040.00419.30
8.2.20.0100.00218.00
8.2.10.0050.00618.54
8.2.00.0080.00418.72
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00822.18
8.1.230.0110.00020.97
8.1.220.0040.00418.94
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0030.00517.61
8.1.180.0060.00318.10
8.1.170.0030.00518.84
8.1.160.0020.00519.00
8.1.150.0080.00318.25
8.1.140.0100.00218.27
8.1.130.0050.00718.89
8.1.120.0080.00417.60
8.1.110.0080.00317.62
8.1.100.0040.00617.69
8.1.90.0060.00617.72
8.1.80.0060.00517.67
8.1.70.0060.00417.68
8.1.60.0060.00318.70
8.1.50.0000.01117.73
8.1.40.0040.00418.63
8.1.30.0050.00318.63
8.1.20.0050.00518.63
8.1.10.0000.00918.68
8.1.00.0040.00618.56
8.0.300.0030.00620.10
8.0.290.0040.00416.88
8.0.280.0000.00818.53
8.0.270.0060.00317.80
8.0.260.0070.00218.65
8.0.250.0000.00818.01
8.0.240.0050.00417.96
8.0.230.0040.00417.96
8.0.220.0050.00317.85
8.0.210.0020.00617.85
8.0.200.0020.00617.97
8.0.190.0030.00517.87
8.0.180.0020.00617.97
8.0.170.0050.00517.04
8.0.160.0060.00416.99
8.0.150.0070.00317.03
8.0.140.0030.00817.03
8.0.130.0060.00315.18
8.0.120.0050.00417.04
8.0.110.0040.00417.08
8.0.100.0080.00117.13
8.0.90.0040.00517.02
8.0.80.0070.00717.00
8.0.70.0050.00416.97
8.0.60.0020.00617.01
8.0.50.0040.00516.94
8.0.30.0050.01317.22
8.0.20.0110.00517.29
8.0.10.0080.00117.07
8.0.00.0070.00717.15
7.4.330.0080.00115.99
7.4.320.0080.00316.75
7.4.300.0070.00516.76
7.4.290.0040.00816.85
7.4.280.0070.00616.67
7.4.270.0050.00716.72
7.4.260.0100.00115.09
7.4.250.0060.00516.79
7.4.240.0100.00216.69
7.4.230.0110.00216.65
7.4.220.0060.00516.66
7.4.210.0080.00916.81
7.4.200.0070.00516.87
7.4.190.0150.00016.68
7.4.180.0060.00816.68
7.4.160.0090.00516.84
7.4.150.0110.00416.69
7.4.140.0110.00316.63
7.4.130.0120.00516.74
7.4.120.0150.00416.64
7.4.110.0090.01016.72
7.4.100.0090.00916.77
7.4.90.0140.00916.75
7.4.80.0110.00716.69
7.4.70.0110.00816.77
7.4.60.0130.00716.47
7.4.50.0120.00516.69
7.4.40.0130.00416.49
7.4.30.0120.00516.53
7.4.20.0100.00916.64
7.4.10.0140.00416.64
7.4.00.0120.00516.71
7.3.330.0050.00516.43
7.3.320.0090.00214.91
7.3.310.0070.00416.46
7.3.300.0110.00016.47
7.3.290.0100.00616.43
7.3.280.0140.00016.43
7.3.270.0070.00716.43
7.3.260.0130.00416.56
7.3.250.0100.00516.43
7.3.240.0090.00616.43
7.3.230.0090.00816.58
7.3.220.0080.00916.65
7.3.210.0110.00716.62
7.3.200.0100.00816.57
7.3.190.0120.00816.43
7.3.180.0120.00616.50
7.3.170.0110.00616.46
7.3.160.0080.00916.47
7.3.150.0080.00916.67
7.3.140.0110.00616.49
7.3.130.0110.01316.51
7.3.120.0110.00616.52
7.3.110.0100.00916.63
7.3.100.0080.01016.55
7.3.90.0110.00616.59
7.3.80.0120.00616.65
7.3.70.0120.00716.48
7.3.60.0090.00916.44
7.3.50.0120.00816.46
7.3.40.0100.00616.45
7.3.30.0110.00716.57
7.3.20.0140.00716.93
7.3.10.0110.00616.93
7.3.00.0120.00616.94
7.2.340.0120.00416.73
7.2.330.0100.01116.86
7.2.320.0090.01016.75
7.2.310.0090.01016.65
7.2.300.0120.00616.69
7.2.290.0090.00816.67
7.2.280.0110.00616.64
7.2.270.0100.00916.69
7.2.260.0120.00716.69
7.2.250.0100.01316.70
7.2.240.0130.00616.71
7.2.230.0080.01116.71
7.2.220.0090.00816.80
7.2.210.0110.00816.66
7.2.200.0110.00816.75
7.2.190.0120.00816.70
7.2.180.0130.00616.70
7.2.170.0110.00716.75
7.2.160.0090.00916.82
7.2.150.0110.00917.17
7.2.140.0150.00917.24
7.2.130.0110.00917.23
7.2.120.0120.00917.09
7.2.110.0150.00517.12
7.2.100.0120.00817.16
7.2.90.0070.01217.14
7.2.80.0130.00617.20
7.2.70.0120.00717.18
7.2.60.0110.00817.16
7.2.50.0080.01017.25
7.2.40.0110.00717.25
7.2.30.0140.00617.21
7.2.20.0110.00717.14
7.2.10.0110.01017.16
7.2.00.0120.00717.20

preferences:
50.14 ms | 400 KiB | 5 Q