3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Héllo Bob's and Russ’ new-found folks — goodbye"; var_export( array_reduce( preg_match_all("~([^\p{L}`'-]*)([\p{L}`'-]+)~u", $text, $m, PREG_SET_ORDER) ? $m : [], function($result, $m) { static $last = 0; $last += mb_strlen($m[1]); $result[] = [$m[2] => $last]; $last += mb_strlen($m[2]); return $result; }, [] ) );

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.10.0120.00717.13
8.5.00.0110.01320.35
8.4.160.0150.01023.76
8.4.150.0020.00014.05
8.4.140.0120.01017.87
8.4.130.0110.01017.90
8.4.120.0130.00523.86
8.4.110.0130.00720.50
8.4.100.0100.00718.73
8.4.90.0110.00920.71
8.4.80.0130.00618.97
8.4.70.0070.00518.29
8.4.60.0120.00918.30
8.4.50.0150.00618.90
8.4.40.0000.01018.75
8.4.30.0150.00020.57
8.4.20.0140.00718.32
8.4.10.0130.00719.71
8.3.290.0140.00918.63
8.3.280.0040.00518.75
8.3.270.0130.00716.88
8.3.260.0140.00617.09
8.3.250.0120.00718.83
8.3.240.0130.00617.25
8.3.230.0100.00516.84
8.3.220.0110.00419.07
8.3.210.0040.00418.90
8.3.200.0050.00416.71
8.3.190.0070.00817.17
8.3.180.0070.01317.33
8.3.170.0090.00920.64
8.3.160.0120.00618.51
8.3.150.0100.01017.51
8.3.140.0090.00916.76
8.3.130.0060.00318.90
8.3.120.0000.00920.82
8.3.110.0080.00020.94
8.3.100.0100.00024.06
8.3.90.0030.00626.77
8.3.80.0050.00518.55
8.3.70.0090.00618.68
8.3.60.0120.00317.25
8.3.50.0090.00616.80
8.3.40.0100.01022.09
8.3.30.0040.01421.91
8.3.20.0020.00524.18
8.3.10.0030.00624.66
8.3.00.0070.00026.16
8.2.300.0100.01018.96
8.2.290.0130.00620.66
8.2.280.0150.00718.57
8.2.270.0120.00617.25
8.2.260.0000.00816.95
8.2.250.0000.00817.09
8.2.240.0000.01018.96
8.2.230.0040.01222.58
8.2.220.0030.00637.54
8.2.210.0120.00326.77
8.2.200.0000.00916.88
8.2.190.0130.00716.88
8.2.180.0070.00716.75
8.2.170.0120.00319.21
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00021.08
8.2.110.0130.00922.20
8.2.100.0090.01219.28
8.2.90.0270.01419.17
8.2.80.0250.00618.89
8.2.70.0110.00718.94
8.2.60.0100.01319.08
8.2.50.0160.01018.79
8.2.40.0130.00719.18
8.2.30.0110.00018.91
8.2.20.0330.00019.00
8.2.10.0130.01319.22
8.2.00.0120.00419.29
8.1.340.0140.00618.03
8.1.330.0120.00621.95
8.1.320.0070.00316.46
8.1.310.0070.00716.68
8.1.300.0100.01018.32
8.1.290.0090.00030.84
8.1.280.0120.00925.92
8.1.270.0000.00824.02
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00618.77
8.1.230.0150.00318.68
8.1.220.0090.00618.75
8.1.210.0210.00920.13
8.1.200.0210.01018.82
8.1.190.0150.01518.50
8.1.180.0180.00418.66
8.1.170.0240.00318.62
8.1.160.0090.01318.86
8.1.150.0150.01520.98
8.1.140.0210.00718.68
8.1.130.0230.01018.62
8.1.120.0300.00018.57
8.1.110.0280.00418.72
8.1.100.0250.01418.67
8.1.90.0260.00918.87
8.1.80.0280.00618.52
8.1.70.0180.01118.83
8.1.60.0170.00418.96
8.1.50.0280.01118.87
8.1.40.0140.00718.82
8.1.30.0160.00618.98
8.1.20.0100.00719.13
8.1.10.0290.01018.99
8.1.00.0190.00318.74
8.0.300.0160.00318.20
8.0.290.0170.00018.06
8.0.280.0140.00018.15
8.0.270.0090.00618.03
8.0.260.0080.00818.10
8.0.250.0110.00818.15
8.0.240.0120.00418.30
8.0.230.0110.00218.23
8.0.220.0090.00418.21
8.0.210.0150.00018.05
8.0.200.0160.00018.10
8.0.190.0140.00318.25
8.0.180.0120.00318.25
8.0.170.0120.00018.21
8.0.160.0110.00518.21
8.0.150.0080.00818.25
8.0.140.0170.00018.12
8.0.130.0090.00518.32
8.0.120.0130.00318.25
8.0.110.0110.00418.20
8.0.100.0130.00318.13
8.0.90.0300.00718.30
8.0.80.0130.00418.07
8.0.70.0120.00418.25
8.0.60.0190.01118.07
8.0.50.0170.00018.28
8.0.30.0090.00418.23
8.0.20.0190.00418.13
8.0.10.0220.00718.25

preferences:
29.42 ms | 403 KiB | 5 Q