3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "text text text text [helloo] text (hello2) (hello3) text"; $pattern = '/(?<=\[)(.+)(?=\])/is'; 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.60.0120.00316.63
8.3.50.0070.01222.15
8.3.40.0060.00918.80
8.3.30.0120.00318.96
8.3.20.0000.00820.39
8.3.10.0000.00821.85
8.3.00.0000.00819.38
8.2.180.0060.00918.49
8.2.170.0150.00022.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00822.38
8.2.110.0060.00322.37
8.2.100.0030.00718.03
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0000.00917.75
8.2.60.0040.00419.78
8.2.50.0080.00018.07
8.2.40.0000.00819.95
8.2.30.0000.00719.72
8.2.20.0030.00517.78
8.2.10.0030.00518.00
8.2.00.0060.00317.64
8.1.280.0170.00325.92
8.1.270.0040.00423.96
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0030.00623.83
8.1.230.0080.00319.17
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.36
8.1.190.0000.00917.35
8.1.180.0030.00618.10
8.1.170.0060.00318.62
8.1.160.0070.00021.84
8.1.150.0030.00718.76
8.1.140.0040.00417.48
8.1.130.0030.00317.72
8.1.120.0000.00717.57
8.1.110.0040.00417.57
8.1.100.0000.00817.56
8.1.90.0000.00717.49
8.1.80.0040.00417.59
8.1.70.0030.00317.48
8.1.60.0050.00317.69
8.1.50.0040.00417.49
8.1.40.0030.00517.49
8.1.30.0040.00417.64
8.1.20.0000.00917.71
8.1.10.0000.00717.54
8.1.00.0020.00517.63
8.0.300.0040.00420.80
8.0.290.0000.00717.05
8.0.280.0030.00518.41
8.0.270.0070.00017.21
8.0.260.0070.00017.20
8.0.250.0000.00716.95
8.0.240.0000.00717.00
8.0.230.0040.00417.05
8.0.220.0000.00716.85
8.0.210.0030.00516.87
8.0.200.0070.00017.02
8.0.190.0000.00716.98
8.0.180.0000.00716.90
8.0.170.0060.00317.01
8.0.160.0070.00016.88
8.0.150.0000.00716.93
8.0.140.0000.00716.81
8.0.130.0030.00313.43
8.0.120.0000.00716.81
8.0.110.0040.00416.88
8.0.100.0000.00716.86
8.0.90.0000.00716.80
8.0.80.0090.00616.85
8.0.70.0030.00316.94
8.0.60.0040.00416.97
8.0.50.0040.00417.00
8.0.30.0140.00517.03
8.0.20.0100.01017.40
8.0.10.0050.00316.91
8.0.00.0110.00916.87
7.4.330.0050.00015.00
7.4.320.0030.00316.74
7.4.300.0040.00416.64
7.4.290.0040.00416.69
7.4.280.0070.00316.58
7.4.270.0050.00216.55
7.4.260.0030.00316.52
7.4.250.0080.00016.59
7.4.240.0000.00716.71
7.4.230.0000.00716.68
7.4.220.0090.00916.51
7.4.210.0060.01216.73
7.4.200.0030.00316.73
7.4.190.0030.00316.70
7.4.160.0080.01616.67
7.4.150.0060.01117.40
7.4.140.0120.00917.86
7.4.130.0100.00816.63
7.4.120.0100.00816.59
7.4.110.0140.00716.71
7.4.100.0090.00916.71
7.4.90.0170.00016.51
7.4.80.0100.01319.39
7.4.70.0080.00816.78
7.4.60.0100.00616.64
7.4.50.0030.00516.64
7.4.40.0170.00016.60
7.4.30.0070.01016.68
7.4.00.0060.00915.35
7.3.330.0060.00013.18
7.3.320.0060.00013.12
7.3.310.0070.00016.15
7.3.300.0000.00716.15
7.3.290.0090.00516.34
7.3.280.0130.00716.27
7.3.270.0070.01117.40
7.3.260.0120.00616.56
7.3.250.0100.00816.34
7.3.240.0110.00516.70
7.3.230.0070.01416.51
7.3.210.0120.00916.32
7.3.200.0140.00919.39
7.3.190.0120.00616.51
7.3.180.0100.00616.21
7.3.170.0140.00616.32
7.3.160.0090.00616.40
7.3.120.0090.00614.86
7.2.330.0180.00016.41
7.2.320.0070.01016.57
7.2.310.0140.00716.61
7.2.300.0130.00316.57
7.2.290.0080.01216.49
7.2.60.0080.00617.00
7.2.00.0060.00619.24
7.1.200.0100.00315.87
7.1.100.0030.00918.48
7.1.70.0050.00217.27
7.1.60.0140.01119.46
7.1.50.0130.00635.00
7.1.00.0070.07322.38
7.0.200.0190.01014.59
7.0.140.0030.07321.99
7.0.60.0170.07020.02
7.0.50.0030.07317.88
7.0.40.0030.06020.13
7.0.30.0400.06320.19
7.0.20.0230.04320.14
7.0.10.0200.04320.11
7.0.00.0070.08320.25
5.6.280.0030.07321.12
5.6.210.0000.08720.64
5.6.200.0070.08718.18
5.6.190.0070.08720.45
5.6.180.0300.07020.63
5.6.170.0300.07720.54
5.6.160.0030.07320.52
5.6.150.0030.08718.25
5.6.140.0030.04318.21
5.6.130.0070.08318.25
5.6.120.0000.09320.98
5.6.110.0100.05021.08
5.6.100.0100.07321.10
5.6.90.0170.07721.00
5.6.80.0130.07320.41
5.6.70.4470.04720.39
5.5.350.0100.04320.39
5.5.340.0130.05317.98
5.5.330.0070.08720.32
5.5.320.3370.03320.23
5.5.310.0170.07020.30
5.5.300.0030.05717.98
5.5.290.0100.04317.97
5.5.280.0100.05020.75
5.5.270.0030.04320.96
5.5.260.0100.08320.86
5.5.250.0200.07020.46
5.5.240.0170.03720.15
5.4.450.0430.06019.48
5.4.440.0830.05319.43
5.4.430.0100.05319.62
5.4.420.0170.05019.38
5.4.410.0030.06019.43
5.4.400.0000.06019.08
5.4.390.0070.05719.02
5.4.380.0430.04718.71
5.4.370.0300.04718.61
5.4.360.0230.05718.63
5.4.350.0170.06318.59
5.4.340.0400.04318.50
5.4.320.0080.04012.48
5.4.310.0070.03512.48
5.4.300.0050.03712.48
5.4.290.0130.03712.47
5.4.280.0060.04212.37
5.4.270.0030.04412.37
5.4.260.0070.04112.37
5.4.250.0080.06012.37
5.4.240.0060.05312.37
5.4.230.0090.07212.36
5.4.220.0130.07512.36
5.4.210.0100.03512.36
5.4.200.0060.04212.36
5.4.190.0080.04412.36
5.4.180.0070.04312.36
5.4.170.0110.07712.37
5.4.160.0140.06712.37
5.4.150.0090.05212.36
5.4.140.0090.05712.05
5.4.130.0100.06812.04
5.4.120.0020.05711.99
5.4.110.0160.07111.99
5.4.100.0070.05611.99
5.4.90.0100.05511.99
5.4.80.0090.05511.98
5.4.70.0270.10111.97
5.4.60.0240.06711.97
5.4.50.0240.08311.97
5.4.40.0060.05411.96
5.4.30.0190.06911.96
5.4.20.0190.08211.96
5.4.10.0110.05811.96
5.4.00.0130.04511.45
5.3.290.0080.03912.80
5.3.280.0230.03812.71
5.3.270.0070.05712.73
5.3.260.0140.05212.72
5.3.250.0130.05012.72
5.3.240.0090.05312.71
5.3.230.0120.04912.71
5.3.220.0070.05612.68
5.3.210.0080.05712.68
5.3.200.0070.05712.68
5.3.190.0100.05112.67
5.3.180.0090.05012.67
5.3.170.0130.04812.66
5.3.160.0110.04712.67
5.3.150.0120.04912.67
5.3.140.0070.05112.66
5.3.130.0110.05112.66
5.3.120.0100.04812.66
5.3.110.0090.04412.66
5.3.100.0120.04912.12
5.3.90.0140.10912.09
5.3.80.0350.11012.08
5.3.70.0170.08412.07
5.3.60.0080.05712.06
5.3.50.0150.08812.01
5.3.40.0130.05012.00
5.3.30.0140.05211.96
5.3.20.0090.05411.75
5.3.10.0080.05211.72
5.3.00.0070.05211.70
5.2.170.0090.0389.21
5.2.160.0090.0399.21
5.2.150.0040.0369.21
5.2.140.0100.0389.20
5.2.130.0090.0479.16
5.2.120.0070.0399.16
5.2.110.0070.0399.17
5.2.100.0070.0369.17
5.2.90.0070.0349.16
5.2.80.0040.0379.16
5.2.70.0020.0359.16
5.2.60.0100.0339.11
5.2.50.0110.0379.08
5.2.40.0170.0679.06
5.2.30.0060.0449.05
5.2.20.0070.0439.03
5.2.10.0090.0388.93
5.2.00.0060.0418.79
5.1.60.0080.0348.06
5.1.50.0090.0348.05
5.1.40.0060.0378.04
5.1.30.0080.0378.39
5.1.20.0040.0438.41
5.1.10.0070.0388.13
5.1.00.0070.0398.14
5.0.50.0050.0296.61
5.0.40.0060.0266.47
5.0.30.0070.0396.29
5.0.20.0060.0276.26
5.0.10.0070.0276.23
5.0.00.0050.0406.22
4.4.90.0030.0224.78
4.4.80.0060.0204.75
4.4.70.0070.0194.76
4.4.60.0030.0244.75
4.4.50.0040.0244.77
4.4.40.0060.0344.70
4.4.30.0040.0154.76
4.4.20.0050.0154.84
4.4.10.0050.0224.85
4.4.00.0050.0304.76
4.3.110.0040.0214.67
4.3.100.0050.0204.66
4.3.90.0030.0234.63
4.3.80.0030.0254.58
4.3.70.0060.0124.63
4.3.60.0060.0134.63
4.3.50.0050.0154.63
4.3.40.0050.0244.54
4.3.30.0010.0203.28
4.3.20.0030.0203.26
4.3.10.0050.0183.22
4.3.00.0130.0208.23

preferences:
35.33 ms | 401 KiB | 5 Q