3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<<INP value that I {want}, vs value "I do {NOT} want". Lets make it ' {nested {this {time}}} ' And yes, it's even "{bullet-{proof}}" whats :) INP; @preg_match_all('~("|\').*?\1(*SKIP)(*FAIL)|\{(?:[^{}]|(?R))*\}~', $input, $m); print_r($m[0]); ?>

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.0100.01016.75
8.3.50.0080.01016.59
8.3.40.0100.01019.07
8.3.30.0040.01818.84
8.3.20.0000.00819.02
8.3.10.0030.00620.73
8.3.00.0090.00019.50
8.2.180.0110.00816.63
8.2.170.0070.01122.96
8.2.160.0070.01019.50
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00319.27
8.2.110.0000.01020.54
8.2.100.0060.00617.91
8.2.90.0030.00519.17
8.2.80.0030.00517.97
8.2.70.0040.00417.88
8.2.60.0030.00618.00
8.2.50.0080.00018.07
8.2.40.0000.00718.15
8.2.30.0040.00418.01
8.2.20.0000.00919.75
8.2.10.0050.00317.89
8.2.00.0090.00017.71
8.1.280.0150.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.19
8.1.230.0130.00017.76
8.1.220.0040.00717.74
8.1.210.0050.00318.77
8.1.200.0100.00017.48
8.1.190.0030.00517.41
8.1.180.0000.00818.10
8.1.170.0030.00518.91
8.1.160.0000.00818.98
8.1.150.0060.00318.75
8.1.140.0040.00417.61
8.1.130.0000.00717.86
8.1.120.0000.00717.60
8.1.110.0040.00417.57
8.1.100.0070.00017.63
8.1.90.0070.00017.50
8.1.80.0000.00717.52
8.1.70.0070.00017.47
8.1.60.0040.00417.74
8.1.50.0040.00417.61
8.1.40.0050.00317.64
8.1.30.0080.00017.70
8.1.20.0090.00017.88
8.1.10.0030.00517.64
8.1.00.0080.00017.55
8.0.300.0060.00318.77
8.0.290.0070.00016.75
8.0.280.0070.00018.58
8.0.270.0050.00317.35
8.0.260.0000.00817.02
8.0.250.0000.00717.05
8.0.240.0080.00017.09
8.0.230.0030.00317.08
8.0.220.0030.00317.16
8.0.210.0070.00017.10
8.0.200.0030.00317.12
8.0.190.0070.00017.14
8.0.180.0040.00417.14
8.0.170.0000.01017.07
8.0.160.0000.00817.09
8.0.150.0030.00616.96
8.0.140.0020.00517.04
8.0.130.0000.00513.54
8.0.120.0040.00417.11
8.0.110.0000.00716.97
8.0.100.0000.00716.98
8.0.90.0000.00816.98
8.0.80.0090.00617.05
8.0.70.0040.00417.04
8.0.60.0040.00416.91
8.0.50.0000.00817.14
8.0.30.0130.00617.13
8.0.20.0080.00917.11
8.0.10.0040.00417.25
8.0.00.0090.01117.02
7.4.330.0000.00613.15
7.4.320.0030.00316.75
7.4.300.0060.00016.77
7.4.290.0000.00716.71
7.4.280.0040.00416.77
7.4.270.0000.00716.67
7.4.260.0000.00513.54
7.4.250.0030.00516.85
7.4.240.0000.00716.81
7.4.230.0000.00716.52
7.4.220.0160.00316.82
7.4.210.0040.01216.86
7.4.200.0000.00716.96
7.4.190.0030.00516.91
7.4.160.0040.01216.67
7.4.150.0150.00316.71
7.4.140.0110.01016.78
7.4.130.0060.01316.76
7.4.120.0120.00816.68
7.4.110.0090.00916.69
7.4.100.0100.01016.66
7.4.90.0110.00716.80
7.4.80.0060.01119.39
7.4.70.0170.00016.85
7.4.60.0140.00416.80
7.4.50.0070.00016.71
7.4.40.0070.00716.50
7.4.30.0050.01116.57
7.4.00.0100.00614.91
7.3.330.0000.00613.16
7.3.320.0000.00713.18
7.3.310.0000.00716.23
7.3.300.0030.00316.46
7.3.290.0030.01316.39
7.3.280.0090.00916.43
7.3.270.0140.00316.51
7.3.260.0030.01316.71
7.3.250.0110.00616.68
7.3.240.0100.00716.72
7.3.230.0090.00916.48
7.3.210.0150.00316.62
7.3.200.0130.00316.70
7.3.190.0110.00616.68
7.3.180.0100.01016.38
7.3.170.0150.00616.49
7.3.160.0060.01016.46
7.3.120.0120.00415.31
7.2.330.0160.00316.76
7.2.320.0140.00916.60
7.2.310.0170.00716.63
7.2.300.0160.00016.77
7.2.290.0130.00316.50
7.2.00.0060.00619.39
7.1.100.0000.01518.52
7.1.70.0030.00517.33
7.1.60.0160.00619.40
7.1.50.0060.01316.99
7.1.00.0070.06022.46
7.0.200.0120.00616.86
7.0.140.0100.06722.18
7.0.120.0000.07722.23
7.0.60.0070.08719.99
7.0.50.0070.03717.98
7.0.40.0130.04717.87
7.0.30.0170.07317.77
7.0.20.0030.08317.83
7.0.10.0030.08317.74
7.0.00.0030.07017.71
5.6.280.0170.05721.10
5.6.210.0070.03720.76
5.6.200.0100.07718.14
5.6.190.0070.04718.15
5.6.180.0100.04318.17
5.6.170.0070.06718.16
5.6.160.0070.08318.18
5.6.150.0130.07018.18
5.6.140.0100.08018.20
5.6.130.0100.07718.18
5.6.120.0030.08318.19
5.6.110.0170.06718.17
5.6.100.0130.07718.17
5.6.90.0130.07718.13
5.6.80.0070.08717.54
5.6.70.0130.07017.57
5.6.60.0070.07717.56
5.6.50.0070.05717.60
5.6.40.0070.07717.59
5.6.30.0030.08317.63
5.6.20.0170.03717.50
5.6.10.0100.04317.53
5.6.00.0100.06017.49
5.5.350.0000.08020.42
5.5.340.0070.07718.01
5.5.330.0030.08017.98
5.5.320.0100.06017.92
5.5.310.0100.07017.97
5.5.300.0070.08017.99
5.5.290.0000.07018.08
5.5.280.0030.08717.95
5.5.270.0100.08018.07
5.5.260.0030.07017.95
5.5.250.0130.06717.82
5.5.240.0130.07317.41
5.5.230.0000.09017.31
5.5.220.0100.07017.32
5.5.210.0070.07717.39
5.5.200.0100.07717.43
5.5.190.0070.06317.33
5.5.180.0100.07017.38
5.5.160.0100.05717.41
5.5.150.0030.04317.33
5.5.140.0100.05017.29
5.5.130.0130.06717.33
5.5.120.0100.03717.32
5.5.110.0200.07017.42
5.5.100.0070.07717.20
5.5.90.0170.07017.23
5.5.80.0070.08017.22
5.5.70.0030.06317.18
5.5.60.0070.07017.22
5.5.50.0000.05017.19
5.5.40.0070.07017.24
5.5.30.0100.07317.21
5.5.20.0070.07017.19
5.5.10.0100.07317.20
5.5.00.0170.05317.19
5.4.450.0000.05019.36
5.4.440.0100.05319.46
5.4.430.0100.05319.27
5.4.420.0170.05719.36
5.4.410.0070.08019.32
5.4.400.0070.07319.05
5.4.390.0130.07719.04
5.4.380.0070.07019.04
5.4.370.0070.04719.01
5.4.360.0100.07718.91
5.4.350.0100.07719.14
5.4.340.0000.05319.03
5.4.320.0000.04319.02
5.4.310.0070.03319.08
5.4.300.0100.07719.09
5.4.290.0030.04019.05
5.4.280.0100.05318.95
5.4.270.0030.08019.09
5.4.260.0070.07718.88
5.4.250.0030.07719.07
5.4.240.0070.05719.11
5.4.230.0070.05018.88
5.4.220.0130.03319.01
5.4.210.0070.06719.02
5.4.200.0100.04719.07
5.4.190.0170.07019.02
5.4.180.0100.03319.04
5.4.170.0070.07719.15
5.4.160.0100.07018.96
5.4.150.0000.04318.96
5.4.140.0000.04716.40
5.4.130.0130.03716.59
5.4.120.0100.07316.30
5.4.110.0100.05016.43
5.4.100.0070.03716.38
5.4.90.0130.06716.32
5.4.80.0070.04316.54
5.4.70.0070.07716.32
5.4.60.0070.07016.36
5.4.50.0030.06316.39
5.4.40.0130.07016.32
5.4.30.0000.07716.35
5.4.20.0030.07716.52
5.4.10.0070.05316.37
5.4.00.0100.07015.84
5.3.290.0070.03714.61
5.3.280.0070.04314.68
5.3.270.0070.06314.60
5.3.260.0070.06314.62
5.3.250.0200.06014.63
5.3.240.0070.04014.59
5.3.230.0200.04314.58
5.3.220.0000.08314.61
5.3.210.0070.07714.67
5.3.200.0070.03714.55
5.3.190.0100.07314.52
5.3.180.0070.08314.55
5.3.170.0130.06714.56
5.3.160.0030.07714.58
5.3.150.0070.05714.57
5.3.140.0070.07014.64
5.3.130.0030.08014.61
5.3.120.0070.07014.57
5.3.110.0100.07714.49
5.3.100.0070.04014.09
5.3.90.0030.07714.21
5.3.80.0130.06014.01
5.3.70.0070.07014.10
5.3.60.0070.06714.05
5.3.50.0130.06713.92
5.3.40.0100.07013.95
5.3.30.0070.07313.95
5.3.20.0030.08013.71
5.3.10.0100.07013.66
5.3.00.0030.05313.66
5.2.170.0030.04711.18
5.2.160.0030.06711.18
5.2.150.0070.05711.16
5.2.140.0030.04011.14
5.2.130.0070.04711.15
5.2.120.0070.06311.19
5.2.110.0000.06011.14
5.2.100.0030.03311.13
5.2.90.0030.03010.98
5.2.80.0030.07011.10
5.2.70.0070.05011.09
5.2.60.0030.04711.06
5.2.50.0130.05011.01
5.2.40.0000.05310.94
5.2.30.0130.05310.96
5.2.20.0170.05010.93
5.2.10.0030.05710.90
5.2.00.0000.04710.93
5.1.60.0030.0339.92
5.1.50.0000.0309.83
5.1.40.0070.0439.96
5.1.30.0030.06010.38
5.1.20.0100.05310.41
5.1.10.0000.06010.07
5.1.00.0030.05710.07
5.0.50.0070.0408.55
5.0.40.0030.0408.50
5.0.30.0070.0478.30
5.0.20.0030.0438.29
5.0.10.0030.0438.01
5.0.00.0000.0678.39
4.4.90.0000.0377.90
4.4.80.0030.0377.90
4.4.70.0000.0337.90
4.4.60.0030.0337.90
4.4.50.0030.0337.90
4.4.40.0100.0507.90
4.4.30.0000.0277.90
4.4.20.0000.0407.90
4.4.10.0100.0237.90
4.4.00.0000.0577.90
4.3.110.0000.0407.90
4.3.100.0070.0307.90
4.3.90.0030.0377.90
4.3.80.0000.0437.90
4.3.70.0030.0307.90
4.3.60.0030.0307.90
4.3.50.0030.0307.90
4.3.40.0030.0407.90
4.3.30.0000.0307.90
4.3.20.0000.0207.90
4.3.10.0000.0177.90
4.3.00.0030.0377.90

preferences:
48.16 ms | 401 KiB | 5 Q