3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "text text text text [hello] text (hello2) (hello3) text"; $pattern = '/^\[([^)]*)\]/'; preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 1); print_r($matches);

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.0040.01116.75
8.3.50.0110.00622.02
8.3.40.0150.00018.58
8.3.30.0060.00919.00
8.3.20.0070.00020.39
8.3.10.0000.00721.60
8.3.00.0080.00019.51
8.2.180.0040.01118.52
8.2.170.0040.01122.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.35
8.2.110.0030.00622.21
8.2.100.0040.00717.97
8.2.90.0060.00318.92
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0080.00517.55
8.2.50.0090.00018.07
8.2.40.0050.00319.76
8.2.30.0000.01117.89
8.2.20.0000.00817.82
8.2.10.0040.00418.01
8.2.00.0070.00317.78
8.1.280.0140.00725.92
8.1.270.0030.00623.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.96
8.1.230.0040.00819.15
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.38
8.1.190.0040.00417.40
8.1.180.0030.00618.10
8.1.170.0040.00418.63
8.1.160.0050.00221.97
8.1.150.0040.00418.72
8.1.140.0040.00417.53
8.1.130.0000.00717.76
8.1.120.0040.00417.51
8.1.110.0020.00517.44
8.1.100.0000.00717.39
8.1.90.0000.00717.52
8.1.80.0030.00617.44
8.1.70.0030.00317.43
8.1.60.0000.00817.62
8.1.50.0000.00817.63
8.1.40.0050.00317.45
8.1.30.0000.00817.64
8.1.20.0060.00317.80
8.1.10.0040.00417.64
8.1.00.0000.00817.47
8.0.300.0070.00019.09
8.0.290.0000.00717.05
8.0.280.0070.00018.30
8.0.270.0000.00717.08
8.0.260.0070.00017.23
8.0.250.0000.00717.02
8.0.240.0030.00317.03
8.0.230.0070.00016.90
8.0.220.0030.00316.84
8.0.210.0040.00416.96
8.0.200.0030.00316.98
8.0.190.0050.00317.04
8.0.180.0000.00717.03
8.0.170.0060.00316.96
8.0.160.0030.00516.96
8.0.150.0040.00416.80
8.0.140.0070.00016.90
8.0.130.0070.00013.43
8.0.120.0030.00516.93
8.0.110.0030.00516.93
8.0.100.0040.00416.89
8.0.90.0000.00716.83
8.0.80.0130.00716.95
8.0.70.0070.00016.80
8.0.60.0040.00416.89
8.0.50.0000.00716.95
8.0.30.0060.01217.25
8.0.20.0090.00917.40
8.0.10.0080.00016.97
8.0.00.0090.00916.94
7.4.330.0000.00515.00
7.4.320.0000.00716.65
7.4.300.0000.00716.66
7.4.290.0040.00416.49
7.4.280.0070.00316.57
7.4.270.0040.00216.75
7.4.260.0040.00416.62
7.4.250.0050.00316.61
7.4.240.0050.00216.71
7.4.230.0000.00716.77
7.4.220.0090.00916.68
7.4.210.0080.00816.65
7.4.200.0000.00716.45
7.4.190.0000.00716.78
7.4.160.0030.01216.73
7.4.150.0030.01417.40
7.4.140.0130.00517.86
7.4.130.0100.00816.58
7.4.120.0120.00416.91
7.4.110.0130.00716.68
7.4.100.0120.00616.63
7.4.90.0060.01616.43
7.4.80.0060.01619.39
7.4.70.0170.00616.67
7.4.60.0130.00316.50
7.4.50.0050.00016.57
7.4.40.0100.00716.55
7.4.30.0090.00616.52
7.4.00.0090.00615.14
7.3.330.0030.00313.18
7.3.320.0030.00313.04
7.3.310.0050.00216.39
7.3.300.0000.00716.27
7.3.290.0040.01116.34
7.3.280.0110.00916.29
7.3.270.0040.01517.40
7.3.260.0040.01216.38
7.3.250.0110.00816.61
7.3.240.0070.01016.55
7.3.230.0060.01216.60
7.3.210.0040.01416.24
7.3.200.0120.00619.39
7.3.190.0100.01016.34
7.3.180.0110.00416.53
7.3.170.0080.00816.73
7.3.160.0060.01016.53
7.3.120.0090.00614.54
7.2.330.0110.00616.63
7.2.320.0100.00716.51
7.2.310.0160.00616.57
7.2.300.0100.01316.61
7.2.290.0090.01316.52
7.2.00.0060.00619.41
7.1.100.0110.00018.21
7.1.70.0000.00817.32
7.1.60.0170.00319.46
7.1.50.0070.01034.89
7.1.00.0030.07722.36
7.0.200.0320.00714.58
7.0.140.0070.06721.94
7.0.60.0100.07019.93
7.0.50.0030.05717.82
7.0.40.0030.08320.29
7.0.30.0130.04720.20
7.0.20.0230.07720.21
7.0.10.0030.05020.22
7.0.00.0030.08720.10
5.6.280.0030.07321.11
5.6.210.0070.06020.70
5.6.200.0030.09318.08
5.6.190.0100.06020.55
5.6.180.0330.07320.43
5.6.170.0370.07320.40
5.6.160.0170.07320.40
5.6.150.0030.07318.14
5.6.140.0130.07318.08
5.6.130.0070.08018.16
5.6.120.0070.04321.13
5.6.110.0030.08721.02
5.6.100.0070.04720.97
5.6.90.0130.06721.01
5.6.80.0200.06720.43
5.5.350.4070.04320.40
5.5.340.0130.04017.98
5.5.330.0000.04320.47
5.5.320.0330.07020.24
5.5.310.0270.06320.46
5.5.300.0000.09017.91
5.5.290.0070.06318.00
5.5.280.0000.09320.97
5.5.270.0130.07720.87
5.5.260.0100.08020.86
5.5.250.0070.07720.54
5.5.240.0100.07320.28
5.4.450.0800.06019.32
5.4.440.0800.05719.31
5.4.430.0530.06719.50
5.4.420.0070.05719.29
5.4.410.1000.05319.32
5.4.400.0130.05019.21
5.4.390.0500.07319.20
5.4.380.0330.04718.73
5.4.370.0270.05718.49
5.4.360.0330.04718.68
5.4.350.0230.05318.70
5.4.340.0230.05318.70
5.4.320.0070.03412.46
5.4.310.0090.03412.45
5.4.300.0040.04012.45
5.4.290.0120.04912.44
5.4.280.0060.05212.34
5.4.270.0070.05112.34
5.4.260.0040.05612.34
5.4.250.0070.05312.34
5.4.240.0080.05012.34
5.4.230.0050.05712.33
5.4.220.0060.05512.33
5.4.210.0080.05112.33
5.4.200.0100.05212.33
5.4.190.0060.05512.33
5.4.180.0040.05912.32
5.4.170.0080.05412.34
5.4.160.0080.05212.34
5.4.150.0070.05312.33
5.4.140.0090.05612.02
5.4.130.0190.05612.00
5.4.120.0090.05011.96
5.4.110.0060.05711.96
5.4.100.0080.04911.96
5.4.90.0080.05111.96
5.4.80.0110.04811.96
5.4.70.0110.04711.95
5.4.60.0140.07211.95
5.4.50.0060.05611.95
5.4.40.0120.05211.94
5.4.30.0090.05011.93
5.4.20.0090.06711.94
5.4.10.0120.04211.94
5.4.00.0100.04811.43
5.3.290.0050.04512.80
5.3.280.0100.05012.71
5.3.270.0120.06512.72
5.3.260.0120.05912.72
5.3.250.0110.06012.72
5.3.240.0100.05812.72
5.3.230.0100.04712.71
5.3.220.0050.05212.68
5.3.210.0060.05912.68
5.3.200.0090.04512.68
5.3.190.0070.03812.68
5.3.180.0050.03812.67
5.3.170.0060.04112.67
5.3.160.0060.04212.67
5.3.150.0070.03712.67
5.3.140.0070.03712.66
5.3.130.0090.04512.66
5.3.120.0080.05512.66
5.3.110.0080.05112.66
5.3.100.0090.04012.12
5.3.90.0070.04312.08
5.3.80.0060.03912.07
5.3.70.0080.04412.07
5.3.60.0110.04412.06
5.3.50.0060.04912.00
5.3.40.0080.04812.00
5.3.30.0080.04211.95
5.3.20.0050.04611.73
5.3.10.0090.04611.70
5.3.00.0040.05311.69
5.2.170.0060.0409.19
5.2.160.0060.0339.18
5.2.150.0080.0479.19
5.2.140.0130.0389.18
5.2.130.0080.0409.15
5.2.120.0050.0309.14
5.2.110.0010.0359.16
5.2.100.0060.0299.15
5.2.90.0050.0439.15
5.2.80.0080.0399.14
5.2.70.0050.0329.14
5.2.60.0060.0359.09
5.2.50.0030.0339.07
5.2.40.0040.0349.04
5.2.30.0080.0309.02
5.2.20.0040.0379.01
5.2.10.0050.0368.91
5.2.00.0100.0378.77
5.1.60.0060.0318.06
5.1.50.0040.0358.05
5.1.40.0070.0328.04
5.1.30.0050.0368.39
5.1.20.0070.0348.41
5.1.10.0050.0338.13
5.1.00.0070.0328.13
5.0.50.0080.0236.62
5.0.40.0050.0266.47
5.0.30.0010.0356.29
5.0.20.0080.0196.26
5.0.10.0040.0246.24
5.0.00.0070.0356.23
4.4.90.0050.0174.78
4.4.80.0020.0214.75
4.4.70.0030.0214.75
4.4.60.0060.0174.75
4.4.50.0010.0194.77
4.4.40.0010.0284.71
4.4.30.0060.0144.76
4.4.20.0030.0174.84
4.4.10.0010.0194.85
4.4.00.0030.0314.76
4.3.110.0020.0184.67
4.3.100.0060.0144.67
4.3.90.0040.0144.64
4.3.80.0050.0374.58
4.3.70.0050.0204.63
4.3.60.0020.0234.63
4.3.50.0040.0224.63
4.3.40.0050.0314.54
4.3.30.0010.0243.28
4.3.20.0030.0223.26
4.3.10.0030.0213.22
4.3.00.0230.03310.55

preferences:
44.72 ms | 401 KiB | 5 Q