3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "text text text text [hello] 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.0040.01116.50
8.3.50.0120.00322.12
8.3.40.0140.00018.73
8.3.30.0140.00018.96
8.3.20.0070.00020.46
8.3.10.0000.00821.86
8.3.00.0050.00319.38
8.2.180.0000.01518.13
8.2.170.0110.00422.96
8.2.160.0070.01020.35
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.06
8.2.110.0060.00322.34
8.2.100.0080.00417.84
8.2.90.0040.00418.86
8.2.80.0060.00317.97
8.2.70.0050.00317.75
8.2.60.0000.00817.91
8.2.50.0000.00818.07
8.2.40.0000.00819.97
8.2.30.0080.00017.91
8.2.20.0080.00017.84
8.2.10.0040.00418.13
8.2.00.0070.00317.81
8.1.280.0040.01125.92
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0040.00718.82
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0050.00317.38
8.1.180.0040.00419.13
8.1.170.0040.00418.63
8.1.160.0040.00421.97
8.1.150.0060.00318.68
8.1.140.0020.00517.59
8.1.130.0030.00317.75
8.1.120.0040.00417.43
8.1.110.0000.00717.57
8.1.100.0040.00417.43
8.1.90.0040.00417.48
8.1.80.0080.00017.53
8.1.70.0000.00817.42
8.1.60.0030.00617.49
8.1.50.0050.00317.59
8.1.40.0000.00817.66
8.1.30.0000.00817.70
8.1.20.0080.00017.71
8.1.10.0050.00217.62
8.1.00.0030.00617.48
8.0.300.0000.00820.78
8.0.290.0040.00416.93
8.0.280.0080.00018.27
8.0.270.0030.00317.25
8.0.260.0040.00417.12
8.0.250.0000.00817.00
8.0.240.0030.00316.94
8.0.230.0030.00316.89
8.0.220.0030.00316.97
8.0.210.0000.00716.97
8.0.200.0000.00717.06
8.0.190.0030.00616.92
8.0.180.0040.00417.02
8.0.170.0030.00616.98
8.0.160.0040.00416.95
8.0.150.0000.00816.99
8.0.140.0070.00016.98
8.0.130.0000.00613.39
8.0.120.0050.00316.91
8.0.110.0040.00417.01
8.0.100.0030.00516.87
8.0.90.0040.00416.84
8.0.80.0130.00317.00
8.0.70.0040.00416.82
8.0.60.0020.00516.93
8.0.50.0070.00016.83
8.0.30.0090.01017.00
8.0.20.0070.01317.40
8.0.10.0040.00417.16
8.0.00.0090.01216.86
7.4.330.0000.00515.00
7.4.320.0030.00316.64
7.4.300.0000.00816.73
7.4.290.0000.00616.55
7.4.280.0060.00516.62
7.4.270.0000.00716.54
7.4.260.0040.00416.64
7.4.250.0000.00816.56
7.4.240.0040.00416.72
7.4.230.0000.00716.65
7.4.220.0120.00816.67
7.4.210.0030.01316.78
7.4.200.0000.00716.77
7.4.190.0070.00016.61
7.4.160.0090.01316.41
7.4.150.0060.01317.40
7.4.140.0110.00617.86
7.4.130.0120.00516.62
7.4.120.0110.00616.82
7.4.110.0100.00616.51
7.4.100.0190.00316.62
7.4.90.0150.00316.72
7.4.80.0040.01519.39
7.4.70.0090.00616.58
7.4.60.0140.00316.48
7.4.50.0040.00416.55
7.4.40.0120.00616.40
7.4.30.0120.00316.54
7.4.00.0000.01514.78
7.3.330.0000.00613.04
7.3.320.0000.00613.19
7.3.310.0000.00716.15
7.3.300.0060.00016.18
7.3.290.0090.00616.23
7.3.280.0100.01116.31
7.3.270.0100.01017.40
7.3.260.0100.01316.28
7.3.250.0090.01116.35
7.3.240.0120.00616.47
7.3.230.0130.00616.68
7.3.210.0090.00916.63
7.3.200.0120.00919.39
7.3.190.0110.01116.33
7.3.180.0030.01216.54
7.3.170.0030.01316.66
7.3.160.0060.00916.48
7.3.120.0150.00314.82
7.3.10.0080.00816.57
7.3.00.0070.00716.43
7.2.330.0120.00616.64
7.2.320.0110.00816.66
7.2.310.0120.00616.43
7.2.300.0030.01416.42
7.2.290.0100.01016.73
7.2.130.0120.00616.53
7.2.120.0080.00816.57
7.2.110.0050.00916.71
7.2.100.0070.01016.71
7.2.90.0110.00316.59
7.2.80.0090.00916.47
7.2.70.0140.00516.52
7.2.60.0120.00616.60
7.2.50.0040.01116.61
7.2.40.0040.01916.66
7.2.30.0180.00516.87
7.2.20.0150.01116.65
7.2.10.0100.01016.68
7.2.00.0090.00718.13
7.1.250.0030.01415.68
7.1.100.0110.00018.48
7.1.70.0060.00317.22
7.1.60.0070.01719.46
7.1.50.0200.01334.86
7.1.00.0070.07322.52
7.0.200.0230.01014.75
7.0.140.0000.07022.08
7.0.60.0030.05019.96
7.0.50.0130.07717.82
7.0.40.0100.03720.21
7.0.30.0200.09020.35
7.0.20.0230.07320.07
7.0.10.0170.07320.11
7.0.00.0000.06720.24
5.6.280.0170.08020.77
5.6.210.0030.05020.72
5.6.200.0070.08718.18
5.6.190.0130.08020.77
5.6.180.0230.06320.63
5.6.170.0270.08320.50
5.6.160.0100.08020.41
5.6.150.0100.03318.24
5.6.140.0100.06718.21
5.6.130.0100.08018.21
5.6.120.0030.05021.05
5.6.110.0100.08021.00
5.6.100.0100.04020.88
5.6.90.0100.05020.96
5.6.80.0070.08020.52
5.5.350.4200.04020.41
5.5.340.0100.08017.97
5.5.330.0100.03320.13
5.5.320.0170.05020.41
5.5.310.0170.08320.29
5.5.300.0100.07318.07
5.5.290.0130.07717.98
5.5.280.0030.04320.64
5.5.270.0070.05720.94
5.5.260.0030.07720.88
5.5.250.0130.06020.58
5.5.240.0070.06720.14
5.4.450.1100.06319.47
5.4.440.0930.05319.48
5.4.430.0900.06319.20
5.4.420.0870.06719.56
5.4.410.0800.05719.47
5.4.400.0230.06719.24
5.4.390.0800.05019.15
5.4.380.0400.05318.55
5.4.370.0230.05318.50
5.4.360.0400.05018.61
5.4.350.0330.05318.46
5.4.340.0170.06018.53
5.4.320.0120.04512.48
5.4.310.0050.04412.47
5.4.300.0090.03812.48
5.4.290.0100.06612.47
5.4.280.0090.04712.37
5.4.270.0080.04912.37
5.4.260.0040.05012.37
5.4.250.0100.04912.37
5.4.240.0110.07112.37
5.4.230.0140.07012.36
5.4.220.0090.04012.36
5.4.210.0070.04712.36
5.4.200.0060.05012.36
5.4.190.0080.05812.36
5.4.180.0120.05412.36
5.4.170.0100.04612.37
5.4.160.0060.03912.36
5.4.150.0190.07012.36
5.4.140.0080.04812.04
5.4.130.0100.04712.04
5.4.120.0060.04111.99
5.4.110.0110.04011.99
5.4.100.0050.04311.98
5.4.90.0080.06911.98
5.4.80.0070.05111.98
5.4.70.0100.04611.97
5.4.60.0090.04511.97
5.4.50.0070.04911.97
5.4.40.0090.03511.96
5.4.30.0090.03411.95
5.4.20.0060.03611.96
5.4.10.0040.04011.96
5.4.00.0090.03511.45
5.3.290.0060.04012.80
5.3.280.0050.04012.71
5.3.270.0080.04012.73
5.3.260.0060.04112.72
5.3.250.0110.03512.72
5.3.240.0070.04512.72
5.3.230.0070.04612.71
5.3.220.0070.04112.68
5.3.210.0130.05812.68
5.3.200.0110.06112.68
5.3.190.0150.07212.68
5.3.180.0090.03912.67
5.3.170.0070.04612.67
5.3.160.0110.04812.68
5.3.150.0110.05212.67
5.3.140.0120.05012.66
5.3.130.0070.05312.66
5.3.120.0080.04312.66
5.3.110.0110.05012.65
5.3.100.0100.05012.12
5.3.90.0090.05112.09
5.3.80.0150.10912.07
5.3.70.0100.04812.07
5.3.60.0100.05112.06
5.3.50.0090.05112.01
5.3.40.0130.04712.01
5.3.30.0110.04911.97
5.3.20.0130.04511.75
5.3.10.0090.05011.71
5.3.00.0090.05111.70
5.2.170.0030.0429.20
5.2.160.0060.0319.21
5.2.150.0120.0319.21
5.2.140.0100.0369.20
5.2.130.0090.0289.16
5.2.120.0060.0329.16
5.2.110.0080.0329.17
5.2.100.0110.0459.17
5.2.90.0070.0359.17
5.2.80.0060.0389.16
5.2.70.0070.0409.16
5.2.60.0090.0389.11
5.2.50.0100.0469.08
5.2.40.0070.0369.06
5.2.30.0070.0429.04
5.2.20.0060.0419.03
5.2.10.0100.0438.93
5.2.00.0040.0328.79
5.1.60.0040.0278.06
5.1.50.0060.0258.05
5.1.40.0100.0268.04
5.1.30.0080.0348.39
5.1.20.0030.0338.41
5.1.10.0040.0298.13
5.1.00.0060.0348.14
5.0.50.0050.0296.62
5.0.40.0020.0226.47
5.0.30.0050.0406.29
5.0.20.0040.0216.25
5.0.10.0050.0196.23
5.0.00.0020.0336.23
4.4.90.0030.0164.78
4.4.80.0020.0184.75
4.4.70.0030.0174.76
4.4.60.0040.0164.75
4.4.50.0040.0164.77
4.4.40.0020.0284.71
4.4.30.0020.0184.76
4.4.20.0040.0174.84
4.4.10.0060.0154.85
4.4.00.0040.0294.76
4.3.110.0040.0234.67
4.3.100.0070.0174.66
4.3.90.0040.0214.63
4.3.80.0040.0324.58
4.3.70.0090.0194.63
4.3.60.0050.0204.63
4.3.50.0060.0204.63
4.3.40.0060.0304.54
4.3.30.0010.0223.29
4.3.20.0020.0213.25
4.3.10.0030.0213.22
4.3.00.0170.03310.55

preferences:
39.85 ms | 401 KiB | 5 Q