3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fullString = 'ignore everything except this (text) and (that (text here))'; if (preg_match_all('~\(([^()]*)\)~', $fullString, $matches)) { print_r($matches[0]); // Get whole match values print_r($matches[1]); // Get Group 1 values }

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.0080.01118.40
8.3.50.0120.00817.52
8.3.40.0110.00319.02
8.3.30.0070.00718.79
8.3.20.0040.00421.89
8.3.10.0100.00421.23
8.3.00.0110.00220.38
8.2.180.0040.01525.92
8.2.170.0040.01518.94
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0100.00122.47
8.2.130.0030.00723.24
8.2.120.0050.00320.10
8.2.110.0040.00520.62
8.2.100.0060.00418.49
8.2.90.0000.00918.41
8.2.80.0050.00318.54
8.2.70.0030.00518.39
8.2.60.0000.00818.59
8.2.50.0070.00118.49
8.2.40.0010.00719.17
8.2.30.0010.00619.53
8.2.20.0040.00418.47
8.2.10.0050.00318.85
8.2.00.0060.00218.37
8.1.280.0060.00925.92
8.1.270.0090.00423.02
8.1.260.0080.00024.16
8.1.250.0030.00525.14
8.1.240.0030.01221.27
8.1.230.0090.00020.61
8.1.220.0040.00418.24
8.1.210.0040.00418.64
8.1.200.0020.00617.96
8.1.190.0030.00517.89
8.1.180.0040.00418.32
8.1.170.0050.00318.61
8.1.160.0040.00918.56
8.1.150.0020.00618.60
8.1.140.0060.00219.42
8.1.130.0050.00418.98
8.1.120.0040.00318.14
8.1.110.0000.00818.09
8.1.100.0060.00218.06
8.1.90.0060.00218.09
8.1.80.0060.00218.13
8.1.70.0060.00218.00
8.1.60.0050.00318.23
8.1.50.0050.00418.16
8.1.40.0070.00118.04
8.1.30.0060.00218.32
8.1.20.0060.00218.21
8.1.10.0030.00617.94
8.1.00.0060.00218.97
8.0.300.0040.00419.38
8.0.290.0070.00417.34
8.0.280.0080.00718.20
8.0.270.0060.00717.54
8.0.260.0120.00717.32
8.0.250.0080.00517.48
8.0.240.0090.00817.38
8.0.230.0100.00517.51
8.0.220.0100.00317.35
8.0.210.0120.00217.38
8.0.200.0040.00417.52
8.0.190.0080.00417.51
8.0.180.0100.00318.41
8.0.170.0120.00817.46
8.0.160.0050.00318.42
8.0.150.0140.00617.32
8.0.140.0150.00517.35
8.0.130.0080.00815.58
8.0.120.0130.00417.32
8.0.110.0060.00517.41
8.0.100.0070.00717.46
8.0.90.0100.00517.17
8.0.80.0080.00817.45
8.0.70.0050.00717.40
8.0.60.0150.00417.40
8.0.50.0160.00317.27
8.0.30.0110.00717.36
8.0.20.0130.00718.09
8.0.10.0130.00717.63
8.0.00.0120.00718.02
7.4.330.0110.00515.03
7.4.320.0160.00717.16
7.4.300.0140.00917.05
7.4.290.0240.00017.14
7.4.280.0180.00317.18
7.4.270.0170.00217.07
7.4.260.0130.00517.14
7.4.250.0140.00517.15
7.4.240.0090.01017.10
7.4.230.0080.00517.08
7.4.220.0150.00317.06
7.4.210.0100.00816.88
7.4.200.0080.00317.11
7.4.190.0120.00417.66
7.4.180.0160.00017.73
7.4.160.0130.00317.76
7.4.150.0120.00417.73
7.4.140.0110.00517.75
7.4.130.0160.00417.17
7.4.120.0130.00317.17
7.4.110.0080.00817.14
7.4.100.0220.00317.27
7.4.90.0200.00717.24
7.4.80.0180.00718.50
7.4.70.0140.00917.22
7.4.60.0150.00816.90
7.4.50.0220.00517.04
7.4.40.0150.01017.02
7.4.30.0190.00817.19
7.4.20.0190.00816.82
7.4.10.0080.01016.99
7.4.00.0090.00716.41
7.3.330.0110.00015.28
7.3.320.0070.00415.33
7.3.310.0080.00316.92
7.3.300.0100.00217.02
7.3.290.0080.00316.85
7.3.280.0110.00516.83
7.3.270.0090.00617.27
7.3.260.0110.00816.64
7.3.250.0180.00417.39
7.3.240.0120.01016.82
7.3.230.0230.00516.87
7.3.220.0370.00017.34
7.3.210.0180.00917.09
7.3.200.0170.00816.68
7.3.190.0110.00616.89
7.3.180.0180.00516.79
7.3.170.0230.00817.06
7.3.160.0190.00716.87
7.3.150.0130.01417.03
7.3.140.0160.01016.99
7.3.130.0190.00716.76
7.3.120.0150.00816.25
7.3.110.0120.01116.15
7.3.100.0100.00916.24
7.3.90.0130.00416.40
7.3.80.0120.00716.05
7.3.70.0100.00616.25
7.3.60.0100.00516.26
7.3.50.0100.00615.64
7.3.40.0070.00715.92
7.3.30.0090.00915.93
7.3.20.0100.00617.30
7.3.10.0110.00617.22
7.3.00.0100.01017.19
7.2.340.0220.00917.48
7.2.330.0170.00616.95
7.2.320.0100.00816.96
7.2.310.0100.00917.13
7.2.300.0140.00917.03
7.2.290.0200.00317.05
7.2.280.0220.00617.10
7.2.270.0140.01017.03
7.2.260.0080.00917.01
7.2.250.0190.00317.14
7.2.240.0150.00916.39
7.2.230.0150.00816.36
7.2.220.0120.00716.26
7.2.210.0150.01016.29
7.2.200.0140.00516.41
7.2.190.0170.00816.48
7.2.180.0140.00615.92
7.2.170.0150.00516.08
7.2.160.0100.01116.00
7.2.150.0140.01017.44
7.2.140.0100.01017.37
7.2.130.0170.01117.44
7.2.120.0110.00817.47
7.2.110.0120.00617.53
7.2.100.0090.00917.42
7.2.90.0120.00817.39
7.2.80.0110.01117.54
7.2.70.0100.00917.44
7.2.60.0140.00817.41
7.2.50.0130.00917.39
7.2.40.0130.00917.52
7.2.30.0150.00817.42
7.2.20.0150.01017.46
7.2.10.0150.00817.54
7.2.00.0130.00817.52
7.1.330.0140.01216.51
7.1.320.0150.00716.66
7.1.310.0150.00616.70
7.1.300.0160.00416.66
7.1.290.0170.00416.66
7.1.280.0120.00716.36
7.1.270.0170.00816.71
7.1.260.0130.00616.48
7.1.250.0130.00816.42
7.1.240.0200.00416.99
7.1.230.0120.01316.94
7.1.220.0200.01117.02
7.1.210.0300.00317.03
7.1.200.0190.00616.89
7.1.190.0180.00716.96
7.1.180.0190.01217.01
7.1.170.0150.01016.79
7.1.160.0220.00516.91
7.1.150.0190.00816.91
7.1.140.0130.01017.01
7.1.130.0220.00216.83
7.1.120.0130.00917.03
7.1.110.0180.00416.96
7.1.100.0200.00516.97
7.1.90.0130.00917.08
7.1.80.0210.00517.05
7.1.70.0210.00416.92
7.1.60.0210.00716.83
7.1.50.0210.00716.95
7.1.40.0170.00817.01
7.1.30.0090.01617.18
7.1.20.0190.00717.08
7.1.10.0200.00717.14
7.1.00.0130.00916.83

preferences:
52.76 ms | 401 KiB | 5 Q