3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "text text text text [helloo] text [hello2] (hello3) text"; $pattern = '/\[(.+?)\]/is'; $matched = preg_match($pattern, $subject, $matches); print_r($matches); print_r($matched);

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.0070.00716.50
8.3.50.0100.01222.11
8.3.40.0140.00718.59
8.3.30.0030.01018.92
8.3.20.0040.00420.16
8.3.10.0050.00321.57
8.3.00.0080.00019.38
8.2.180.0070.00718.26
8.2.170.0150.00722.96
8.2.160.0070.00720.44
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.38
8.2.110.0030.00622.19
8.2.100.0060.00617.84
8.2.90.0070.00019.28
8.2.80.0030.00517.97
8.2.70.0060.00317.75
8.2.60.0040.00417.67
8.2.50.0080.00018.07
8.2.40.0030.00620.07
8.2.30.0050.00219.77
8.2.20.0030.00517.75
8.2.10.0000.00717.95
8.2.00.0060.00617.93
8.1.280.0140.00025.92
8.1.270.0090.00023.96
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0040.00423.96
8.1.230.0110.00019.03
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0090.00017.48
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0030.00620.46
8.1.160.0000.00822.00
8.1.150.0060.00318.70
8.1.140.0000.00817.52
8.1.130.0070.00017.74
8.1.120.0070.00017.54
8.1.110.0050.00317.59
8.1.100.0000.00717.51
8.1.90.0040.00417.52
8.1.80.0000.00717.50
8.1.70.0030.00317.41
8.1.60.0030.00617.56
8.1.50.0040.00417.53
8.1.40.0030.00517.47
8.1.30.0000.00817.59
8.1.20.0000.00817.72
8.1.10.0070.00017.64
8.1.00.0050.00317.66
8.0.300.0000.00820.81
8.0.290.0060.00317.04
8.0.280.0070.00018.39
8.0.270.0070.00017.21
8.0.260.0000.00617.27
8.0.250.0070.00016.92
8.0.240.0070.00017.02
8.0.230.0030.00317.05
8.0.220.0030.00316.99
8.0.210.0000.00716.97
8.0.200.0020.00517.02
8.0.190.0000.00716.93
8.0.180.0040.00417.01
8.0.170.0000.00816.95
8.0.160.0070.00016.84
8.0.150.0070.00016.93
8.0.140.0040.00416.96
8.0.130.0030.00313.43
8.0.120.0040.00416.92
8.0.110.0070.00016.94
8.0.100.0040.00417.01
8.0.90.0050.00217.04
8.0.80.0000.01517.01
8.0.70.0000.00716.91
8.0.60.0050.00216.81
8.0.50.0000.00816.91
8.0.30.0140.00517.21
8.0.20.0060.01217.40
8.0.10.0000.00717.11
8.0.00.0170.00616.81
7.4.330.0030.00315.00
7.4.320.0000.00616.66
7.4.300.0030.00316.63
7.4.290.0040.00416.77
7.4.280.0040.00816.55
7.4.270.0050.00216.70
7.4.260.0050.00316.64
7.4.250.0000.00716.59
7.4.240.0020.00516.69
7.4.230.0000.00716.44
7.4.220.0160.00916.64
7.4.210.0080.00716.68
7.4.200.0030.00516.64
7.4.190.0000.00716.68
7.4.160.0130.00316.55
7.4.150.0140.00617.40
7.4.140.0120.00917.86
7.4.130.0070.01216.47
7.4.120.0130.00416.67
7.4.110.0160.00016.54
7.4.100.0090.01316.63
7.4.90.0080.01116.66
7.4.80.0090.00919.39
7.4.70.0110.00616.63
7.4.60.0080.00916.40
7.4.50.0040.00416.33
7.4.40.0090.01216.61
7.4.30.0070.01016.39
7.4.00.0070.00614.84
7.3.330.0070.00012.98
7.3.320.0030.00313.15
7.3.310.0070.00016.37
7.3.300.0050.00216.28
7.3.290.0070.00716.32
7.3.280.0050.01116.26
7.3.270.0170.00617.40
7.3.260.0070.01016.75
7.3.250.0070.00916.34
7.3.240.0120.00616.35
7.3.230.0110.00516.55
7.3.210.0120.00616.30
7.3.200.0130.00719.39
7.3.190.0060.01216.35
7.3.180.0070.00716.29
7.3.170.0140.00416.68
7.3.160.0050.01116.21
7.3.120.0030.00815.15
7.2.330.0280.01816.50
7.2.320.0100.00716.55
7.2.310.0060.01816.59
7.2.300.0140.00416.73
7.2.290.0070.01316.49
7.2.00.0000.01019.38
7.1.100.0000.01518.34
7.1.70.0030.01017.29
7.1.60.0130.01319.46
7.1.50.0100.02034.78
7.1.00.0130.06722.30
7.0.200.0220.00714.68
7.0.140.0070.07322.04
7.0.60.0100.07719.95
7.0.50.0070.08017.92
7.0.40.0070.04020.23
7.0.30.0230.04020.03
7.0.20.0230.05020.11
7.0.10.0130.08720.29
7.0.00.0070.06020.13
5.6.280.0100.06721.07
5.6.210.0000.04720.76
5.6.200.0100.06018.12
5.6.190.0100.07320.33
5.6.180.0170.04720.33
5.6.170.0300.05020.51
5.6.160.0030.09020.55
5.6.150.0100.07718.11
5.6.140.0070.07318.23
5.6.130.0100.06318.15
5.6.120.0070.08321.02
5.6.110.0000.04320.93
5.6.100.0070.04020.98
5.6.90.0100.06021.12
5.6.80.0030.08720.43
5.5.350.3400.04020.51
5.5.340.0000.05318.06
5.5.330.0070.04020.27
5.5.320.0300.08020.30
5.5.310.0300.08320.34
5.5.300.0030.05017.95
5.5.290.0100.08317.95
5.5.280.0100.08020.97
5.5.270.0100.06720.79
5.5.260.0030.06720.78
5.5.250.0030.04320.61
5.5.240.0070.06720.36
5.4.450.0700.07319.63
5.4.440.0930.07019.46
5.4.430.0600.06019.56
5.4.420.0900.05719.68
5.4.410.0100.05319.32
5.4.400.0830.05318.97
5.4.390.0630.06019.29
5.4.380.0400.04718.53
5.4.370.0230.05318.40
5.4.360.0300.06318.69
5.4.350.0230.06318.61
5.4.340.0300.05018.75
5.4.320.0080.03512.48
5.4.310.0030.04812.48
5.4.300.0030.03812.48
5.4.290.0060.05312.47
5.4.280.0100.03812.37
5.4.270.0070.04212.37
5.4.260.0070.04012.37
5.4.250.0090.05112.37
5.4.240.0080.04712.37
5.4.230.0070.04912.36
5.4.220.0120.06712.36
5.4.210.0080.05112.36
5.4.200.0120.04912.36
5.4.190.0110.05012.36
5.4.180.0110.05312.36
5.4.170.0160.04112.37
5.4.160.0080.06112.36
5.4.150.0080.04612.36
5.4.140.0060.05512.05
5.4.130.0070.05412.03
5.4.120.0080.05111.99
5.4.110.0090.04611.99
5.4.100.0180.04711.98
5.4.90.0110.05111.98
5.4.80.0110.05111.99
5.4.70.0130.05711.98
5.4.60.0070.04911.98
5.4.50.0100.03511.98
5.4.40.0040.03911.97
5.4.30.0070.03711.97
5.4.20.0080.03711.97
5.4.10.0050.03911.96
5.4.00.0100.04011.46
5.3.290.0060.04612.80
5.3.280.0040.04312.71
5.3.270.0100.06812.72
5.3.260.0050.04012.72
5.3.250.0120.05612.72
5.3.240.0080.04512.72
5.3.230.0170.06912.71
5.3.220.0120.05012.68
5.3.210.0160.05812.68
5.3.200.0140.05012.68
5.3.190.0100.08612.68
5.3.180.0090.06512.67
5.3.170.0060.05812.67
5.3.160.0060.05512.67
5.3.150.0090.05912.68
5.3.140.0150.07212.66
5.3.130.0110.04712.66
5.3.120.0070.05912.66
5.3.110.0060.05012.66
5.3.100.0090.04412.12
5.3.90.0100.05312.10
5.3.80.0060.04112.09
5.3.70.0060.03912.09
5.3.60.0040.04012.07
5.3.50.0090.03512.03
5.3.40.0050.03912.02
5.3.30.0090.03711.98
5.3.20.0080.05211.76
5.3.10.0060.05111.73
5.3.00.0050.03911.71
5.2.170.0060.0309.22
5.2.160.0050.0319.21
5.2.150.0040.0359.21
5.2.140.0090.0389.21
5.2.130.0070.0389.17
5.2.120.0070.0379.18
5.2.110.0090.0349.18
5.2.100.0100.0329.18
5.2.90.0060.0379.18
5.2.80.0060.0409.17
5.2.70.0050.0399.18
5.2.60.0040.0419.13
5.2.50.0090.0369.09
5.2.40.0030.0409.07
5.2.30.0060.0399.05
5.2.20.0050.0389.04
5.2.10.0060.0398.93
5.2.00.0060.0408.79
5.1.60.0030.0368.07
5.1.50.0110.0268.07
5.1.40.0040.0358.05
5.1.30.0070.0348.40
5.1.20.0030.0388.43
5.1.10.0100.0298.15
5.1.00.0060.0358.15
5.0.50.0040.0276.63
5.0.40.0050.0266.49
5.0.30.0070.0406.30
5.0.20.0060.0256.27
5.0.10.0060.0286.25
5.0.00.0050.0406.24
4.4.90.0030.0234.78
4.4.80.0050.0184.75
4.4.70.0060.0194.75
4.4.60.0030.0214.75
4.4.50.0030.0234.77
4.4.40.0040.0344.71
4.4.30.0020.0244.76
4.4.20.0050.0214.85
4.4.10.0050.0214.85
4.4.00.0040.0324.76
4.3.110.0040.0224.67
4.3.100.0090.0164.66
4.3.90.0030.0214.63
4.3.80.0030.0324.59
4.3.70.0030.0214.63
4.3.60.0050.0194.63
4.3.50.0060.0254.62
4.3.40.0070.0344.54
4.3.30.0020.0253.30
4.3.20.0060.0213.27
4.3.10.0030.0243.23
4.3.00.0200.01310.55

preferences:
43.96 ms | 401 KiB | 5 Q