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); 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.70.0140.00718.36
8.3.60.0120.00316.63
8.3.50.0100.00822.06
8.3.40.0150.00018.79
8.3.30.0120.00318.96
8.3.20.0050.00220.34
8.3.10.0070.00021.73
8.3.00.0040.00419.38
8.2.180.0090.00618.54
8.2.170.0150.00022.96
8.2.160.0060.01220.35
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.26
8.2.110.0060.01322.38
8.2.100.0080.00417.72
8.2.90.0030.00619.22
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00919.94
8.2.30.0030.00617.93
8.2.20.0040.00417.77
8.2.10.0040.00418.06
8.2.00.0060.00317.74
8.1.280.0150.00325.92
8.1.270.0040.00423.72
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00923.78
8.1.230.0000.01218.95
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0070.00318.10
8.1.170.0080.00018.71
8.1.160.0070.00021.89
8.1.150.0050.00518.71
8.1.140.0000.00717.58
8.1.130.0000.00717.75
8.1.120.0020.00517.59
8.1.110.0000.00717.43
8.1.100.0000.00717.55
8.1.90.0000.00717.51
8.1.80.0050.00317.45
8.1.70.0000.00717.38
8.1.60.0060.00317.55
8.1.50.0050.00317.59
8.1.40.0050.00317.62
8.1.30.0040.00417.66
8.1.20.0000.00717.66
8.1.10.0000.00717.71
8.1.00.0040.00417.52
8.0.300.0030.00620.67
8.0.290.0040.00416.93
8.0.280.0000.00718.27
8.0.270.0000.00717.13
8.0.260.0000.00817.11
8.0.250.0070.00017.04
8.0.240.0060.00016.89
8.0.230.0000.00716.93
8.0.220.0030.00316.90
8.0.210.0070.00016.95
8.0.200.0000.00717.09
8.0.190.0040.00417.01
8.0.180.0040.00417.00
8.0.170.0060.00316.94
8.0.160.0080.00016.86
8.0.150.0000.00716.83
8.0.140.0000.00816.96
8.0.130.0050.00013.37
8.0.120.0000.00816.95
8.0.110.0040.00416.92
8.0.100.0060.00316.79
8.0.90.0000.00716.88
8.0.80.0090.00616.90
8.0.70.0020.00516.82
8.0.60.0070.00016.78
8.0.50.0030.00417.03
8.0.30.0100.00917.17
8.0.20.0130.01017.40
8.0.10.0000.00817.20
8.0.00.0110.00916.89
7.4.330.0000.00615.00
7.4.320.0030.00316.75
7.4.300.0030.00516.55
7.4.290.0030.00316.65
7.4.280.0030.00616.66
7.4.270.0000.00716.78
7.4.260.0000.00716.74
7.4.250.0040.00416.74
7.4.240.0040.00316.74
7.4.230.0030.00316.85
7.4.220.0090.00916.76
7.4.210.0050.00916.71
7.4.200.0000.00716.49
7.4.190.0030.00316.87
7.4.160.0140.00616.44
7.4.150.0190.00617.40
7.4.140.0130.00417.86
7.4.130.0080.01016.78
7.4.120.0130.00516.61
7.4.110.0070.01016.65
7.4.100.0070.01416.57
7.4.90.0130.00416.72
7.4.80.0180.00019.39
7.4.70.0100.00716.81
7.4.60.0060.01116.43
7.4.50.0040.00416.37
7.4.40.0040.01316.68
7.4.30.0030.01416.76
7.4.00.0080.00914.93
7.3.330.0000.00613.07
7.3.320.0000.00613.21
7.3.310.0070.00016.35
7.3.300.0000.00716.35
7.3.290.0070.00716.31
7.3.280.0070.01316.28
7.3.270.0070.01017.40
7.3.260.0070.01016.78
7.3.250.0100.01016.55
7.3.240.0100.00716.52
7.3.230.0070.01116.71
7.3.210.0080.01116.24
7.3.200.0130.00719.39
7.3.190.0130.01116.50
7.3.180.0130.00316.35
7.3.170.0030.01316.39
7.3.160.0060.01016.46
7.3.120.0080.00814.87
7.3.110.0070.01014.73
7.3.100.0150.00014.87
7.3.90.0040.00414.89
7.3.80.0040.00414.78
7.3.70.0000.01114.80
7.3.60.0060.00914.98
7.3.50.0120.00314.65
7.3.40.0040.00414.88
7.3.30.0060.00614.89
7.3.20.0070.00716.66
7.3.10.0080.00416.88
7.3.00.0070.00716.86
7.2.330.0130.00716.62
7.2.320.0060.01616.37
7.2.310.0060.01316.48
7.2.300.0070.01316.62
7.2.290.0030.01316.63
7.2.250.0170.00014.96
7.2.240.0030.01314.98
7.2.230.0110.00415.08
7.2.220.0080.00314.91
7.2.210.0080.00815.03
7.2.200.0040.01114.79
7.2.190.0000.00914.92
7.2.180.0030.01015.04
7.2.170.0040.01114.86
7.2.00.0070.01019.18
7.1.330.0000.01215.75
7.1.320.0070.00715.74
7.1.310.0090.00616.19
7.1.300.0090.00616.08
7.1.290.0070.00315.87
7.1.280.0060.00315.88
7.1.270.0060.00315.66
7.1.260.0030.01115.94
7.1.100.0060.00618.53
7.1.70.0000.00817.09
7.1.60.0070.01719.46
7.1.50.0180.00434.90
7.1.00.0030.07722.34
7.0.200.0150.00614.64
7.0.140.0100.06721.98
7.0.60.0030.07019.85
7.0.50.0070.05017.86
7.0.40.0000.05020.21
7.0.30.0200.04720.01
7.0.20.0300.06720.14
7.0.10.0100.06020.03
7.0.00.0130.07020.18
5.6.280.0000.07721.11
5.6.210.0000.05720.74
5.6.200.0070.08318.08
5.6.190.0030.04720.77
5.6.180.0330.07320.39
5.6.170.0330.06020.71
5.6.160.0070.08720.49
5.6.150.0000.07018.14
5.6.140.0000.04318.25
5.6.130.0130.07318.09
5.6.120.0130.08020.96
5.6.110.0200.07021.10
5.6.100.0000.05320.97
5.6.90.0100.07320.96
5.6.80.0030.06720.36
5.5.350.4230.03720.31
5.5.340.0070.08318.04
5.5.330.0100.03720.06
5.5.320.0170.05020.32
5.5.310.0270.04320.33
5.5.300.0070.07718.01
5.5.290.0130.08017.97
5.5.280.0100.03720.89
5.5.270.0070.08320.86
5.5.260.0130.07720.96
5.5.250.0130.08020.76
5.5.240.0070.07720.18
5.4.450.1000.07319.24
5.4.440.0970.07019.61
5.4.430.0800.06019.46
5.4.420.0230.04019.46
5.4.410.0930.07318.97
5.4.400.0070.06019.18
5.4.390.0770.04718.99
5.4.380.0270.05318.56
5.4.370.0200.05718.48
5.4.360.0400.06318.71
5.4.350.0400.05018.77
5.4.340.0570.06018.69
5.4.320.0070.03512.45
5.4.310.0090.03412.45
5.4.300.0090.03312.45
5.4.290.0070.05212.44
5.4.280.0080.04912.34
5.4.270.0070.05012.34
5.4.260.0080.05212.34
5.4.250.0100.05112.34
5.4.240.0080.05012.34
5.4.230.0090.05112.33
5.4.220.0120.05812.33
5.4.210.0140.04612.33
5.4.200.0100.05212.33
5.4.190.0100.06712.32
5.4.180.0070.06012.33
5.4.170.0110.04912.34
5.4.160.0100.06012.33
5.4.150.0100.04912.33
5.4.140.0090.05612.02
5.4.130.0100.04512.00
5.4.120.0060.04911.96
5.4.110.0080.05011.95
5.4.100.0050.05211.95
5.4.90.0120.04811.95
5.4.80.0130.04711.95
5.4.70.0070.05111.95
5.4.60.0070.04911.95
5.4.50.0080.04811.95
5.4.40.0190.07411.94
5.4.30.0090.05711.94
5.4.20.0080.04711.94
5.4.10.0060.04711.94
5.4.00.0090.04911.43
5.3.290.0080.03512.80
5.3.280.0090.04812.70
5.3.270.0040.05612.72
5.3.260.0100.06112.71
5.3.250.0140.06412.72
5.3.240.0130.05512.72
5.3.230.0140.04912.71
5.3.220.0140.04912.68
5.3.210.0080.05312.68
5.3.200.0140.03512.68
5.3.190.0050.04212.68
5.3.180.0040.04512.67
5.3.170.0090.04412.67
5.3.160.0120.05112.67
5.3.150.0090.04312.68
5.3.140.0070.04212.66
5.3.130.0110.05212.66
5.3.120.0060.04512.66
5.3.110.0080.04312.65
5.3.100.0060.04212.12
5.3.90.0090.04012.08
5.3.80.0080.03912.07
5.3.70.0070.03912.08
5.3.60.0050.04212.07
5.3.50.0110.04712.00
5.3.40.0090.04812.00
5.3.30.0160.06311.95
5.3.20.0200.07911.73
5.3.10.0080.04111.70
5.3.00.0070.04211.69
5.2.170.0150.0889.19
5.2.160.0070.0419.19
5.2.150.0070.0429.19
5.2.140.0060.0449.19
5.2.130.0160.0609.14
5.2.120.0140.0669.15
5.2.110.0090.0359.16
5.2.100.0200.0679.14
5.2.90.0060.0309.14
5.2.80.0090.0469.14
5.2.70.0110.0529.14
5.2.60.0150.0399.10
5.2.50.0120.0419.07
5.2.40.0180.0629.05
5.2.30.0160.0789.02
5.2.20.0060.0469.01
5.2.10.0090.0398.91
5.2.00.0090.0458.77
5.1.60.0060.0548.06
5.1.50.0100.0938.06
5.1.40.0110.0448.04
5.1.30.0050.0368.39
5.1.20.0070.0438.41
5.1.10.0120.0628.14
5.1.00.0080.0368.14
5.0.50.0050.0306.61
5.0.40.0070.0296.47
5.0.30.0070.0686.28
5.0.20.0160.0646.25
5.0.10.0030.0456.23
5.0.00.0060.0526.22
4.4.90.0050.0384.78
4.4.80.0040.0234.75
4.4.70.0060.0264.75
4.4.60.0060.0274.76
4.4.50.0060.0214.77
4.4.40.0100.0434.71
4.4.30.0130.0334.76
4.4.20.0080.0434.84
4.4.10.0180.0454.85
4.4.00.0080.0474.76
4.3.110.0050.0394.66
4.3.100.0150.0354.66
4.3.90.0050.0374.63
4.3.80.0070.0324.58
4.3.70.0040.0284.63
4.3.60.0090.0424.63
4.3.50.0140.0394.63
4.3.40.0100.0694.54
4.3.30.0030.0153.28
4.3.20.0060.0183.26
4.3.10.0050.0223.22
4.3.00.0000.01310.55

preferences:
73.33 ms | 401 KiB | 5 Q