3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?<=\])(.*?)(?=\[\/)/m'; $str = '[test_tag with="attributes"]Content I [want] To capture[/test_tag]'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result echo $matches[0][0];

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.4.120.0080.01220.70
8.4.110.0140.00722.38
8.4.100.0130.00617.89
8.4.90.0090.01218.64
8.4.80.0140.00718.05
8.4.70.0130.00418.27
8.4.60.0090.01118.78
8.4.50.0110.00917.73
8.4.40.0120.00819.70
8.4.30.0160.00318.65
8.4.20.0160.00717.70
8.4.10.0030.00619.54
8.3.250.0130.00619.00
8.3.240.0120.00616.57
8.3.230.0110.00516.69
8.3.220.0110.00718.73
8.3.210.0030.00516.83
8.3.200.0110.00516.75
8.3.190.0090.01016.97
8.3.180.0060.00216.67
8.3.170.0060.01218.80
8.3.160.0130.01017.14
8.3.150.0170.00018.40
8.3.140.0160.00316.71
8.3.130.0040.00418.46
8.3.120.0090.00020.48
8.3.110.0090.00020.94
8.3.100.0040.00716.62
8.3.90.0050.00326.77
8.3.80.0100.00016.50
8.3.70.0140.00416.63
8.3.60.0140.00718.43
8.3.50.0130.00424.54
8.3.40.0120.00619.09
8.3.30.0090.00918.88
8.3.20.0000.00721.73
8.3.10.0050.00322.14
8.3.00.0070.00023.66
8.2.290.0070.00320.34
8.2.280.0090.01118.56
8.2.270.0110.00722.25
8.2.260.0130.00618.76
8.2.250.0100.01018.55
8.2.240.0040.00419.20
8.2.230.0000.00822.58
8.2.220.0150.00437.54
8.2.210.0070.01126.77
8.2.200.0160.00318.79
8.2.190.0090.00616.85
8.2.180.0070.01116.74
8.2.170.0070.00722.96
8.2.160.0060.00922.15
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0100.01020.47
8.2.100.0030.00919.64
8.2.90.0000.00819.40
8.2.80.0000.00817.97
8.2.70.0050.00518.05
8.2.60.0000.00818.28
8.2.50.0000.00819.43
8.2.40.0040.00421.31
8.2.30.0030.00619.31
8.2.20.0080.00018.19
8.2.10.0050.00319.11
8.2.00.0040.00419.12
8.1.330.0130.00521.86
8.1.320.0070.01216.45
8.1.310.0040.00418.63
8.1.300.0000.00819.93
8.1.290.0000.00930.84
8.1.280.0150.00325.92
8.1.270.0080.00020.65
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.01623.88
8.1.230.0040.00720.88
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.25
8.1.190.0000.00817.22
8.1.180.0040.00419.02
8.1.170.0040.00418.70
8.1.160.0040.00419.05
8.1.150.0000.00718.71
8.1.140.0080.00018.76
8.1.130.0030.00721.79
8.1.120.0080.00017.56
8.1.110.0000.00717.49
8.1.100.0050.00717.52
8.1.90.0070.00517.47
8.1.80.0080.00417.46
8.1.70.0110.00317.48
8.1.60.0120.00417.58
8.1.50.0100.00517.50
8.1.40.0100.00717.59
8.1.30.0110.00517.70
8.1.20.0080.00517.67
8.1.10.0110.00417.68
8.1.00.0110.00417.64
8.0.300.0060.00318.77
8.0.290.0000.00816.75
8.0.280.0000.00718.33
8.0.270.0050.00217.00
8.0.260.0000.00618.47
8.0.250.0070.00017.13
8.0.240.0070.00017.14
8.0.230.0040.00716.95
8.0.220.0110.00116.89
8.0.210.0050.00616.96
8.0.200.0090.00416.97
8.0.190.0070.00616.96
8.0.180.0070.00716.96
8.0.170.0090.00416.92
8.0.160.0080.00616.92
8.0.150.0090.00516.83
8.0.140.0070.00416.91
8.0.130.0090.00416.22
8.0.120.0080.00616.93
8.0.110.0090.00416.90
8.0.100.0080.00716.92
8.0.90.0110.00316.96
8.0.80.0080.00816.93
8.0.70.0080.00516.84
8.0.60.0080.00416.90
8.0.50.0080.00416.88
8.0.30.0110.00517.01
8.0.20.0130.00417.04
8.0.10.0100.00416.98
8.0.00.0060.00517.01
7.4.330.0000.00415.55
7.4.320.0070.00016.79
7.4.300.0100.00516.59
7.4.290.0100.00416.61
7.4.280.0090.00616.68
7.4.270.0090.00616.58
7.4.260.0100.00516.01
7.4.250.0080.00616.66
7.4.240.0090.00416.63
7.4.230.0110.00416.70
7.4.220.0080.00516.56
7.4.210.0090.00616.63
7.4.200.0120.00216.59
7.4.190.0120.00316.59
7.4.180.0100.00516.62
7.4.160.0100.00516.68
7.4.150.0110.00516.51
7.4.140.0100.00516.57
7.4.130.0100.00716.61
7.4.120.0110.00516.55
7.4.110.0120.00516.55
7.4.100.0090.00616.57
7.4.90.0100.00616.57
7.4.80.0090.00717.09
7.4.70.0100.00316.59
7.4.60.0070.00616.52
7.4.50.0090.00516.55
7.4.40.0070.00716.44
7.4.30.0070.00716.47
7.4.20.0060.00816.57
7.4.10.0080.00516.50
7.4.00.0080.00516.47
7.3.330.0110.00416.29
7.3.320.0100.00415.69
7.3.310.0110.00416.31
7.3.300.0120.00316.31
7.3.290.0090.00516.39
7.3.280.0130.00316.36
7.3.270.0100.00516.35
7.3.260.0110.00616.44
7.3.250.0100.00616.45
7.3.240.0100.00616.43
7.3.230.0150.00716.38
7.3.220.0120.00416.31
7.3.210.0100.00616.34
7.3.200.0120.00516.25
7.3.190.0090.00816.32
7.3.180.0090.00716.29
7.3.170.0120.00516.29
7.3.160.0110.00516.36
7.3.150.0100.00716.28
7.3.140.0110.00516.29
7.3.130.0090.00616.33
7.3.120.0130.00416.34
7.3.110.0090.00716.31
7.3.100.0120.00416.30
7.3.90.0100.00616.51
7.3.80.0110.00616.36
7.3.70.0100.00616.40
7.3.60.0080.00816.42
7.3.50.0090.00716.53
7.3.40.0090.00716.46
7.3.30.0100.00616.51
7.3.20.0090.00717.67
7.3.10.0110.00617.59
7.3.00.0120.00517.57
7.2.340.0070.00916.58
7.2.330.0120.00416.52
7.2.320.0110.00516.57
7.2.310.0140.00416.56
7.2.300.0100.00516.57
7.2.290.0110.00616.55
7.2.280.0110.00616.54
7.2.270.0090.00716.50
7.2.260.0100.00616.54
7.2.250.0120.00516.54
7.2.240.0100.00716.57
7.2.230.0120.00416.51
7.2.220.0100.00616.55
7.2.210.0070.00816.56
7.2.200.0120.00516.59
7.2.190.0080.00816.59
7.2.180.0090.00716.56
7.2.170.0100.01016.67
7.2.160.0110.00516.67
7.2.150.0120.00717.89
7.2.140.0110.00517.99
7.2.130.0090.00717.97
7.2.120.0100.00617.95
7.2.110.0100.00617.88
7.2.100.0130.00417.91
7.2.90.0110.00617.86
7.2.80.0090.01017.85
7.2.70.0150.00717.86
7.2.60.0090.00817.84
7.2.50.0090.00817.86
7.2.40.0100.00717.91
7.2.30.0110.00717.94
7.2.20.0120.00517.97
7.2.10.0140.00317.88
7.2.00.0090.00817.84

preferences:
30.12 ms | 403 KiB | 5 Q