3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reg_exUrl = "/((http|https)\:\/\/|(www)\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; $text = 'demo www.google.bg'; preg_match_all($reg_exUrl, $text, $matches); $usedPatterns = array(); foreach($matches[0] as $pattern){ if(!array_key_exists($pattern, $usedPatterns)){ $usedPatterns[$pattern]=true; if(preg_match('%https',)) $text = str_replace ($pattern, "<a href='{$pattern}' target='_blank'>{$pattern}</a> ", $text); } } echo $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.00918.56
8.3.50.0130.00621.21
8.3.40.0040.01118.84
8.3.30.0110.00420.34
8.3.20.0080.00020.29
8.3.10.0040.00422.10
8.3.00.0040.00422.46
8.2.180.0120.00317.00
8.2.170.0120.00622.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.89
8.2.110.0060.00322.39
8.2.100.0090.00320.01
8.2.90.0000.00919.25
8.2.80.0030.00618.03
8.2.70.0000.00818.00
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0050.00318.34
8.2.30.0050.00219.59
8.2.20.0040.00418.01
8.2.10.0030.00618.05
8.2.00.0040.00418.04
8.1.280.0170.00325.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00323.85
8.1.230.0080.00419.02
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0000.00817.52
8.1.180.0080.00018.75
8.1.170.0060.00318.67
8.1.160.0020.00518.97
8.1.150.0040.00418.67
8.1.140.0080.00017.52
8.1.130.0030.00317.88
8.1.120.0000.00917.66
8.1.110.0080.00017.62
8.1.100.0040.00417.56
8.1.90.0070.00017.65
8.1.80.0000.00817.53
8.1.70.0000.00817.50
8.1.60.0080.00017.64
8.1.50.0000.00817.60
8.1.40.0000.00817.63
8.1.30.0030.00517.73
8.1.20.0040.00417.81
8.1.10.0000.00817.61
8.1.00.0040.00417.61
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0030.00318.56
8.0.270.0000.00717.30
8.0.260.0000.00717.00
8.0.250.0030.00317.09
8.0.240.0000.00817.09
8.0.230.0000.00717.21
8.0.220.0030.00317.21
8.0.210.0000.00716.98
8.0.200.0030.00317.24
8.0.190.0000.00817.06
8.0.180.0000.00717.15
8.0.170.0040.00417.14
8.0.160.0000.00717.10
8.0.150.0000.00717.10
8.0.140.0030.00517.07
8.0.130.0060.00013.59
8.0.120.0000.00817.00
8.0.110.0020.00517.03
8.0.100.0040.00417.05
8.0.90.0000.00817.02
8.0.80.0030.01317.13
8.0.70.0040.00417.05
8.0.60.0000.00716.98
8.0.50.0040.00417.18
8.0.30.0070.01217.35
8.0.20.0120.00717.40
8.0.10.0040.00417.21
8.0.00.0090.00916.87
7.4.330.0000.00516.71
7.4.320.0030.00316.84
7.4.300.0040.00416.73
7.4.290.0040.00416.80
7.4.280.0000.00716.82
7.4.270.0030.00316.73
7.4.260.0050.00013.51
7.4.250.0040.00416.70
7.4.240.0010.00616.71
7.4.230.0030.00316.52
7.4.220.0100.00916.79
7.4.210.0080.01016.79
7.4.200.0070.00016.53
7.4.190.0000.00716.63
7.4.160.0080.00816.56
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0030.01516.81
7.4.120.0070.01216.78
7.4.110.0070.01016.76
7.4.100.0100.00716.93
7.4.90.0170.00016.83
7.4.80.0030.01319.39
7.4.70.0060.01216.64
7.4.60.0030.01516.66
7.4.50.0040.00416.74
7.4.40.0000.01522.77
7.4.30.0060.01516.73
7.3.330.0000.00513.34
7.3.320.0050.00013.29
7.3.310.0070.00016.40
7.3.300.0030.00316.50
7.3.290.0110.00716.55
7.3.280.0050.01116.58
7.3.270.0150.00317.40
7.3.260.0110.00616.95
7.3.250.0080.01216.83
7.3.240.0000.01616.53
7.3.230.0070.01016.61
7.3.210.0030.01516.56
7.3.200.0170.00319.39
7.3.190.0030.01816.73
7.3.180.0070.01016.78
7.3.170.0130.00316.52
7.3.160.0170.00016.89
7.2.330.0120.00616.48
7.2.320.0070.01616.22
7.2.310.0040.01316.27
7.2.300.0060.01216.31
7.2.290.0120.00316.31
5.4.280.0100.04012.38
5.4.270.0070.04112.38
5.4.260.0040.04112.38
5.4.250.0050.03912.38
5.4.240.0070.04312.38
5.4.230.0060.04612.37
5.4.220.0100.03812.37
5.4.210.0090.03512.37
5.4.200.0080.03912.37
5.4.190.0070.03812.37
5.4.180.0080.03412.37
5.4.170.0090.03412.38
5.4.160.0070.03812.37
5.4.150.0050.04312.37
5.4.140.0040.04512.06
5.4.130.0070.03512.04
5.4.120.0070.03512.01
5.4.110.0090.03312.00
5.4.100.0070.03612.00
5.4.90.0080.04312.00
5.4.80.0050.04312.00
5.4.70.0070.04211.99
5.4.60.0090.04212.00
5.4.50.0080.04012.00
5.4.40.0070.03911.99
5.4.30.0040.03811.98
5.4.20.0070.03811.98
5.4.10.0070.03411.98
5.4.00.0070.03611.48
5.3.280.0070.04512.71
5.3.270.0110.04512.73
5.3.260.0070.05312.72
5.3.250.0090.04312.72
5.3.240.0070.05312.72
5.3.230.0090.04912.71
5.3.220.0100.05212.68
5.3.210.0090.04712.68
5.3.200.0100.04112.68
5.3.190.0100.04312.68
5.3.180.0090.04712.68
5.3.170.0090.04512.67
5.3.160.0060.04312.67
5.3.150.0070.03912.67
5.3.140.0050.03812.66
5.3.130.0050.04012.66
5.3.120.0060.03912.66
5.3.110.0070.03812.66
5.3.100.0060.03812.11
5.3.90.0080.03512.08
5.3.80.0080.03912.08
5.3.70.0040.03812.07
5.3.60.0070.04112.06
5.3.50.0060.03612.00
5.3.40.0080.04212.00
5.3.30.0080.04111.95
5.3.20.0070.04211.72
5.3.10.0070.03511.69
5.3.00.0070.03611.67

preferences:
38.28 ms | 401 KiB | 5 Q