3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\|{\K\d+(?=})/m'; $str = '{1|{1078} {*|{1079}-}test{1|{4829}, test2 {4457}}} {*|{1078} {*|{1079}-}test3{1|{4829}, test4 {23232}}} '; preg_match_all($re, $str, $matches); rsort($matches[0]); echo implode(',', array_unique($matches[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.5.00.0230.00820.09
8.4.150.0030.00014.05
8.4.140.0130.01017.76
8.4.130.0130.00718.04
8.4.120.0090.01120.68
8.4.110.0050.00822.54
8.4.100.0140.00717.99
8.4.90.0110.01118.86
8.4.80.0130.00918.14
8.4.70.0090.00918.04
8.4.60.0120.01018.86
8.4.50.0100.00620.02
8.4.40.0140.00720.05
8.4.30.0120.00622.42
8.4.20.0160.00320.48
8.4.10.0030.00619.79
8.3.280.0100.00918.55
8.3.270.0130.00616.80
8.3.260.0150.00516.81
8.3.250.0120.00718.64
8.3.240.0080.01017.26
8.3.230.0100.00616.86
8.3.220.0120.00717.01
8.3.210.0080.00516.71
8.3.200.0060.00316.52
8.3.190.0080.01116.99
8.3.180.0130.00716.96
8.3.170.0040.01419.04
8.3.160.0130.00318.33
8.3.150.0100.00620.71
8.3.140.0090.00918.79
8.3.130.0040.00418.71
8.3.120.0070.01018.73
8.3.110.0000.00816.88
8.3.100.0130.00716.57
8.3.90.0070.00016.66
8.3.80.0060.00318.36
8.3.70.0140.00018.56
8.3.60.0150.00318.68
8.3.50.0080.01118.38
8.3.40.0070.01518.92
8.3.30.0160.00019.15
8.3.20.0000.00821.90
8.3.10.0040.00421.91
8.3.00.0090.00023.61
8.2.290.0100.00920.38
8.2.280.0090.01118.52
8.2.270.0090.00918.73
8.2.260.0110.00718.77
8.2.250.0120.00417.25
8.2.240.0050.00516.89
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0040.00426.77
8.2.200.0050.00518.91
8.2.190.0070.01416.88
8.2.180.0100.00616.75
8.2.170.0140.00319.03
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0030.00619.73
8.2.110.0120.00020.38
8.2.100.0060.00617.97
8.2.90.0060.00318.00
8.2.80.0000.00819.04
8.2.70.0080.00017.88
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0030.00518.35
8.2.30.0040.00419.81
8.2.20.0000.00718.09
8.2.10.0000.00719.11
8.2.00.0040.00419.11
8.1.330.0140.00522.09
8.1.320.0140.00516.57
8.1.310.0060.00318.66
8.1.300.0050.00519.68
8.1.290.0060.00318.88
8.1.280.0150.00625.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00020.60
8.1.230.0000.01217.70
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0040.00417.22
8.1.190.0060.00319.01
8.1.180.0030.00518.10
8.1.170.0030.00618.66
8.1.160.0000.00718.76
8.1.150.0040.00418.85
8.1.140.0000.00718.80
8.1.130.0000.00717.61
8.1.120.0080.00317.59
8.1.110.0030.00517.52
8.1.100.0050.00317.54
8.1.90.0080.00017.58
8.1.80.0000.00817.55
8.1.70.0000.01017.43
8.1.60.0030.00517.63
8.1.50.0060.00317.61
8.1.40.0000.00917.63
8.1.30.0000.00917.66
8.1.20.0000.00917.73
8.1.10.0050.00317.73
8.1.00.0080.00017.52
8.0.300.0000.00818.77
8.0.290.0020.00516.88
8.0.280.0030.00318.57
8.0.270.0040.00417.34
8.0.260.0040.00417.02
8.0.250.0000.00717.17
8.0.240.0030.00517.22
8.0.230.0030.00317.06
8.0.220.0000.00716.93
8.0.210.0040.00417.01
8.0.200.0000.00817.03
8.0.190.0040.00417.05
8.0.180.0030.00516.99
8.0.170.0040.00416.92
8.0.160.0040.00417.05
8.0.150.0050.00216.92
8.0.140.0040.00417.00
8.0.130.0000.00613.37
8.0.120.0040.00416.90
8.0.110.0050.00316.92
8.0.100.0000.00716.89
8.0.90.0000.00716.77
8.0.80.0090.00616.96
8.0.70.0040.00416.97
8.0.60.0040.00416.89
8.0.50.0070.00017.02
8.0.30.0100.00917.16
8.0.20.0160.00617.54
8.0.10.0040.00416.89
8.0.00.0140.00617.02
7.4.330.0030.00315.55
7.4.320.0000.00716.67
7.4.300.0080.00016.64
7.4.290.0030.00616.79
7.4.280.0040.00416.65
7.4.270.0070.00016.51
7.4.260.0030.00316.59
7.4.250.0030.00516.63
7.4.240.0040.00416.70
7.4.230.0000.00716.76
7.4.220.0080.00016.59
7.4.210.0110.00616.81
7.4.200.0000.00716.85
7.4.160.0110.00816.76
7.4.130.0120.00616.77
7.4.120.0100.01416.64
7.4.110.0060.01016.54
7.4.100.0100.00716.73
7.4.90.0040.01416.75
7.4.80.0140.01419.39
7.4.70.0110.00616.43
7.4.60.0090.01316.47
7.4.50.0100.00616.70
7.4.40.0070.01116.68
7.4.00.0050.01215.26
7.3.330.0030.00313.18
7.3.320.0000.00613.18
7.3.310.0040.00416.32
7.3.300.0000.00716.39
7.3.290.0060.01016.44
7.3.280.0170.00316.49
7.3.260.0160.00716.62
7.3.230.0200.00316.50
7.3.210.0060.00916.60
7.3.200.0150.01216.43
7.3.190.0100.00716.43
7.3.180.0060.01616.37
7.3.170.0060.01016.23
7.3.160.0060.00916.68
7.3.120.0080.00915.12
7.3.110.0080.01015.05
7.3.100.0080.01014.90
7.3.90.0090.00615.01
7.3.80.0050.00914.98
7.3.70.0080.00514.92
7.3.60.0060.00615.03
7.3.50.0080.00914.94
7.3.40.0080.00714.87
7.3.30.0080.00414.95
7.3.20.0280.00916.26
7.3.10.0110.00516.21
7.3.00.0080.00616.17
7.2.330.0070.01016.79
7.2.320.0070.01016.67
7.2.310.0100.00616.85
7.2.300.0170.00016.80
7.2.290.0070.00816.61
7.2.250.0080.01015.08
7.2.240.0050.01415.10
7.2.230.0040.01315.18
7.2.220.0070.00915.05
7.2.210.0050.01015.18
7.2.200.0100.00415.15
7.2.190.0040.01015.13
7.2.180.0090.00715.10
7.2.170.0050.01115.12
7.2.160.0030.01015.18
7.2.150.0160.00015.08
7.2.140.0110.00615.32
7.2.130.0130.00515.25
7.2.120.0030.01315.28
7.2.110.0070.00715.38
7.2.100.0130.00315.33
7.2.90.0070.00715.02
7.2.80.0030.01515.25
7.2.70.0120.00615.11
7.2.60.0090.00915.12
7.2.50.0090.00615.33
7.2.40.0070.01015.41
7.2.30.0060.00915.16
7.2.20.0070.00715.23
7.2.10.0030.01015.29
7.2.00.0110.00315.34
7.1.330.0110.00516.02
7.1.320.0050.00815.95
7.1.310.0050.00915.91
7.1.300.0060.00715.29
7.1.290.0070.00615.37
7.1.280.0060.00615.19
7.1.270.0060.00715.28
7.1.260.0080.01015.42
7.1.250.0100.00714.26

preferences:
36.44 ms | 403 KiB | 5 Q