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.00716.50
8.3.50.0110.00622.14
8.3.40.0090.00918.98
8.3.30.0140.00319.07
8.3.20.0070.00020.33
8.3.10.0000.00823.66
8.3.00.0000.00819.26
8.2.180.0130.00318.31
8.2.170.0070.00722.96
8.2.160.0140.00320.52
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0020.00522.38
8.2.110.0030.00622.39
8.2.100.0110.00017.78
8.2.90.0060.00319.22
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00419.94
8.2.30.0050.00519.81
8.2.20.0020.00517.77
8.2.10.0040.00417.95
8.2.00.0000.00817.71
8.1.280.0130.00325.92
8.1.270.0080.00023.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.87
8.1.230.0090.00319.10
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.22
8.1.180.0060.00318.10
8.1.170.0000.00918.63
8.1.160.0040.00422.02
8.1.150.0040.00418.60
8.1.140.0040.00417.54
8.1.130.0000.00717.76
8.1.120.0000.00717.55
8.1.110.0030.00517.53
8.1.100.0040.00417.59
8.1.90.0040.00417.61
8.1.80.0040.00417.53
8.1.70.0030.00317.51
8.1.60.0000.00817.59
8.1.50.0020.00517.63
8.1.40.0000.00817.56
8.1.30.0080.00017.78
8.1.20.0040.00417.66
8.1.10.0040.00417.58
8.1.00.0000.00817.48
8.0.300.0040.00420.73
8.0.290.0040.00417.05
8.0.280.0030.00318.33
8.0.270.0000.00717.09
8.0.260.0000.00617.20
8.0.250.0000.00717.01
8.0.240.0000.00717.05
8.0.230.0000.00716.91
8.0.220.0000.00716.95
8.0.210.0070.00416.86
8.0.200.0070.00317.00
8.0.190.0030.00517.07
8.0.180.0040.00416.93
8.0.170.0030.00716.90
8.0.160.0030.00616.87
8.0.150.0000.00716.82
8.0.140.0040.00416.91
8.0.130.0030.00313.40
8.0.120.0030.00516.83
8.0.110.0040.00416.99
8.0.100.0000.00916.93
8.0.90.0050.00216.82
8.0.80.0080.00816.88
8.0.70.0080.00016.80
8.0.60.0070.00016.94
8.0.50.0070.00017.00
8.0.30.0090.01217.31
8.0.20.0130.00617.40
8.0.10.0040.00416.98
8.0.00.0090.00916.74
7.4.330.0020.00215.00
7.4.320.0030.00316.68
7.4.300.0060.00016.55
7.4.290.0000.00716.73
7.4.280.0040.00416.75
7.4.270.0000.00716.70
7.4.260.0000.00716.66
7.4.250.0000.00816.59
7.4.240.0010.00616.74
7.4.230.0000.00716.66
7.4.220.0130.00616.83
7.4.210.0050.01016.72
7.4.200.0040.00416.66
7.4.190.0070.00016.71
7.4.160.0000.01516.69
7.4.150.0080.00817.40
7.4.140.0090.00917.86
7.4.130.0080.00916.69
7.4.120.0080.01016.61
7.4.110.0080.00816.65
7.4.100.0030.02016.70
7.4.90.0090.00916.55
7.4.80.0160.00619.39
7.4.70.0140.00716.51
7.4.60.0100.00616.44
7.4.50.0080.00016.54
7.4.40.0130.01016.71
7.4.30.0030.01316.53
7.4.00.0070.00815.09
7.3.330.0030.00313.18
7.3.320.0000.00513.08
7.3.310.0000.00716.13
7.3.300.0030.00316.32
7.3.290.0040.01116.27
7.3.280.0110.00716.36
7.3.270.0120.00417.40
7.3.260.0060.01216.74
7.3.250.0120.00816.46
7.3.240.0030.01316.21
7.3.230.0100.01016.39
7.3.210.0090.00916.32
7.3.200.0100.00919.39
7.3.190.0000.02216.42
7.3.180.0030.01316.66
7.3.170.0030.01316.27
7.3.160.0100.00616.40
7.3.120.0060.00915.12
7.3.10.0140.00316.66
7.3.00.0080.00816.36
7.2.330.0110.00516.54
7.2.320.0120.01616.48
7.2.310.0100.00916.47
7.2.300.0060.01616.48
7.2.290.0110.00716.34
7.2.130.0040.00816.44
7.2.120.0110.00816.57
7.2.110.0140.00416.60
7.2.100.0080.01716.66
7.2.90.0140.01316.79
7.2.80.0080.01216.71
7.2.70.0150.01116.85
7.2.60.0100.01317.06
7.2.50.0100.01016.61
7.2.40.0110.00416.98
7.2.30.0070.00416.84
7.2.20.0090.00616.95
7.2.10.0070.00316.78
7.2.00.0060.01118.13
7.1.250.0080.00515.65
7.1.100.0030.01018.33
7.1.70.0070.00316.98
7.1.60.0100.01319.46
7.1.50.0160.00617.01
7.1.00.0000.07722.30
7.0.200.0180.00714.69
7.0.140.0070.07322.01
7.0.60.0100.05319.95
7.0.50.0000.04317.91
7.0.40.0070.07020.03
7.0.30.0470.05320.30
7.0.20.0330.08020.12
7.0.10.0100.06320.14
7.0.00.0070.09020.35
5.6.280.0030.07321.06
5.6.210.0100.07720.46
5.6.200.0070.08318.23
5.6.190.0030.04720.63
5.6.180.0200.03720.63
5.6.170.0230.05720.44
5.6.160.0100.03720.50
5.6.150.0000.05718.18
5.6.140.0070.03718.26
5.6.130.0000.04318.21
5.6.120.0070.08020.93
5.6.110.0100.08320.96
5.6.100.0030.09721.03
5.6.90.0070.06721.06
5.6.80.0070.08020.52
5.5.350.0030.07320.29
5.5.340.0030.04017.98
5.5.330.0070.08320.25
5.5.320.0400.04320.35
5.5.310.0370.05720.34
5.5.300.0100.07718.01
5.5.290.0130.06717.93
5.5.280.0130.07720.64
5.5.270.0100.08320.66
5.5.260.0130.08320.78
5.5.250.0100.04020.69
5.5.240.0070.07320.25
5.4.450.0700.06719.45
5.4.440.0730.05719.48
5.4.430.0670.06019.16
5.4.420.0770.06019.56
5.4.410.0930.05019.05
5.4.400.0630.06019.25
5.4.390.0530.05719.12
5.4.380.0400.04718.79
5.4.370.0230.06018.70
5.4.360.0330.04318.71
5.4.350.0370.05018.70
5.4.340.0370.05318.84
5.4.320.0060.03612.48
5.4.310.0090.03612.48
5.4.300.0080.03612.48
5.4.290.0080.03612.48
5.4.280.0070.04312.37
5.4.270.0090.04212.37
5.4.260.0080.03912.37
5.4.250.0100.04012.37
5.4.240.0130.04712.38
5.4.230.0070.05012.37
5.4.220.0090.05212.37
5.4.210.0080.05212.36
5.4.200.0090.05412.36
5.4.190.0080.05112.36
5.4.180.0070.03512.36
5.4.170.0050.04512.37
5.4.160.0040.05712.37
5.4.150.0070.04412.36
5.4.140.0090.05412.05
5.4.130.0160.04812.04
5.4.120.0090.04612.00
5.4.110.0060.03811.99
5.4.100.0060.03511.99
5.4.90.0070.04111.99
5.4.80.0070.04111.99
5.4.70.0070.03811.98
5.4.60.0060.03811.99
5.4.50.0060.04211.99
5.4.40.0070.03711.97
5.4.30.0090.03411.97
5.4.20.0040.04211.97
5.4.10.0060.03811.97
5.4.00.0080.03511.46
5.3.290.0070.05712.80
5.3.280.0080.03712.70
5.3.270.0060.04512.73
5.3.260.0100.05112.72
5.3.250.0080.04912.72
5.3.240.0050.04412.72
5.3.230.0110.03612.71
5.3.220.0060.03912.68
5.3.210.0070.03912.68
5.3.200.0100.05212.68
5.3.190.0110.04912.68
5.3.180.0070.03812.67
5.3.170.0080.03712.67
5.3.160.0090.03612.67
5.3.150.0120.03412.67
5.3.140.0080.03812.66
5.3.130.0070.04112.65
5.3.120.0020.04412.66
5.3.110.0050.04012.66
5.3.100.0070.03612.12
5.3.90.0060.03912.10
5.3.80.0070.03712.09
5.3.70.0070.03812.09
5.3.60.0100.04612.08
5.3.50.0080.05312.02
5.3.40.0100.07312.02
5.3.30.0100.03611.98
5.3.20.0100.04311.76
5.3.10.0080.03811.73
5.3.00.0100.04311.71
5.2.170.0040.0329.21
5.2.160.0070.0299.21
5.2.150.0080.0309.21
5.2.140.0070.0329.21
5.2.130.0060.0349.17
5.2.120.0070.0289.18
5.2.110.0080.0279.18
5.2.100.0060.0299.18
5.2.90.0060.0319.18
5.2.80.0050.0339.17
5.2.70.0070.0389.18
5.2.60.0080.0329.13
5.2.50.0060.0379.09
5.2.40.0110.0329.08
5.2.30.0050.0369.05
5.2.20.0070.0309.04
5.2.10.0090.0468.95
5.2.00.0100.0458.81
5.1.60.0030.0298.08
5.1.50.0090.0318.07
5.1.40.0060.0278.05
5.1.30.0060.0318.40
5.1.20.0080.0388.43
5.1.10.0040.0398.15
5.1.00.0110.0338.15
5.0.50.0070.0266.63
5.0.40.0100.0246.49
5.0.30.0090.0296.30
5.0.20.0030.0246.27
5.0.10.0040.0226.25
5.0.00.0060.0376.24
4.4.90.0060.0144.78
4.4.80.0040.0164.76
4.4.70.0050.0224.75
4.4.60.0050.0224.76
4.4.50.0050.0224.77
4.4.40.0040.0274.71
4.4.30.0050.0214.76
4.4.20.0040.0234.85
4.4.10.0070.0204.84
4.4.00.0050.0334.76
4.3.110.0020.0244.67
4.3.100.0060.0214.66
4.3.90.0030.0204.64
4.3.80.0070.0324.59
4.3.70.0080.0354.63
4.3.60.0060.0204.63
4.3.50.0030.0234.63
4.3.40.0040.0464.54
4.3.30.0080.0203.29
4.3.20.0080.0253.27
4.3.10.0070.0173.23
4.3.00.0170.01310.55

preferences:
37.65 ms | 401 KiB | 5 Q