3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = 'This www.google.com is the http://www.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.5.30.0170.00617.61
8.5.20.0090.00719.50
8.5.10.0100.00716.76
8.5.00.0120.01020.25
8.4.180.0130.00923.83
8.4.170.0140.00822.10
8.4.160.0160.00823.93
8.4.150.0090.00516.93
8.4.140.0110.01118.02
8.4.130.0070.00417.84
8.4.120.0100.01020.54
8.4.110.0110.00918.90
8.4.100.0110.00917.93
8.4.90.0090.01120.63
8.4.80.0140.00520.59
8.4.70.0100.00820.02
8.4.60.0100.01118.73
8.4.50.0140.00718.63
8.4.40.0130.00618.08
8.4.30.0130.01019.52
8.4.20.0110.01117.88
8.4.10.0100.01419.56
8.3.300.0080.01220.76
8.3.290.0100.01118.57
8.3.280.0130.00718.68
8.3.270.0120.00816.57
8.3.260.0100.00916.72
8.3.250.0110.00918.67
8.3.240.0110.00816.66
8.3.230.0100.00816.40
8.3.220.0060.00219.04
8.3.210.0080.00516.75
8.3.200.0040.00516.84
8.3.190.0050.01018.78
8.3.180.0070.00817.01
8.3.170.0070.00418.84
8.3.160.0150.00316.48
8.3.150.0080.00016.82
8.3.140.0080.00016.55
8.3.130.0090.00018.29
8.3.120.0060.00918.67
8.3.110.0120.00020.94
8.3.100.0030.00624.06
8.3.90.0090.00626.77
8.3.80.0060.00316.75
8.3.70.0140.00718.68
8.3.60.0080.01116.63
8.3.50.0070.00816.68
8.3.40.0120.00319.09
8.3.30.0140.00318.96
8.3.20.0050.00320.34
8.3.10.0050.00322.05
8.3.00.0080.00023.68
8.2.300.0120.00918.14
8.2.290.0080.00817.16
8.2.280.0020.00618.88
8.2.270.0070.01116.91
8.2.260.0040.01116.93
8.2.250.0040.00418.90
8.2.240.0130.00919.07
8.2.230.0050.00322.58
8.2.220.0040.00737.54
8.2.210.0050.00326.77
8.2.200.0000.00916.63
8.2.190.0110.00716.63
8.2.180.0100.01016.88
8.2.170.0150.00022.96
8.2.160.0070.00719.45
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0080.00021.25
8.2.120.0050.00326.35
8.2.110.0090.00019.06
8.2.100.0080.00417.75
8.2.90.0040.00419.36
8.2.80.0050.00317.97
8.2.70.0030.00517.75
8.2.60.0030.00517.75
8.2.50.0000.00817.99
8.2.40.0050.00321.21
8.2.30.0080.00019.17
8.2.20.0000.00718.04
8.2.10.0040.00418.09
8.2.00.0040.00418.09
8.1.340.0080.01218.41
8.1.330.0120.00721.86
8.1.320.0110.00818.20
8.1.310.0030.00616.53
8.1.300.0130.00718.41
8.1.290.0120.00330.84
8.1.280.0100.01025.92
8.1.270.0000.00724.10
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.03
8.1.230.0060.00617.73
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00816.99
8.1.180.0000.00818.10
8.1.170.0030.00617.63
8.1.160.0040.00418.80
8.1.150.0040.00420.10
8.1.140.0040.00419.50
8.1.130.0070.00018.77
8.1.120.0000.00717.45
8.1.110.0060.00317.54
8.1.100.0090.00017.55
8.1.90.0000.00717.61
8.1.80.0000.00717.50
8.1.70.0000.00717.61
8.1.60.0030.00617.58
8.1.50.0080.00017.66
8.1.40.0000.00817.58
8.1.30.0000.00817.66
8.1.20.0040.00417.66
8.1.10.0000.00717.63
8.1.00.0040.00417.66
8.0.300.0060.00318.77
8.0.290.0000.00717.00
8.0.280.0000.00718.42
8.0.270.0070.00016.95
8.0.260.0070.00018.84
8.0.250.0040.00416.99
8.0.240.0050.00316.94
8.0.230.0050.00216.96
8.0.220.0070.00016.88
8.0.210.0070.00016.88
8.0.200.0030.00317.01
8.0.190.0040.00417.04
8.0.180.0000.00717.01
8.0.170.0040.00417.04
8.0.160.0030.00517.01
8.0.150.0030.00516.91
8.0.140.0040.00416.87
8.0.130.0080.00013.50
8.0.120.0000.00816.99
8.0.110.0040.00416.99
8.0.100.0040.00416.86
8.0.90.0070.00017.11
8.0.80.0100.00617.00
8.0.70.0040.00416.85
8.0.60.0000.00817.02
8.0.50.0040.00417.10
8.0.30.0060.01117.43
8.0.20.0090.01017.40
8.0.10.0000.00717.00
8.0.00.0110.00617.14
7.4.330.0020.00215.55
7.4.320.0060.00016.82
7.4.300.0000.00616.68
7.4.290.0040.00416.77
7.4.280.0050.00516.61
7.4.270.0020.00516.69
7.4.260.0040.00416.64
7.4.250.0000.00716.73
7.4.240.0040.00416.76
7.4.230.0050.00316.52
7.4.220.0120.00616.59
7.4.210.0160.00016.85
7.4.200.0040.00416.61
7.4.160.0080.00716.72
7.4.150.0100.00917.40
7.4.140.0110.00717.86
7.4.130.0090.00916.63
7.4.120.0100.00816.64
7.4.110.0090.00916.69
7.4.100.0030.01516.80
7.4.90.0110.00616.68
7.4.80.0070.01419.39
7.4.70.0080.00816.87
7.4.60.0130.00316.52
7.4.50.0030.00916.63
7.4.40.0070.01016.87
7.4.30.0090.01116.79
7.4.00.0070.00715.13
7.3.330.0000.00613.18
7.3.320.0000.00513.09
7.3.310.0000.00716.21
7.3.300.0000.00716.38
7.3.290.0040.01216.33
7.3.280.0100.00716.34
7.3.270.0130.00617.40
7.3.260.0030.01316.57
7.3.250.0060.01116.43
7.3.240.0080.01116.49
7.3.230.0150.00916.43
7.3.210.0040.01216.72
7.3.200.0070.01016.57
7.3.190.0160.00016.46
7.3.180.0140.00416.39
7.3.170.0060.01016.76
7.3.160.0110.00616.66
7.2.330.0110.00616.51
7.2.320.0090.00916.51
7.2.310.0080.00816.74
7.2.300.0000.01616.74
7.2.290.0050.01116.77
7.2.110.0200.02016.34
7.2.60.0000.01416.82
7.1.200.0030.00715.96
7.1.90.0060.00618.22
7.1.80.0030.00918.47
7.1.70.0060.00617.49
7.1.60.0220.01235.36
7.1.50.0180.00635.01
7.1.40.0140.01134.70
7.1.30.0160.00934.75
7.1.20.0160.01034.96
7.1.10.0000.01316.75
7.1.00.0060.01216.68
7.0.230.0040.00818.20
7.0.220.0040.00817.80
7.0.210.0000.01116.76
7.0.200.0000.01116.62
7.0.190.0000.01316.94
7.0.180.0070.00716.41
7.0.170.0030.00916.34
7.0.160.0060.00616.29
7.0.150.0040.00816.14
7.0.140.0030.00916.41
7.0.130.0030.00916.60
7.0.120.0030.01216.69
7.0.110.0060.00616.52
7.0.100.0040.01216.55
7.0.90.0040.00816.37
7.0.80.0050.00816.52
7.0.70.0090.00416.35
7.0.60.0030.01516.23
7.0.50.0030.01216.39
7.0.40.0030.01016.50
7.0.30.0030.01016.52
7.0.20.0030.01416.51
7.0.10.0060.01216.48
7.0.00.0060.01116.50

preferences:
46.4 ms | 1483 KiB | 5 Q