3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reg_exUrl = "/((http|https|ftp|ftps)\:\/\/|(www)\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; $text = 'lol http://www.google.bg is an awesome website;'; if(preg_match($reg_exUrl, $text, $url)) { // make the urls hyper links $new_text = preg_replace($reg_exUrl, '<a href="'.$url[0].'" target="_blank">'.$url[0].'</a> ', $text); } else { // if no urls in the text just return the text echo $text; } echo $new_text;

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.0120.00318.68
8.3.50.0090.01022.05
8.3.40.0090.00618.82
8.3.30.0070.00720.20
8.3.20.0070.00720.29
8.3.10.0070.00721.93
8.3.00.0050.00222.44
8.2.180.0090.00616.88
8.2.170.0040.01222.96
8.2.160.0140.00022.24
8.2.150.0040.00424.18
8.2.140.0040.01124.66
8.2.130.0150.00326.16
8.2.120.0090.00020.81
8.2.110.0030.00722.24
8.2.100.0070.00317.91
8.2.90.0050.00319.17
8.2.80.0040.00419.46
8.2.70.0040.00417.88
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0050.00320.20
8.2.30.0000.00719.51
8.2.20.0040.00417.93
8.2.10.0040.00417.83
8.2.00.0040.00417.97
8.1.280.0170.00325.92
8.1.270.0050.00323.99
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0140.00723.96
8.1.230.0090.00320.68
8.1.220.0090.00017.77
8.1.210.0030.00618.77
8.1.200.0030.00717.47
8.1.190.0040.00417.41
8.1.180.0040.00419.14
8.1.170.0000.00818.70
8.1.160.0030.00618.98
8.1.150.0040.00418.80
8.1.140.0040.00417.52
8.1.130.0000.00717.86
8.1.120.0000.00717.53
8.1.110.0000.00817.66
8.1.100.0030.00617.62
8.1.90.0050.00217.60
8.1.80.0040.00417.61
8.1.70.0000.00717.59
8.1.60.0030.00617.65
8.1.50.0050.00317.60
8.1.40.0000.00917.69
8.1.30.0040.00417.77
8.1.20.0060.00317.79
8.1.10.0000.00817.78
8.1.00.0040.00417.58
8.0.300.0050.00218.77
8.0.290.0000.00717.18
8.0.280.0000.00718.41
8.0.270.0000.00717.20
8.0.260.0000.00616.88
8.0.250.0000.00717.14
8.0.240.0000.00917.16
8.0.230.0030.00317.07
8.0.220.0040.00416.96
8.0.210.0070.00017.04
8.0.200.0040.00417.00
8.0.190.0000.00717.01
8.0.180.0090.00017.11
8.0.170.0040.00416.90
8.0.160.0000.00717.04
8.0.150.0040.00416.97
8.0.140.0020.00516.92
8.0.130.0000.00613.47
8.0.120.0080.00016.92
8.0.110.0000.00916.94
8.0.100.0040.00417.09
8.0.90.0020.00516.94
8.0.80.0030.01216.94
8.0.70.0000.00816.94
8.0.60.0080.00017.07
8.0.50.0070.00016.94
8.0.30.0100.01017.29
8.0.20.0160.00317.43
8.0.10.0000.00717.10
8.0.00.0130.00717.01
7.4.330.0030.00315.00
7.4.320.0040.00416.84
7.4.300.0030.00316.75
7.4.290.0070.00016.79
7.4.280.0080.00016.63
7.4.270.0000.00716.81
7.4.260.0050.00013.48
7.4.250.0080.00016.82
7.4.240.0040.00416.77
7.4.230.0000.00716.57
7.4.220.0120.01216.54
7.4.210.0070.00916.76
7.4.200.0040.00416.79
7.4.190.0030.00316.77
7.4.160.0130.00316.86
7.4.150.0070.01117.40
7.4.140.0080.01117.86
7.4.130.0110.00516.64
7.4.120.0080.00816.65
7.4.110.0060.01216.87
7.4.100.0070.01016.64
7.4.90.0120.00616.73
7.4.80.0030.01719.39
7.4.70.0090.00916.74
7.4.60.0070.01416.68
7.4.50.0000.00816.56
7.4.40.0070.00722.77
7.4.30.0100.00616.46
7.4.00.0070.00714.83
7.3.330.0000.00713.18
7.3.320.0000.00513.34
7.3.310.0000.00816.35
7.3.300.0070.00016.46
7.3.290.0040.01116.38
7.3.280.0090.01016.42
7.3.270.0130.00317.40
7.3.260.0120.00616.70
7.3.250.0160.00416.64
7.3.240.0100.00716.53
7.3.230.0070.01716.84
7.3.210.0030.01317.00
7.3.200.0060.01219.39
7.3.190.0150.00616.47
7.3.180.0130.00316.47
7.3.170.0170.00316.80
7.3.160.0100.01016.60
7.3.120.0150.00014.91
7.2.330.0170.00316.86
7.2.320.0130.00916.82
7.2.310.0100.01016.82
7.2.300.0120.00416.72
7.2.290.0060.01216.83
7.2.60.0120.00616.82
7.2.50.0100.00316.88
7.2.00.0030.00919.57
7.1.200.0030.01016.02
7.1.70.0050.00217.38
7.1.60.0040.00717.61
7.1.50.0100.00717.15
7.1.00.0000.03722.46
7.0.200.0060.00616.94
7.0.140.0100.07021.97
7.0.110.0070.04720.07
7.0.100.0130.08720.02
7.0.90.0130.08020.11
7.0.80.0130.08019.95
7.0.70.0070.09019.96
7.0.60.0130.08320.05
7.0.50.0130.08319.88
7.0.40.0000.05019.84
7.0.30.0070.07319.79
7.0.20.0100.07719.84
7.0.10.0130.07019.67
7.0.00.0030.07719.73
5.6.280.0070.07021.06
5.6.260.0170.06320.50
5.6.250.0000.07720.69
5.6.240.0100.08020.67
5.6.230.0130.07720.63
5.6.220.0070.08320.70
5.6.210.0000.06020.70
5.6.200.0130.08020.66
5.6.190.0130.04020.66
5.6.180.0030.04720.56
5.6.170.0130.04020.55
5.6.160.0070.08320.56
5.6.150.0030.09320.82
5.6.140.0170.07020.65
5.6.130.0130.07020.69
5.6.120.0130.08320.46
5.6.110.0030.09020.58
5.6.100.0100.07720.61
5.6.90.0000.08320.60
5.6.80.0070.08020.03
5.6.70.0100.08320.07
5.6.60.0070.06719.99
5.6.50.0100.07719.99
5.6.40.0070.04720.05
5.6.30.0000.08020.06
5.6.20.0070.07719.93
5.6.10.0100.07319.99
5.6.00.0070.07320.01
5.5.380.0100.07717.59
5.5.370.0100.07317.53
5.5.360.0170.06717.62
5.5.350.0030.08317.68
5.5.340.0030.08018.13
5.5.330.0000.05017.77
5.5.320.0030.07018.13
5.5.310.0000.05717.89
5.5.300.0070.07318.09
5.5.290.0130.07717.84
5.5.280.0130.07017.89
5.5.270.0000.08317.98
5.5.260.0230.04718.02
5.5.250.0100.07717.70
5.5.240.0070.07717.64
5.5.230.0030.08017.24
5.5.220.0100.07717.36
5.5.210.0030.08017.48
5.5.200.0070.07717.48
5.5.190.0070.07717.37
5.5.180.0100.07717.45
5.5.160.0070.04317.51
5.5.150.0070.05717.51
5.5.140.0130.06717.11
5.5.130.0070.08317.44
5.5.120.0030.07717.59
5.5.110.0100.07717.59
5.5.100.0030.06017.12
5.5.90.0130.07017.25
5.5.80.0000.08317.16
5.5.70.0070.07317.27
5.5.60.0130.06317.00
5.5.50.0130.07317.09
5.5.40.0030.04317.36
5.5.30.0100.04017.09
5.5.20.0170.06017.49
5.5.10.0070.04717.13
5.5.00.0070.07717.08
5.4.450.0070.06319.25
5.4.440.0030.08019.50
5.4.430.0000.05019.32
5.4.420.0130.07719.48
5.4.410.0070.08019.45
5.4.400.0100.07018.95
5.4.390.0030.08318.93
5.4.380.0200.06319.00
5.4.370.0170.07319.18
5.4.360.0130.07018.95
5.4.350.0030.07319.07
5.4.340.0070.07319.00
5.4.320.0070.08019.18
5.4.310.0070.07019.00
5.4.300.0070.08019.07
5.4.290.0070.07318.97
5.4.280.0170.07019.07
5.4.270.0100.06719.11
5.4.260.0170.07019.07
5.4.250.0030.08019.11
5.4.240.0100.07319.09
5.4.230.0030.08018.94
5.4.220.0030.08719.02
5.4.210.0000.08019.03
5.4.200.0000.07718.95
5.4.190.0070.07319.02
5.4.180.0130.07019.11
5.4.170.0070.05719.01
5.4.160.0000.07719.01
5.4.150.0070.07719.14
5.4.140.0000.08316.25
5.4.130.0100.07316.21
5.4.120.0070.07316.35
5.4.110.0200.06016.41
5.4.100.0230.05716.37
5.4.90.0070.04316.38
5.4.80.0000.07316.47
5.4.70.0130.06316.34
5.4.60.0170.05316.34
5.4.50.0100.07016.10
5.4.40.0000.05016.26
5.4.30.0000.07716.51
5.4.20.0070.06316.20
5.4.10.0030.04316.05
5.4.00.0070.04315.58
5.3.290.0000.05014.72
5.3.280.0070.07314.67
5.3.270.0100.07714.48
5.3.260.0070.07014.54
5.3.250.0000.08014.53
5.3.240.0130.06314.45
5.3.230.0030.07314.42
5.3.220.0030.08014.64
5.3.210.0130.07014.57
5.3.200.0070.04314.50
5.3.190.0200.06014.59
5.3.180.0170.06314.55
5.3.170.0030.07714.55
5.3.160.0130.02714.49
5.3.150.0030.05314.50
5.3.140.0000.04014.48
5.3.130.0000.08014.43
5.3.120.0070.03714.56
5.3.110.0000.04714.39
5.3.100.0030.03714.04
5.3.90.0100.03013.86
5.3.80.0030.03713.94
5.3.70.0130.03314.11
5.3.60.0070.04714.06
5.3.50.0070.05013.80
5.3.40.0070.03013.83
5.3.30.0000.03713.93
5.3.20.0000.03713.51
5.3.10.0000.03713.56
5.3.00.0000.03713.50
5.2.170.0100.02311.20
5.2.160.0000.03011.06
5.2.150.0000.03011.06
5.2.140.0000.03011.15
5.2.130.0030.02711.04
5.2.120.0030.02711.10
5.2.110.0000.03311.04
5.2.100.0000.03711.18
5.2.90.0070.02311.09
5.2.80.0030.02710.88
5.2.70.0130.01711.02
5.2.60.0000.03010.99
5.2.50.0070.03311.17
5.2.40.0000.05310.95
5.2.30.0030.05311.05
5.2.20.0030.02710.89
5.2.10.0000.05011.00
5.2.00.0030.05710.67
5.1.60.0070.0279.93
5.1.50.0000.0539.94
5.1.40.0000.05710.04
5.1.30.0030.04710.25
5.1.20.0000.02710.34
5.1.10.0030.03310.13
5.1.00.0000.02710.00
5.0.50.0000.0209.88
5.0.40.0000.0209.88
5.0.30.0030.0639.88
5.0.20.0070.0279.88
5.0.10.0000.0209.88
5.0.00.0030.0309.88
4.4.90.0000.0179.88
4.4.80.0000.0179.88
4.4.70.0030.0339.88
4.4.60.0030.0209.88
4.4.50.0070.0309.88
4.4.40.0030.0509.88
4.4.30.0070.0239.88
4.4.20.0030.0239.88
4.4.10.0000.0179.88
4.4.00.0030.0409.88
4.3.110.0000.0179.88
4.3.100.0000.0139.88
4.3.90.0000.0179.88
4.3.80.0000.0439.88
4.3.70.0000.0139.88
4.3.60.0030.0139.88
4.3.50.0000.0139.88
4.3.40.0070.0179.88
4.3.30.0000.0179.88
4.3.20.0000.0179.88
4.3.10.0000.0139.88
4.3.00.0000.0139.88

preferences:
47.65 ms | 401 KiB | 5 Q