3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '@mention_1 @$badmention Manual balls knit cardigan @120rb email me @ example@example.com'; $count = preg_match_all( '/(?:^|\s)@\K\w+/', $string, $matches ); var_export([ 'count' => $count, 'matches' => $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.4.120.0050.00420.78
8.4.110.0150.00622.38
8.4.100.0110.01017.86
8.4.90.0120.00820.41
8.4.80.0060.00319.09
8.4.70.0140.00518.87
8.4.60.0110.00918.75
8.4.50.0080.01118.86
8.4.40.0070.01018.00
8.4.30.0060.01320.43
8.4.20.0030.00718.30
8.4.10.0100.01017.91
8.3.250.0120.00818.67
8.3.240.0110.00916.70
8.3.230.0130.00516.62
8.3.220.0060.00218.75
8.3.210.0060.00918.59
8.3.200.0150.00516.83
8.3.190.0130.00516.98
8.3.180.0090.01019.02
8.3.170.0120.00617.37
8.3.160.0130.00618.32
8.3.150.0060.01317.10
8.3.140.0000.00816.68
8.3.130.0040.01118.45
8.3.120.0110.00018.93
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0050.00518.68
8.3.70.0110.01116.58
8.3.60.0150.00318.55
8.3.50.0130.01018.43
8.3.40.0070.00719.05
8.3.30.0040.01118.92
8.3.20.0000.00724.18
8.3.10.0000.00724.66
8.3.00.0020.00526.16
8.2.290.0130.00516.96
8.2.280.0090.01016.69
8.2.270.0040.01417.01
8.2.260.0120.00319.03
8.2.250.0000.00818.54
8.2.240.0060.00316.68
8.2.230.0040.00422.58
8.2.220.0050.00537.54
8.2.210.0000.00826.77
8.2.200.0060.00316.63
8.2.190.0070.01416.75
8.2.180.0140.00425.92
8.2.170.0160.00419.07
8.2.160.0100.00722.96
8.2.150.0070.00025.66
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0040.00419.95
8.2.110.0030.00620.47
8.2.100.0110.00017.97
8.2.90.0050.00318.16
8.2.80.0000.00917.97
8.2.70.0040.00417.88
8.2.60.0050.00318.05
8.2.50.0000.00818.07
8.2.40.0030.00720.07
8.2.30.0030.00618.07
8.2.20.0040.00419.51
8.2.10.0000.00717.89
8.2.00.0040.00419.16
8.1.330.0120.00816.40
8.1.320.0150.00418.00
8.1.310.0070.01116.51
8.1.300.0040.00418.07
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0030.00523.68
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0110.00421.60
8.1.230.0000.01223.86
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0090.00017.38
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0060.00320.41
8.1.160.0000.00718.80
8.1.150.0020.00518.68
8.1.140.0040.00417.58
8.1.130.0050.00220.64
8.1.120.0000.00917.55
8.1.110.0000.00817.51
8.1.100.0040.00417.51
8.1.90.0000.00717.49
8.1.80.0030.00617.50
8.1.70.0000.00717.47
8.1.60.0040.00417.53
8.1.50.0000.00817.47
8.1.40.0000.00817.65
8.1.30.0040.00417.67
8.1.20.0050.00317.79
8.1.10.0000.00817.59
8.1.00.0030.00717.58
8.0.300.0040.00419.91
8.0.290.0070.00016.63
8.0.280.0030.00618.32
8.0.270.0000.00818.15
8.0.260.0030.00318.34
8.0.250.0070.00016.95
8.0.240.0040.00417.02
8.0.230.0000.00817.03
8.0.220.0070.00016.98
8.0.210.0030.00616.96
8.0.200.0070.00016.89
8.0.190.0040.00416.92
8.0.180.0030.00516.88
8.0.170.0060.00316.88
8.0.160.0060.00316.93
8.0.150.0000.00816.86
8.0.140.0030.00416.82
8.0.130.0060.00013.38
8.0.120.0040.00413.48
8.0.110.0110.00013.46
8.0.100.0090.00313.38
8.0.90.0060.00613.28
8.0.80.0130.00013.45
8.0.70.0050.00813.38
8.0.60.0140.00013.35
8.0.50.0080.00413.40
8.0.30.0050.00813.33
8.0.20.0100.00313.46
8.0.10.0100.00213.52
8.0.00.0080.00013.55
7.4.330.0020.00215.55
7.4.320.0000.00616.77
7.4.300.0030.00316.74
7.4.290.0040.00416.47
7.4.280.0040.00416.76
7.4.270.0080.00016.64
7.4.260.0030.00313.34
7.4.250.0040.00413.43
7.4.240.0090.00613.54
7.4.230.0150.00013.44
7.4.220.0090.00313.43
7.4.210.0130.00013.39
7.4.200.0030.00913.35
7.4.190.0100.00413.48
7.4.180.0090.00413.50
7.4.160.0090.00413.47
7.4.150.0120.00013.48
7.4.140.0110.00313.41
7.4.130.0130.00013.35
7.4.120.0060.00613.48
7.4.110.0070.00713.29
7.4.100.0090.00413.50
7.4.90.0100.00213.32
7.4.80.0140.00013.27
7.4.70.0040.00813.30
7.4.60.0110.00013.38
7.4.50.0080.00213.25
7.4.40.0000.01013.30
7.4.30.0000.01013.27
7.4.20.0030.00813.32
7.4.10.0000.01113.27
7.4.00.0100.00313.23
7.3.330.0030.00316.36
7.3.320.0110.00413.05
7.3.310.0150.00013.05
7.3.300.0150.00013.30
7.3.290.0050.00913.21
7.3.280.0110.00313.33
7.3.270.0110.00313.28
7.3.260.0100.00313.13
7.3.250.0040.00213.16
7.3.240.0000.00613.23
7.3.230.0060.00613.16
7.3.220.0040.01113.19
7.3.210.0140.00013.14
7.3.200.0040.01013.08
7.3.190.0080.00313.03
7.3.180.0030.00313.07
7.3.170.0050.00612.94
7.3.160.0080.00313.06
7.3.150.0120.00013.11
7.3.140.0100.00313.04
7.3.130.0090.00513.17
7.3.120.0080.00313.10
7.3.110.0040.00413.03
7.3.100.0140.00013.07
7.3.90.0100.00313.42
7.3.80.0080.00713.29
7.3.70.0100.00413.25
7.3.60.0040.00813.30
7.3.50.0070.00713.29
7.3.40.0100.00313.30
7.3.30.0040.00913.30
7.3.20.0140.00015.19
7.3.10.0070.00714.94
7.3.00.0140.00215.04

preferences:
29.02 ms | 403 KiB | 5 Q