3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?<=<@!).+?(?=>)/m'; $str = "Hey <@!123456789> thanks for that, I'll get back to you sooon."; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // flatten the array result (otherwise it's an array of arrays) $matches = array_merge(...$matches); // Print the entire match result print_r($matches); //Array ( [0] => 123456789 )

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.30.0060.00921.10
8.5.20.0070.01019.62
8.5.10.0070.01116.60
8.5.00.0130.00820.06
8.4.180.0140.00819.76
8.4.170.0110.01020.34
8.4.160.0100.01222.05
8.4.150.0080.00416.85
8.4.140.0120.01017.67
8.4.130.0080.00118.00
8.4.120.0120.00824.14
8.4.110.0090.00823.57
8.4.100.0040.00618.71
8.4.90.0110.00918.75
8.4.80.0070.00218.75
8.4.70.0100.00518.21
8.4.60.0160.00518.76
8.4.50.0100.01018.72
8.4.40.0070.01319.69
8.4.30.0090.00018.72
8.4.20.0070.01120.55
8.4.10.0060.00319.53
8.3.300.0110.00920.96
8.3.290.0110.01220.57
8.3.280.0110.00818.43
8.3.270.0110.00816.89
8.3.260.0110.00717.20
8.3.250.0110.00718.86
8.3.240.0090.00916.89
8.3.230.0110.00916.61
8.3.220.0050.00218.76
8.3.210.0100.00916.78
8.3.200.0060.00216.66
8.3.190.0100.00917.11
8.3.180.0040.00417.20
8.3.170.0110.00720.55
8.3.160.0090.00917.19
8.3.150.0120.00817.05
8.3.140.0150.00016.42
8.3.130.0100.00016.69
8.3.120.0040.00420.50
8.3.110.0000.00816.67
8.3.100.0080.00024.06
8.3.90.0000.00826.77
8.3.80.0030.00617.97
8.3.70.0060.00918.43
8.3.60.0150.00718.55
8.3.50.0230.00416.62
8.3.40.0110.00718.66
8.3.30.0120.00918.71
8.3.20.0070.00020.60
8.3.10.0040.00419.06
8.3.00.0000.00821.95
8.2.300.0140.00622.00
8.2.290.0090.00920.50
8.2.280.0100.01018.46
8.2.270.0120.00617.42
8.2.260.0000.01816.60
8.2.250.0120.00418.23
8.2.240.0130.00616.90
8.2.230.0070.00320.94
8.2.220.0060.01037.54
8.2.210.0040.00426.77
8.2.200.0060.00318.54
8.2.190.0040.01116.88
8.2.180.0070.00725.92
8.2.170.0070.00722.96
8.2.160.0070.00720.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.00719.95
8.2.110.0100.00021.30
8.2.100.0110.00017.91
8.2.90.0060.00318.03
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0000.00717.63
8.2.50.0040.00418.10
8.2.40.0000.00821.21
8.2.30.0040.00419.33
8.2.20.0040.00418.10
8.2.10.0000.00819.03
8.2.00.0000.00719.48
8.1.340.0120.01117.64
8.1.330.0080.01322.25
8.1.320.0110.00816.21
8.1.310.0040.00416.67
8.1.300.0110.00420.37
8.1.290.0080.00330.84
8.1.280.0120.00325.92
8.1.270.0050.00322.27
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00419.34
8.1.230.0030.01221.04
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0000.00917.47
8.1.190.0080.00317.25
8.1.180.0070.00417.48
8.1.170.0000.00818.69
8.1.160.0040.00418.77
8.1.150.0050.00318.85
8.1.140.0070.00018.90
8.1.130.0000.00720.13
8.1.120.0040.00317.57
8.1.110.0030.00317.57
8.1.100.0050.00317.54
8.1.90.0000.00717.56
8.1.80.0000.00717.48
8.1.70.0040.00417.45
8.1.60.0030.00517.58
8.1.50.0050.00317.52
8.1.40.0000.00817.64
8.1.30.0080.00017.75
8.1.20.0040.00417.79
8.1.10.0040.00417.64
8.1.00.0000.00817.57
8.0.300.0050.00319.91
8.0.290.0040.00416.88
8.0.280.0070.00018.40
8.0.270.0070.00017.24
8.0.260.0000.00718.42
8.0.250.0040.00416.89
8.0.240.0070.00016.97
8.0.230.0030.00516.96
8.0.220.0030.00617.02
8.0.210.0000.00716.84
8.0.200.0060.00616.94
8.0.190.0040.00417.09
8.0.180.0040.00316.99
8.0.170.0030.00616.97
8.0.160.0050.00217.06
8.0.150.0040.00417.00
8.0.140.0070.00016.95
8.0.130.0050.00513.37
8.0.120.0050.00316.95
8.0.110.0080.00016.80
8.0.100.0030.00516.95
8.0.90.0000.00716.81
8.0.80.0070.00716.93
8.0.70.0040.00416.86
8.0.60.0000.00716.94
8.0.50.0000.00816.95
8.0.30.0090.00917.11
8.0.20.0160.00517.01
8.0.10.0030.00517.04
8.0.00.0150.00516.88
7.4.330.0000.00515.55
7.4.320.0030.00316.66
7.4.300.0060.00016.63
7.4.290.0040.00416.77
7.4.280.0000.00816.78
7.4.270.0040.00416.62
7.4.260.0030.00316.74
7.4.250.0030.00516.74
7.4.240.0060.00316.72
7.4.230.0000.00716.75
7.4.220.0060.00316.76
7.4.210.0080.00716.74
7.4.200.0030.00316.77
7.4.160.0130.00316.53
7.4.140.0100.00717.86
7.4.130.0060.01016.55
7.4.120.0140.00316.41
7.4.110.0030.01316.74
7.4.100.0120.00616.68
7.4.90.0030.01416.67
7.4.80.0060.01119.39
7.4.70.0130.00716.66
7.4.60.0080.00816.76
7.4.50.0110.00416.54
7.4.40.0130.00316.60
7.4.00.0040.01414.90
7.3.330.0000.00513.21
7.3.320.0050.00013.16
7.3.310.0000.00716.14
7.3.300.0070.00016.28
7.3.290.0000.00716.34
7.3.280.0120.00316.31
7.3.260.0110.00716.40
7.3.240.0090.00916.32
7.3.230.0150.00316.48
7.3.210.0180.00016.72
7.3.200.0000.01716.52
7.3.190.0070.01016.35
7.3.180.0150.00616.57
7.3.170.0050.01416.65
7.3.160.0090.00616.59
7.3.50.0110.00314.71
7.3.40.0130.01014.74
7.3.30.0100.01114.64
7.3.20.0060.00614.85
7.3.10.0130.01014.89
7.3.00.0100.00715.11
7.2.330.0090.00916.70
7.2.320.0070.01716.60
7.2.310.0100.00616.54
7.2.300.0160.00316.68
7.2.290.0080.00816.46
7.2.180.0040.00714.95
7.2.170.0070.00714.94
7.2.160.0030.01014.96
7.2.150.0060.00715.32
7.2.140.0060.01015.20
7.2.130.0120.00314.77
7.2.120.0100.00315.07
7.2.110.0130.00615.06
7.2.100.0080.00615.14
7.2.90.0000.01314.75
7.2.80.0140.00715.20
7.2.70.0080.00515.11
7.2.60.0090.00314.93
7.2.50.0180.00715.17
7.2.40.0120.00415.07
7.2.30.0130.00014.84
7.2.20.0110.00414.96
7.2.10.0030.01015.07
7.2.00.0180.00614.88
7.1.280.0090.00913.94
7.1.270.1090.00614.00
7.1.260.0070.00714.04
7.1.250.0120.00413.91
4.3.00.0000.00216.52

preferences:
58.36 ms | 1418 KiB | 5 Q