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, 3); 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.0120.00316.50
8.3.50.0120.00621.89
8.3.40.0120.00318.70
8.3.30.0090.00618.88
8.3.20.0050.00320.13
8.3.10.0040.00421.78
8.3.00.0150.00019.25
8.2.180.0120.00316.50
8.2.170.0080.00822.96
8.2.160.0120.00320.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.25
8.2.110.0060.00322.01
8.2.100.0040.00817.72
8.2.90.0040.00419.08
8.2.80.0090.00017.97
8.2.70.0030.00717.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0030.00619.94
8.2.30.0050.00219.78
8.2.20.0050.00317.70
8.2.10.0000.00718.07
8.2.00.0070.00317.51
8.1.280.0070.01125.92
8.1.270.0100.00023.83
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0090.00023.83
8.1.230.0100.00019.05
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0050.00318.53
8.1.160.0000.00821.98
8.1.150.0070.00418.50
8.1.140.0050.00317.33
8.1.130.0030.00317.81
8.1.120.0070.00017.29
8.1.110.0040.00417.42
8.1.100.0040.00317.27
8.1.90.0040.00317.37
8.1.80.0050.00317.38
8.1.70.0000.00717.24
8.1.60.0060.00317.39
8.1.50.0030.00617.40
8.1.40.0080.00017.46
8.1.30.0030.00517.43
8.1.20.0040.00417.55
8.1.10.0040.00417.50
8.1.00.0000.00717.30
8.0.300.0040.00420.85
8.0.290.0020.00517.04
8.0.280.0000.00718.44
8.0.270.0000.00817.24
8.0.260.0000.00817.05
8.0.250.0030.00316.84
8.0.240.0000.00716.84
8.0.230.0000.00716.80
8.0.220.0060.00016.95
8.0.210.0030.00316.85
8.0.200.0040.00416.98
8.0.190.0000.00817.00
8.0.180.0040.00416.92
8.0.170.0040.00416.83
8.0.160.0050.00316.75
8.0.150.0000.00816.90
8.0.140.0070.00016.87
8.0.130.0050.00013.32
8.0.120.0040.00416.86
8.0.110.0020.00516.89
8.0.100.0040.00416.76
8.0.90.0030.00316.69
8.0.80.0110.00316.84
8.0.70.0030.00516.79
8.0.60.0020.00516.78
8.0.50.0070.00016.91
8.0.30.0090.00917.17
8.0.20.0120.00617.40
8.0.10.0000.00716.82
8.0.00.0070.01316.68
7.4.330.0000.00515.00
7.4.320.0030.00316.50
7.4.300.0070.00016.41
7.4.290.0000.00716.45
7.4.280.0030.00616.60
7.4.270.0030.00516.48
7.4.260.0030.00316.46
7.4.250.0050.00316.48
7.4.240.0030.00316.45
7.4.230.0030.00316.31
7.4.220.0060.01616.46
7.4.210.0070.00716.52
7.4.200.0030.00316.42
7.4.190.0030.00316.70
7.4.160.0110.00416.43
7.4.150.0130.01317.40
7.4.140.0100.00717.86
7.4.130.0170.00416.45
7.4.120.0130.00516.48
7.4.110.0070.01016.50
7.4.100.0110.01116.27
7.4.90.0090.00916.34
7.4.80.0060.01219.39
7.4.70.0190.00316.37
7.4.60.0060.01016.41
7.4.50.0060.00316.18
7.4.40.0170.00016.22
7.4.30.0070.01016.59
7.4.00.0090.00614.97
7.3.330.0030.00313.10
7.3.320.0050.00012.91
7.3.310.0040.00416.06
7.3.300.0000.00616.10
7.3.290.0060.01216.23
7.3.280.0120.00516.17
7.3.270.0090.00917.40
7.3.260.0100.00716.29
7.3.250.0130.00916.21
7.3.240.0090.00816.45
7.3.230.0000.01616.39
7.3.210.0090.00916.02
7.3.200.0120.00919.39
7.3.190.0070.01416.52
7.3.180.0140.00316.30
7.3.170.0060.00916.27
7.3.160.0100.00616.56
7.3.120.0100.00314.93
7.2.330.0000.01816.27
7.2.320.0120.00916.15
7.2.310.0110.01116.43
7.2.300.0140.00316.35
7.2.290.0120.00916.24
7.2.60.0060.00916.71
7.1.200.0030.00915.74
7.1.70.0090.00917.09
7.1.60.0040.01819.46
7.1.50.0070.01034.76
7.1.00.0030.07722.32
7.0.200.0330.00314.63
7.0.140.0100.06322.21
7.0.60.0100.05020.02
7.0.50.0130.06317.89
7.0.40.0000.05720.27
7.0.30.0330.05020.02
7.0.20.0230.08020.20
7.0.10.0130.08020.33
7.0.00.0100.05720.13
5.6.280.0100.06720.80
5.6.210.0000.09320.61
5.6.200.0070.07718.15
5.6.190.0100.06720.36
5.6.180.0330.04320.67
5.6.170.0530.05720.62
5.6.160.0070.05720.52
5.6.150.0070.07718.19
5.6.140.0170.07018.10
5.6.130.0100.07718.11
5.6.120.0130.07721.11
5.6.110.0070.06021.02
5.6.100.0230.08021.10
5.6.90.0070.04020.96
5.6.80.0030.04020.53
5.5.350.0170.08020.43
5.5.340.0070.04017.99
5.5.330.0100.03320.21
5.5.320.0230.06720.51
5.5.310.0400.06720.31
5.5.300.0130.05017.92
5.5.290.0000.05017.90
5.5.280.0070.08020.67
5.5.270.0100.08020.72
5.5.260.0130.06720.93
5.5.250.0000.04720.78
5.5.240.0030.06020.28
5.4.450.0930.04719.57
5.4.440.0670.07019.61
5.4.430.0100.07719.39
5.4.420.0270.06319.35
5.4.410.0130.05318.96
5.4.400.0030.06018.69
5.4.390.0170.06018.59
5.4.380.0100.05318.78
5.4.370.0000.06018.67
5.4.360.0070.05318.68
5.4.350.0050.07811.97
5.4.340.0100.09811.96
5.4.320.0070.04712.45
5.4.310.0030.04012.45
5.4.300.0080.03512.45
5.4.290.0080.05212.43
5.4.280.0200.06612.33
5.4.270.0090.07412.33
5.4.260.0070.05512.33
5.4.250.0140.03512.33
5.4.240.0100.03612.33
5.4.230.0130.04212.32
5.4.220.0100.05512.32
5.4.210.0110.05012.32
5.4.200.0070.05012.32
5.4.190.0060.04112.32
5.4.180.0080.04312.32
5.4.170.0090.03512.33
5.4.160.0140.04312.33
5.4.150.0090.06112.32
5.4.140.0100.06012.01
5.4.130.0080.05011.99
5.4.120.0070.05311.95
5.4.110.0070.06611.95
5.4.100.0150.05211.95
5.4.90.0040.04211.95
5.4.80.0040.05411.95
5.4.70.0090.04911.95
5.4.60.0070.05111.94
5.4.50.0030.05511.95
5.4.40.0160.05111.93
5.4.30.0200.10911.93
5.4.20.0100.06511.93
5.4.10.0080.04211.93
5.4.00.0070.04311.42
5.3.290.0060.05012.80
5.3.280.0060.04012.71
5.3.270.0060.05012.73
5.3.260.0130.05812.72
5.3.250.0090.06212.72
5.3.240.0130.07812.72
5.3.230.0060.05312.71
5.3.220.0120.05912.68
5.3.210.0090.05712.68
5.3.200.0130.05712.68
5.3.190.0070.05712.67
5.3.180.0090.05512.67
5.3.170.0100.07612.67
5.3.160.0070.06512.67
5.3.150.0090.06412.67
5.3.140.0110.06412.66
5.3.130.0130.08312.66
5.3.120.0090.07512.65
5.3.110.0110.06912.65
5.3.100.0240.09512.12
5.3.90.0200.10312.09
5.3.80.0290.10112.07
5.3.70.0250.07712.08
5.3.60.0240.07812.06
5.3.50.0080.06612.00
5.3.40.0210.07012.00
5.3.30.0150.05611.94
5.3.20.0070.05211.72
5.3.10.0130.05011.69
5.3.00.0050.05211.67
5.2.170.0280.1329.18
5.2.160.0110.0449.18
5.2.150.0100.0449.18
5.2.140.0110.0459.17
5.2.130.0040.0699.13
5.2.120.0120.0409.13
5.2.110.0200.0549.14
5.2.100.0160.0609.14
5.2.90.0070.0469.15
5.2.80.0130.0489.14
5.2.70.0090.0709.13
5.2.60.0070.0409.09
5.2.50.0070.0489.05
5.2.40.0140.0529.03
5.2.30.0240.0759.00
5.2.20.0080.0509.00
5.2.10.0060.0518.92
5.2.00.0140.0448.78
5.1.60.0070.0248.06
5.1.50.0080.0278.05
5.1.40.0040.0308.04
5.1.30.0090.0288.39
5.1.20.0080.0378.41
5.1.10.0090.0468.13
5.1.00.0080.0328.14
5.0.50.0090.0496.61
5.0.40.0140.0326.47
5.0.30.0090.0396.29
5.0.20.0050.0296.26
5.0.10.0090.0306.23
5.0.00.0040.0436.23
4.4.90.0080.0224.78
4.4.80.0080.0264.76
4.4.70.0030.0194.76
4.4.60.0020.0194.76
4.4.50.0020.0204.77
4.4.40.0080.0304.71
4.4.30.0050.0164.76
4.4.20.0060.0154.85
4.4.10.0050.0164.85
4.4.00.0040.0264.76
4.3.110.0040.0174.67
4.3.100.0030.0174.66
4.3.90.0040.0164.64
4.3.80.0020.0274.58
4.3.70.0030.0194.63
4.3.60.0130.0454.63
4.3.50.0040.0404.63
4.3.40.0060.0444.54
4.3.30.0020.0213.28
4.3.20.0030.0213.25
4.3.10.0030.0213.21
4.3.00.0130.0237.12

preferences:
41.64 ms | 401 KiB | 5 Q