3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = 'This www.google.com is the http://www.asda.facebook.com website that https://www.amazon.com make me awesome'; $pattern = '@((https?://)?([-\\w]+\\.[-\\w\\.]+)+\\w(:\\d+)?(/([-\\w/_\\.]*(\\?\\S+)?)?)*)@'; preg_match_all($pattern, $sentence, $matchFound); echo '<pre>'; print_r($matchFound[0]);

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.40.0090.00619.09
8.3.30.0120.00618.83
8.3.20.0030.00620.34
8.3.10.0080.00022.04
8.3.00.0050.00323.70
8.2.170.0120.00922.96
8.2.160.0110.00419.32
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0040.00421.03
8.2.120.0020.00526.35
8.2.110.0030.00720.30
8.2.100.0040.00718.09
8.2.90.0050.00319.12
8.2.80.0000.00719.25
8.2.70.0040.00417.63
8.2.60.0040.00418.05
8.2.50.0050.00218.16
8.2.40.0040.00420.64
8.2.30.0050.00219.24
8.2.20.0000.00718.10
8.2.10.0040.00417.91
8.2.00.0030.00618.10
8.1.270.0080.00022.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.81
8.1.230.0090.00320.36
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0030.00617.48
8.1.180.0080.00018.10
8.1.170.0040.00418.80
8.1.160.0000.00718.79
8.1.150.0030.00620.18
8.1.140.0050.00219.56
8.1.130.0070.00018.79
8.1.120.0000.00717.50
8.1.110.0050.00317.46
8.1.100.0030.00517.52
8.1.90.0040.00417.45
8.1.80.0000.00817.49
8.1.70.0030.00517.61
8.1.60.0030.00717.73
8.1.50.0000.00817.66
8.1.40.0000.00717.63
8.1.30.0040.00417.78
8.1.20.0070.00017.71
8.1.10.0000.00817.63
8.1.00.0050.00317.54
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0030.00318.36
8.0.270.0040.00417.34
8.0.260.0060.00318.91
8.0.250.0040.00417.09
8.0.240.0030.00617.07
8.0.230.0000.00817.07
8.0.220.0050.00316.91
8.0.210.0040.00417.04
8.0.200.0040.00416.97
8.0.190.0000.00917.06
8.0.180.0040.00416.90
8.0.170.0000.00717.05
8.0.160.0040.00316.88
8.0.150.0060.00317.00
8.0.140.0050.00316.83
8.0.130.0000.00513.42
8.0.120.0060.00316.89
8.0.110.0040.00417.04
8.0.100.0040.00417.00
8.0.90.0000.00717.04
8.0.80.0060.00917.07
8.0.70.0040.00416.89
8.0.60.0040.00416.79
8.0.50.0030.00516.81
8.0.30.0070.00817.34
8.0.20.0120.00917.40
8.0.10.0040.00417.14
8.0.00.0120.00617.04
7.4.330.0000.00515.55
7.4.320.0060.00016.66
7.4.300.0080.00016.62
7.4.290.0000.00816.75
7.4.280.0120.00016.77
7.4.270.0030.00316.66
7.4.260.0050.00216.66
7.4.250.0080.00016.56
7.4.240.0080.00016.83
7.4.230.0030.00316.75
7.4.220.0090.00916.70
7.4.210.0130.00716.70
7.4.200.0040.00416.68
7.4.160.0090.00716.59
7.4.150.0120.00617.40
7.4.140.0090.01017.86
7.4.130.0060.01116.68
7.4.120.0070.01116.75
7.4.110.0070.01016.80
7.4.100.0070.01016.70
7.4.90.0100.00616.59
7.4.80.0130.00319.39
7.4.70.0070.01016.47
7.4.60.0090.00916.57
7.4.50.0070.00716.48
7.4.40.0120.00616.62
7.4.30.0110.00716.65
7.4.00.0070.00715.14
7.3.330.0000.00513.09
7.3.320.0000.00513.10
7.3.310.0080.00016.22
7.3.300.0030.00316.17
7.3.290.0070.00916.35
7.3.280.0070.00916.38
7.3.270.0140.00317.40
7.3.260.0070.01316.67
7.3.250.0080.01316.53
7.3.240.0090.00716.49
7.3.230.0090.00916.59
7.3.210.0060.01216.29
7.3.200.0120.00516.68
7.3.190.0000.01616.45
7.3.180.0090.00916.84
7.3.170.0100.01016.77
7.3.160.0070.01316.56
7.3.00.0030.01016.79
7.2.330.0070.01016.59
7.2.320.0090.00916.88
7.2.310.0030.01316.86
7.2.300.0100.00716.64
7.2.290.0080.00816.72
7.2.130.0060.00617.14
7.2.120.0040.01217.08
7.2.110.0060.00616.84
7.2.100.0110.00416.98
7.2.90.0070.01116.73
7.2.80.0120.00316.91
7.2.70.0110.00417.03
7.2.60.0060.00616.77
7.2.50.0030.00616.79
7.2.40.0000.00917.15
7.2.30.0080.00417.18
7.2.20.0060.00616.88
7.2.10.0080.00416.91
7.2.00.0090.00616.84
7.1.250.0100.00715.80
7.1.240.0030.00715.91
7.1.230.0070.00715.97
7.1.220.0030.01015.73
7.1.210.0030.01315.90
7.1.200.0020.00915.85
7.1.190.0060.00316.06
7.1.180.0040.00715.94
7.1.170.0000.00815.78
7.1.160.0030.00715.91
7.1.150.0000.01316.00
7.1.140.0000.00815.97
7.1.130.0030.01015.82
7.1.120.0060.00616.04
7.1.110.0060.00316.02
7.1.100.0030.00615.92
7.1.90.0060.00717.22
7.1.80.0020.01017.13
7.1.70.0050.00716.58
7.1.60.0090.01225.55
7.1.50.0130.00825.32
7.1.40.0120.00825.39
7.1.30.0140.00525.31
7.1.20.0110.01325.39
7.1.10.0030.01016.31
7.1.00.0050.00816.42
7.0.330.0030.00815.28
7.0.320.0040.00415.43
7.0.310.0070.00315.28
7.0.300.0080.00515.60
7.0.290.0070.00015.27
7.0.280.0060.00315.35
7.0.270.0140.00415.49
7.0.260.0030.00915.62
7.0.250.0040.00715.18
7.0.240.0060.00615.29
7.0.230.0030.00916.74
7.0.220.0090.00416.60
7.0.210.0060.00615.95
7.0.200.0060.00516.27
7.0.190.0070.00816.14
7.0.180.0060.00516.01
7.0.170.0030.00815.95
7.0.160.0080.00515.84
7.0.150.0060.00615.86
7.0.140.0040.00715.94
7.0.130.0060.00816.00
7.0.120.0050.00616.13
7.0.110.0000.01116.03
7.0.100.0060.00815.80
7.0.90.0060.00615.93
7.0.80.0060.01016.06
7.0.70.0030.00915.99
7.0.60.0080.00515.98
7.0.50.0030.00815.94
7.0.40.0060.00615.23
7.0.30.0080.00514.89
7.0.20.0020.01115.06
7.0.10.0080.00514.97
7.0.00.0050.00714.95
5.6.380.0040.01114.28

preferences:
64.04 ms | 400 KiB | 5 Q