3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Wheat Flour (2%) [Wheat Flour, Wheat Gluten, Calcium Carbonate, Iron, Niacin (B3), Thiamin (B1), Ascorbic Acid], Water, Yeast, Salt, Vegetable Oils (Palm, Rapeseed, oils (sunflower, rapeseed)), Soya Flour"; if (preg_match_all('~[^][(),\s][^][(),]*(?:\s*(?:(\[(?:[^][]++|(?1))*])|(\((?:[^()]++|(?2))*\))))*~', $text, $matches)) { print_r($matches[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.5.10.0160.00716.95
8.5.00.0100.01120.21
8.4.150.0030.00014.05
8.4.140.0110.01017.57
8.4.130.0070.00517.93
8.4.120.0050.00424.38
8.4.110.0090.01122.60
8.4.100.0100.01017.94
8.4.90.0120.00920.37
8.4.80.0080.00218.57
8.4.70.0090.00918.11
8.4.60.0120.00719.75
8.4.50.0100.00920.62
8.4.40.0040.00817.87
8.4.30.0130.00720.29
8.4.20.0160.00319.04
8.4.10.0060.00319.79
8.3.280.0140.00818.64
8.3.270.0120.00716.84
8.3.260.0100.00716.86
8.3.250.0120.00718.91
8.3.240.0110.00816.96
8.3.230.0110.00916.64
8.3.220.0110.00519.00
8.3.210.0150.00618.52
8.3.200.0080.01116.54
8.3.190.0100.00517.07
8.3.180.0120.00716.79
8.3.170.0100.00718.63
8.3.160.0090.01217.18
8.3.150.0040.01116.61
8.3.140.0120.00616.93
8.3.130.0030.00516.71
8.3.120.0060.00318.83
8.3.110.0080.00820.94
8.3.100.0050.00324.06
8.3.90.0100.01026.77
8.3.80.0060.00316.88
8.3.70.0120.00316.58
8.3.60.0110.00718.55
8.3.50.0170.00318.15
8.3.40.0120.00318.82
8.3.30.0070.00718.78
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0130.00617.13
8.2.280.0080.01116.86
8.2.270.0100.01019.36
8.2.260.0060.00317.04
8.2.250.0090.00018.69
8.2.240.0060.00317.49
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0030.00616.63
8.2.190.0070.01416.63
8.2.180.0070.01525.92
8.2.170.0140.00718.91
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00620.02
8.2.110.0000.01022.07
8.2.100.0090.00318.03
8.2.90.0090.00017.88
8.2.80.0000.00818.89
8.2.70.0000.01018.05
8.2.60.0040.00418.09
8.2.50.0030.00718.10
8.2.40.0030.00521.18
8.2.30.0020.00519.36
8.2.20.0040.00418.03
8.2.10.0030.00520.89
8.2.00.0000.00719.10
8.1.330.0110.00821.84
8.1.320.0120.00816.65
8.1.310.0070.00018.31
8.1.300.0060.00318.26
8.1.290.0060.00318.88
8.1.280.0140.00425.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0100.00022.00
8.1.230.0040.00717.83
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0090.00017.36
8.1.190.0050.00317.35
8.1.180.0070.00318.10
8.1.170.0040.00418.63
8.1.160.0000.00718.88
8.1.150.0030.00518.92
8.1.140.0070.00018.77
8.1.130.0030.00620.11
8.1.120.0040.00417.61
8.1.110.0000.00717.52
8.1.100.0000.00717.53
8.1.90.0040.00417.49
8.1.80.0080.00417.45
8.1.70.0000.00817.54
8.1.60.0040.00417.59
8.1.50.0030.00617.64
8.1.40.0080.00017.54
8.1.30.0030.00617.70
8.1.20.0080.00017.61
8.1.10.0040.00717.76
8.1.00.0030.00717.70
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0040.00418.44
8.0.270.0030.00316.84
8.0.260.0000.00618.34
8.0.250.0000.00717.07
8.0.240.0000.00717.16
8.0.230.0000.00717.04
8.0.220.0030.00316.87
8.0.210.0040.00417.02
8.0.200.0070.00017.04
8.0.190.0040.00417.10
8.0.180.0040.00417.00
8.0.170.0030.00617.00
8.0.160.0000.00716.95
8.0.150.0030.00316.85
8.0.140.0000.01116.86
8.0.130.0000.00713.47
8.0.120.0070.00317.00
8.0.110.0040.00417.04
8.0.100.0030.00516.96
8.0.90.0020.00517.03
8.0.80.0080.00717.00
8.0.70.0050.00216.88
8.0.60.0000.00716.99
8.0.50.0070.00016.87
8.0.30.0100.01016.94
8.0.20.0100.01017.07
8.0.10.0060.00917.11
8.0.00.0040.01117.07
7.4.330.0030.00315.55
7.4.320.0070.00016.61
7.4.300.0060.00016.75
7.4.290.0000.00716.65
7.4.280.0030.00516.65
7.4.270.0030.00316.67
7.4.260.0030.00513.41
7.4.250.0050.00316.72
7.4.240.0030.00316.70
7.4.230.0080.00016.71
7.4.220.0050.00216.76
7.4.210.0050.01016.76
7.4.200.0070.00016.74
7.4.160.0110.00416.70
7.4.150.0060.01316.84
7.4.140.0060.00916.65
7.4.130.0120.00316.81
7.4.120.0060.00916.70
7.4.110.0100.01016.77
7.4.100.0110.01116.61
7.4.90.0030.01216.78
7.4.80.0100.00616.57
7.4.70.0060.00916.79
7.4.60.0030.01316.71
7.4.50.0120.00416.46
7.4.40.0030.01316.46
7.4.30.0100.00716.54
7.4.20.0130.00616.65
7.4.10.0030.01716.50
7.4.00.0060.01616.46
7.3.330.0020.00516.21
7.3.320.0030.00413.29
7.3.310.0080.00016.47
7.3.300.0000.00616.23
7.3.290.0120.00916.36
7.3.270.0060.01216.32
7.3.260.0080.00716.32
7.3.250.0060.00916.35
7.3.240.0040.01116.32
7.3.230.0060.01516.38
7.3.220.0040.01116.32
7.3.210.0080.00716.32
7.3.200.0070.01016.31
7.3.190.0090.00616.32
7.3.180.0110.00416.28
7.3.170.0030.01216.20
7.3.160.0030.01216.27
7.3.150.0060.01316.27
7.3.140.0040.01416.33
7.3.130.0070.01416.36
7.3.120.0080.01216.23
7.3.110.0060.01616.26
7.3.100.0070.01016.16
7.3.90.0100.00716.57
7.3.80.0060.01216.33
7.3.70.0090.00816.35
7.3.60.0110.00616.41
7.3.50.0120.00616.45
7.3.40.0110.00816.49
7.3.30.0130.00316.48
7.3.20.0000.01716.46
7.3.10.0060.01216.41
7.3.00.0090.00916.48

preferences:
45.56 ms | 403 KiB | 5 Q