3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "__('This is a (TEST) all of this i want') i dont want any of this; __(extract this)"; if (preg_match_all('~__(\(((?:[^()]++|(?1))*)\))~', $s, $matches)) { print_r($matches[2]); }

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.130.0130.00718.89
8.4.120.0040.00524.21
8.4.110.0070.00422.47
8.4.100.0120.00717.75
8.4.90.0140.00722.31
8.4.80.0090.00819.69
8.4.70.0040.00418.21
8.4.60.0110.01018.76
8.4.50.0050.00420.72
8.4.40.0100.00317.71
8.4.30.0130.00719.84
8.4.20.0120.00318.99
8.4.10.0060.00319.78
8.3.260.0060.00416.61
8.3.250.0120.00618.66
8.3.240.0100.01017.12
8.3.230.0050.00416.55
8.3.220.0130.00620.79
8.3.210.0160.00418.38
8.3.200.0060.00216.75
8.3.190.0090.00816.84
8.3.180.0100.00916.63
8.3.170.0080.00016.98
8.3.160.0110.00320.26
8.3.150.0150.00418.71
8.3.140.0040.01117.20
8.3.130.0070.01318.56
8.3.120.0130.00618.84
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0140.00426.77
8.3.80.0040.00418.56
8.3.70.0060.01018.28
8.3.60.0150.00018.55
8.3.50.0070.00816.43
8.3.40.0110.01118.73
8.3.30.0000.01518.87
8.3.20.0050.00320.48
8.3.10.0040.00423.53
8.3.00.0030.00522.39
8.2.290.0110.00720.45
8.2.280.0110.00818.59
8.2.270.0150.00317.40
8.2.260.0110.00017.07
8.2.250.0060.01216.89
8.2.240.0040.00418.92
8.2.230.0030.00622.58
8.2.220.0070.00337.54
8.2.210.0110.00426.77
8.2.200.0100.00318.29
8.2.190.0130.00916.88
8.2.180.0100.01016.63
8.2.170.0030.01222.96
8.2.160.0120.00322.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00620.02
8.2.110.0060.00322.26
8.2.100.0040.00817.91
8.2.90.0030.00518.03
8.2.80.0000.00819.00
8.2.70.0000.00817.75
8.2.60.0080.00017.75
8.2.50.0050.00317.63
8.2.40.0000.00819.60
8.2.30.0080.00017.84
8.2.20.0000.00718.15
8.2.10.0000.00719.08
8.2.00.0070.00018.00
8.1.330.0130.01022.24
8.1.320.0100.00916.36
8.1.310.0060.01218.31
8.1.300.0100.00018.21
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.03
8.1.230.0060.00621.04
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0030.00619.09
8.1.160.0000.00818.86
8.1.150.0000.00818.80
8.1.140.0000.00720.29
8.1.130.0090.00320.27
8.1.120.0070.00017.59
8.1.110.0030.00517.57
8.1.100.0040.00417.51
8.1.90.0070.00017.51
8.1.80.0040.00417.40
8.1.70.0040.00417.52
8.1.60.0000.00817.66
8.1.50.0040.00417.59
8.1.40.0040.00417.48
8.1.30.0030.00717.74
8.1.20.0000.00917.77
8.1.10.0050.00317.69
8.1.00.0080.00017.69
8.0.300.0040.00420.12
8.0.290.0040.00416.88
8.0.280.0030.00318.14
8.0.270.0030.00318.05
8.0.260.0060.00020.26
8.0.250.0030.00317.05
8.0.240.0040.00416.91
8.0.230.0040.00417.04
8.0.220.0000.00716.93
8.0.210.0080.00016.89
8.0.200.0030.00316.96
8.0.190.0000.00717.07
8.0.180.0050.00316.88
8.0.170.0060.00317.00
8.0.160.0040.00416.90
8.0.150.0000.00716.92
8.0.140.0000.00716.93
8.0.130.0000.00613.33
8.0.120.0040.00416.99
8.0.110.0000.00716.99
8.0.100.0000.00716.79
8.0.90.0030.00617.01
8.0.80.0060.01116.94
8.0.70.0040.00416.80
8.0.60.0000.00716.94
8.0.50.0050.00217.01
8.0.30.0080.00917.02
8.0.20.0150.00417.08
8.0.10.0030.00517.12
8.0.00.0120.00916.96
7.4.330.0020.00215.55
7.4.320.0030.00316.78
7.4.300.0030.00316.63
7.4.290.0030.00316.66
7.4.280.0040.00416.65
7.4.270.0000.00616.66
7.4.260.0050.00316.71
7.4.250.0000.01016.54
7.4.240.0030.00316.76
7.4.230.0000.00816.66
7.4.220.0080.00016.84
7.4.210.0060.00916.82
7.4.200.0040.00416.84
7.4.160.0070.00916.62
7.4.140.0120.00917.86
7.4.130.0070.01016.66
7.4.120.0110.00816.71
7.4.110.0070.01016.70
7.4.100.0100.01716.68
7.4.90.0140.00316.75
7.4.80.0160.00719.39
7.4.70.0070.01016.55
7.4.60.0090.00616.64
7.4.50.0040.01416.48
7.4.40.0150.00716.48
7.4.10.0070.00714.86
7.4.00.0060.00815.09
7.3.330.0030.00313.11
7.3.320.0000.00613.28
7.3.310.0040.00416.23
7.3.300.0070.00016.40
7.3.290.0090.00716.35
7.3.280.0060.00916.36
7.3.260.0080.00916.42
7.3.240.0120.00716.60
7.3.230.0070.01416.32
7.3.210.0060.01016.58
7.3.200.0060.01016.77
7.3.190.0070.01016.38
7.3.180.0080.00816.77
7.3.170.0040.01116.74
7.3.160.0070.01016.59
7.3.130.0120.00614.75
7.3.120.0050.01014.96
7.3.110.0120.00615.19
7.3.100.0000.01614.96
7.3.90.0070.00715.01
7.3.80.0070.00715.12
7.3.70.0070.01014.85
7.3.60.0040.01114.97
7.3.50.0060.00314.95
7.3.40.0060.00614.89
7.3.30.0080.00614.88
7.3.20.0480.00315.90
7.3.10.0060.00915.94
7.3.00.0120.01015.92
7.2.330.0070.02016.79
7.2.320.0150.00316.80
7.2.310.0160.00516.65
7.2.300.0100.00616.51
7.2.290.0040.01316.64
7.2.260.0040.01115.28
7.2.250.0080.00814.87
7.2.240.0100.00715.14
7.2.230.0040.01114.88
7.2.220.0040.01415.22
7.2.210.0000.01715.10
7.2.200.0070.00715.35
7.2.190.0100.00315.09
7.2.180.0040.01115.02
7.2.170.0100.00615.23
7.2.160.0120.00215.13
7.2.150.0370.00915.92
7.2.140.0390.00815.97
7.2.130.0150.01016.01
7.2.120.0360.00516.03
7.2.110.0330.00515.90
7.2.100.0250.00815.90
7.2.90.0290.00615.88
7.2.80.0230.00615.73
7.2.70.0250.00515.96
7.2.60.0120.00716.03
7.2.50.0120.00616.09
7.2.40.0500.00516.12
7.2.30.0100.00715.88
7.2.20.0310.00716.03
7.2.10.0300.00515.93
7.2.00.0290.00815.96
7.1.330.0030.01415.83
7.1.320.0100.00615.79
7.1.310.0040.00815.89
7.1.300.0080.00616.05
7.1.290.0050.00515.96
7.1.280.0080.00815.70
7.1.270.0740.01214.99
7.1.260.0350.00714.94
7.1.250.0240.00314.86
7.1.240.0110.00416.15
7.1.230.0100.00616.00
7.1.220.0060.00915.94
7.1.210.0120.00415.89
7.1.200.0090.00615.85
7.1.190.0070.00716.00
7.1.180.0040.00815.75
7.1.170.0070.00715.83
7.1.160.0100.00315.89
7.1.150.0060.00916.15
7.1.140.0070.00716.08
7.1.130.0060.00915.99
7.1.120.0050.00515.77
7.1.110.0130.00016.11
7.1.100.0060.00315.95
7.1.90.0140.00015.84
7.1.80.0050.00515.90
7.1.70.0040.00815.74
7.1.60.0080.00415.93
7.1.50.0120.00315.96
7.1.40.0060.00316.02
7.1.30.0030.00716.08
7.1.20.0000.01215.85
7.1.10.0030.00915.98
7.1.00.0070.00416.07

preferences:
29.17 ms | 403 KiB | 5 Q