3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'the(crow)bar', 'foo()bar', 'handlebar()', '()foofighters', '(foobar)', '()', 'barfood', 'barf(oo', 'fooeybar)', ')foob(', ]; $result = []; foreach ($strings as $string) { $result[$string] = preg_match('~\(([^)]+)\)~', $string, $match) ? $match[1] : ''; } var_export($result);

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.4.140.0090.01117.98
8.4.130.0160.00518.77
8.4.120.0110.00924.04
8.4.110.0110.01018.84
8.4.100.0160.00618.90
8.4.90.0110.01218.90
8.4.80.0050.00418.00
8.4.70.0080.00917.81
8.4.60.0130.00718.13
8.4.50.0130.00918.05
8.4.40.0090.00617.48
8.4.30.0130.00720.32
8.4.20.0100.01018.17
8.4.10.0060.01326.02
8.3.270.0130.00916.77
8.3.260.0120.00816.66
8.3.250.0100.00918.89
8.3.240.0080.00716.94
8.3.230.0150.00416.90
8.3.220.0070.00117.13
8.3.210.0110.00416.74
8.3.200.0140.00516.73
8.3.190.0110.00916.69
8.3.180.0090.01016.68
8.3.170.0130.00616.80
8.3.160.0110.00717.25
8.3.150.0070.01017.17
8.3.140.0080.00016.71
8.3.130.0060.00318.59
8.3.120.0060.01020.60
8.3.110.0140.00720.94
8.3.100.0080.00024.06
8.3.90.0000.00826.77
8.3.80.0030.00616.75
8.3.70.0120.00416.75
8.3.60.0100.00616.63
8.3.50.0090.00523.75
8.3.40.0040.01118.79
8.3.30.0040.01118.79
8.3.20.0000.00824.18
8.3.10.0050.00224.66
8.3.00.0070.00326.16
8.2.290.0090.00920.32
8.2.280.0040.00518.42
8.2.270.0140.00517.25
8.2.260.0080.00018.86
8.2.250.0060.00316.94
8.2.240.0100.00017.06
8.2.230.0040.00722.58
8.2.220.0030.00737.54
8.2.210.0060.00926.77
8.2.200.0060.00316.75
8.2.190.0070.01417.00
8.2.180.0100.00725.92
8.2.170.0030.01019.25
8.2.160.0000.01322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00026.35
8.2.110.0030.00622.20
8.2.100.0090.00317.97
8.2.90.0030.00518.00
8.2.80.0080.00018.99
8.2.70.0000.00917.88
8.2.60.0000.00918.05
8.2.50.0000.00818.05
8.2.40.0030.00620.00
8.2.30.0070.00018.17
8.2.20.0050.00318.08
8.2.10.0040.00419.41
8.2.00.0090.00019.35
8.1.330.0080.00721.95
8.1.320.0130.00816.23
8.1.310.0040.00418.64
8.1.300.0060.00318.45
8.1.290.0030.00618.88
8.1.280.0140.00425.92
8.1.270.0070.00023.99
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0040.00420.77
8.1.230.0120.00017.72
8.1.220.0080.00017.75
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0110.00017.38
8.1.180.0040.00418.10
8.1.170.0070.00018.64
8.1.160.0020.00518.89
8.1.150.0000.00718.84
8.1.140.0000.00718.80
8.1.130.0000.00717.53
8.1.120.0080.00017.58
8.1.110.0000.00817.63
8.1.100.0050.00217.65
8.1.90.0030.00317.59
8.1.80.0030.00617.65
8.1.70.0030.00517.67
8.1.60.0040.00417.74
8.1.50.0000.00817.60
8.1.40.0070.00017.75
8.1.30.0030.00617.76
8.1.20.0040.00417.78
8.1.10.0110.00017.73
8.1.00.0030.00717.70
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0030.00318.53
8.0.270.0040.00418.04
8.0.260.0030.00318.82
8.0.250.0040.00417.15
8.0.240.0030.00317.09
8.0.230.0030.00317.20
8.0.220.0030.00316.93
8.0.210.0030.00316.95
8.0.200.0000.00917.08
8.0.190.0000.00717.02
8.0.180.0040.00416.97
8.0.170.0090.00016.99
8.0.160.0040.00417.12
8.0.150.0000.00716.96
8.0.140.0080.00017.02
8.0.130.0000.00513.44
8.0.120.0030.00617.00
8.0.110.0040.00416.90
8.0.100.0040.00417.00
8.0.90.0030.00316.93
8.0.80.0070.00917.04
8.0.70.0080.00017.01
8.0.60.0070.00016.94
8.0.50.0000.00717.05
8.0.30.0100.00717.32
8.0.20.0110.00817.50
8.0.10.0130.01317.12
8.0.00.0110.00717.35
7.4.330.0030.00315.55
7.4.320.0030.00616.68
7.4.300.0030.00316.80
7.4.290.0040.00416.79
7.4.280.0040.00416.77
7.4.270.0000.00716.73
7.4.260.0050.00013.56
7.4.250.0000.00716.78
7.4.240.0020.00516.71
7.4.230.0040.00416.91
7.4.220.0040.00316.80
7.4.210.0090.00616.77
7.4.200.0030.00316.71
7.4.140.0090.00916.73
7.4.130.0070.01116.50
7.4.120.0040.01416.70
7.4.110.0060.01616.79
7.4.100.0080.01116.50
7.4.90.0080.01216.69
7.4.80.0130.00616.75
7.4.70.0070.01016.57
7.4.60.0120.01216.85
7.4.50.0130.00716.79
7.4.40.0190.00616.63
7.4.30.0120.00616.74
7.4.20.0090.00916.58
7.4.10.0100.01616.69
7.4.00.0090.01316.52
7.3.330.0070.00016.41
7.3.320.0060.00013.32
7.3.310.0070.00016.35
7.3.300.0000.00816.52
7.3.290.0080.00616.50
7.3.260.0120.00616.67
7.3.250.0030.01316.38
7.3.240.0130.01016.41
7.3.230.0120.01216.63
7.3.220.0090.00916.77
7.3.210.0070.01116.45
7.3.200.0100.01016.46
7.3.190.0150.00316.43
7.3.180.0120.00916.49
7.3.170.0000.01916.31
7.3.160.0160.00816.43
7.3.150.0070.01016.59
7.3.140.0030.02016.40
7.3.130.0160.00616.45
7.3.120.0130.01016.66
7.3.110.0090.01616.36
7.3.100.0160.01016.55
7.3.90.0140.00316.48
7.3.80.0120.00616.68
7.3.70.0070.01116.61
7.3.60.0060.01216.56
7.3.50.0150.00416.60
7.3.40.0120.00616.47
7.3.30.0120.00616.43
7.3.20.0180.00416.72
7.3.10.0140.00616.61
7.3.00.0070.01116.43

preferences:
30.84 ms | 403 KiB | 5 Q