3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); $text = "soundfly.us schoollife.edu hello.net some random news.yahoo.com text http://tinyurl.com/9uxdwc some http://google.com random text http://tinyurl.com/787988 and others will en.wikipedia.org/wiki/Country_music URL"; preg_match_all('$\b((https?|ftp|file)://)?[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]$i', $text, $matches); print_r($matches);

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.01016.63
8.3.50.0070.01122.13
8.3.40.0040.01518.83
8.3.30.0030.01019.09
8.3.20.0060.00320.26
8.3.10.0070.00023.48
8.3.00.0050.00319.51
8.2.180.0080.00818.31
8.2.170.0120.00922.96
8.2.160.0100.00720.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.42
8.2.110.0110.00019.21
8.2.100.0000.01117.89
8.2.90.0040.00419.13
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0040.00417.91
8.2.50.0100.00318.07
8.2.40.0040.00818.03
8.2.30.0090.00318.09
8.2.20.0030.00517.88
8.2.10.0000.00718.05
8.2.00.0030.00617.75
8.1.280.0000.02025.92
8.1.270.0050.00323.79
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00920.85
8.1.230.0080.00417.58
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0040.00417.35
8.1.180.0030.00619.01
8.1.170.0040.00418.63
8.1.160.0000.00721.86
8.1.150.0040.00418.70
8.1.140.0040.00417.55
8.1.130.0030.00320.16
8.1.120.0000.00817.52
8.1.110.0000.00817.59
8.1.100.0000.00917.57
8.1.90.0050.00217.58
8.1.80.0000.00917.59
8.1.70.0000.00717.55
8.1.60.0040.00417.70
8.1.50.0030.00517.59
8.1.40.0020.00517.66
8.1.30.0000.00917.66
8.1.20.0040.00417.58
8.1.10.0080.00017.54
8.1.00.0040.00417.55
8.0.300.0050.00518.77
8.0.290.0050.00316.88
8.0.280.0000.00718.41
8.0.270.0030.00317.21
8.0.260.0030.00320.05
8.0.250.0070.00017.05
8.0.240.0040.00417.03
8.0.230.0030.00516.95
8.0.220.0030.00316.89
8.0.210.0000.00716.85
8.0.200.0060.00617.10
8.0.190.0000.00817.01
8.0.180.0030.00517.02
8.0.170.0030.00516.93
8.0.160.0030.00617.01
8.0.150.0080.00016.98
8.0.140.0070.00016.85
8.0.130.0000.00613.33
8.0.120.0040.00416.95
8.0.110.0020.00517.02
8.0.100.0000.00716.85
8.0.90.0040.00417.05
8.0.80.0040.01117.02
8.0.70.0060.00316.88
8.0.60.0000.00817.04
8.0.50.0050.00216.84
8.0.30.0080.01017.00
8.0.20.0110.01117.40
8.0.10.0030.00617.16
8.0.00.0100.00917.04
7.4.330.0000.00515.00
7.4.320.0070.00016.76
7.4.300.0070.00016.74
7.4.290.0070.00016.80
7.4.280.0000.00816.77
7.4.270.0050.00316.61
7.4.260.0040.00416.77
7.4.250.0000.00816.71
7.4.240.0070.00016.68
7.4.230.0030.00316.46
7.4.220.0030.01616.78
7.4.210.0110.00416.71
7.4.200.0080.00016.55
7.4.190.0000.00716.84
7.4.160.0180.00316.68
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0090.00916.73
7.4.120.0080.01016.68
7.4.110.0120.00916.55
7.4.100.0050.01816.74
7.4.90.0090.00916.48
7.4.80.0110.00719.39
7.4.70.0060.00916.54
7.4.60.0070.01016.43
7.4.50.0040.00416.72
7.4.40.0110.00816.58
7.4.30.0130.00316.43
7.4.00.0120.00515.10
7.3.330.0000.00613.02
7.3.320.0000.00513.07
7.3.310.0000.00716.23
7.3.300.0030.00316.15
7.3.290.0030.01216.35
7.3.280.0100.00916.31
7.3.270.0100.00717.40
7.3.260.0210.02116.27
7.3.250.0050.01216.62
7.3.240.0110.00516.35
7.3.230.0080.00816.64
7.3.210.0100.00716.37
7.3.200.0120.00619.39
7.3.190.0030.01316.56
7.3.180.0110.00416.36
7.3.170.0180.00416.41
7.3.160.0120.00316.36
7.3.120.0110.00614.83
7.3.110.0070.00714.75
7.3.100.0080.00414.93
7.3.90.0120.00014.65
7.3.80.0030.01014.95
7.3.70.0030.00814.91
7.3.60.0070.00714.66
7.3.50.0070.01114.94
7.3.40.0090.00314.90
7.3.30.0030.01014.90
7.3.20.0090.00616.82
7.3.10.0100.00316.88
7.3.00.0000.00916.66
7.2.330.0090.01316.57
7.2.320.0050.01916.77
7.2.310.0130.00616.68
7.2.300.0030.01316.58
7.2.290.0110.00616.83
7.2.250.0100.01015.16
7.2.240.0100.01015.09
7.2.230.0040.01514.93
7.2.220.0090.00914.76
7.2.210.0150.00414.80
7.2.200.0060.00614.75
7.2.190.0000.01815.08
7.2.180.0080.01115.01
7.2.170.0110.00415.18
7.2.60.0070.00716.86
7.2.50.0110.00716.86
7.2.00.0060.00619.64
7.1.330.0030.01015.87
7.1.320.0030.01015.96
7.1.310.0060.00915.72
7.1.300.0030.01415.90
7.1.290.0000.01815.76
7.1.280.0000.01415.86
7.1.270.0060.00615.74
7.1.260.0030.01215.86
7.1.200.0040.00815.84
7.1.100.0030.01018.21
7.1.70.0040.00417.07
7.1.60.0030.01019.46
7.1.50.0100.01317.19
7.1.00.0030.07322.60
7.0.200.0160.00614.64
7.0.140.0030.07321.96
7.0.60.0030.09019.87
7.0.50.0030.05018.01
7.0.40.0070.04020.39
7.0.30.0370.07320.08
7.0.20.0230.03720.24
7.0.10.0100.06020.21
7.0.00.0000.05720.22
5.6.280.0030.07721.07
5.6.210.0070.08320.60
5.6.200.0170.07718.26
5.6.190.0170.07720.47
5.6.180.0230.05320.51
5.6.170.0130.04320.56
5.6.160.0030.08720.55
5.6.150.0070.06018.24
5.6.140.0030.04318.18
5.6.130.0100.08018.15
5.6.120.0070.05321.10
5.6.110.0130.06021.10
5.6.100.0000.05021.10
5.6.90.0100.04021.11
5.6.80.0030.04020.35
5.5.350.0030.08020.32
5.5.340.0030.05017.96
5.5.330.0070.08020.47
5.5.320.0300.08320.35
5.5.310.0400.07020.26
5.5.300.0100.07017.95
5.5.290.0230.06318.07
5.5.280.0130.05020.76
5.5.270.0300.07020.71
5.5.260.0070.04020.64
5.5.250.0030.05720.79
5.5.240.0000.04320.11
5.4.450.0870.07019.40
5.4.440.0800.05319.62
5.4.430.0630.06319.56
5.4.420.0830.05319.61
5.4.410.0700.05319.32
5.4.400.0900.05019.22
5.4.390.0900.04718.84
5.4.380.0370.05318.74
5.4.370.0330.05318.72
5.4.360.0400.05318.72
5.4.350.0230.06318.82
5.4.340.0400.05718.69
5.4.320.0080.03612.49
5.4.310.0090.03712.48
5.4.300.0120.04512.49
5.4.290.0190.06012.48
5.4.280.0140.05712.38
5.4.270.0140.04512.38
5.4.260.0130.04312.38
5.4.250.0120.05612.38
5.4.240.0150.04912.38
5.4.230.0070.04412.38
5.4.220.0060.03712.37
5.4.210.0100.03512.38
5.4.200.0040.04312.38
5.4.190.0070.04412.37
5.4.180.0080.03812.37
5.4.170.0120.03712.38
5.4.160.0070.04112.38
5.4.150.0060.03812.37
5.4.140.0050.03912.06
5.4.130.0110.03412.05
5.4.120.0100.04912.01
5.4.110.0100.05112.00
5.4.100.0070.04712.00
5.4.90.0080.04311.99
5.4.80.0090.05512.00
5.4.70.0110.03911.99
5.4.60.0060.03711.99
5.4.50.0070.04111.99
5.4.40.0090.03511.98
5.4.30.0060.03811.98
5.4.20.0080.05311.98
5.4.10.0100.04611.98
5.4.00.0100.04311.46
5.3.290.0090.03812.80
5.3.280.0080.04012.71
5.3.270.0080.04012.73
5.3.260.0040.04612.72
5.3.250.0070.03812.72
5.3.240.0180.04212.72
5.3.230.0120.03812.71
5.3.220.0080.03612.68
5.3.210.0090.03812.68
5.3.200.0060.03812.68
5.3.190.0110.03512.68
5.3.180.0060.03812.67
5.3.170.0070.04112.67
5.3.160.0070.04312.67
5.3.150.0070.03912.67
5.3.140.0160.03012.66
5.3.130.0060.04312.66
5.3.120.0100.04012.66
5.3.110.0100.04212.66
5.3.100.0110.04312.12
5.3.90.0120.06012.11
5.3.80.0170.05512.10
5.3.70.0130.05712.10
5.3.60.0100.05312.08
5.3.50.0120.03912.03
5.3.40.0110.04412.03
5.3.30.0220.05411.99
5.3.20.0130.03511.77
5.3.10.0050.04011.73
5.3.00.0030.04111.72
5.2.170.0060.0329.22
5.2.160.0040.0329.22
5.2.150.0080.0299.23
5.2.140.0060.0329.22
5.2.130.0080.0459.18
5.2.120.0070.0379.18
5.2.110.0100.0259.19
5.2.100.0080.0279.18
5.2.90.0110.0379.18
5.2.80.0120.0269.18
5.2.70.0070.0359.18
5.2.60.0100.0309.13
5.2.50.0070.0339.10
5.2.40.0080.0309.08
5.2.30.0150.0369.06
5.2.20.0080.0299.05
5.2.10.0100.0348.95
5.2.00.0100.0338.81
5.1.60.0130.0258.08
5.1.50.0160.0448.07
5.1.40.0110.0428.06
5.1.30.0060.0358.41
5.1.20.0080.0408.43
5.1.10.0050.0378.15
5.1.00.0070.0398.16
5.0.50.0090.0286.63
5.0.40.0060.0206.49
5.0.30.0070.0336.30
5.0.20.0040.0256.28
5.0.10.0030.0236.26
5.0.00.0080.0296.25
4.4.90.0060.0164.78
4.4.80.0060.0134.76
4.4.70.0070.0144.76
4.4.60.0040.0174.75
4.4.50.0060.0144.77
4.4.40.0070.0234.71
4.4.30.0050.0174.76
4.4.20.0060.0154.84
4.4.10.0070.0144.85
4.4.00.0050.0254.76
4.3.110.0030.0174.67
4.3.100.0060.0224.67
4.3.90.0070.0214.63
4.3.80.0050.0394.58
4.3.70.0050.0154.63
4.3.60.0050.0144.63
4.3.50.0020.0184.63
4.3.40.0060.0224.54
4.3.30.0040.0173.30
4.3.20.0010.0213.28
4.3.10.0090.0113.24
4.3.00.0000.01710.55

preferences:
49.41 ms | 401 KiB | 5 Q