3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Me, my dog and “myself“ are going on a vacation. Irene and myself are broke. Myself is here :P John and myself!'; if (preg_match_all('/(?:\S+\s+){0,2}\p{P}?myself\p{P}?(?:\s+\S+){0,2}/u', $text, $result)) { print_r($result[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.0140.00721.69
8.4.150.0030.00014.05
8.4.140.0140.00717.68
8.4.130.0080.00617.96
8.4.120.0130.00620.55
8.4.110.0080.01119.02
8.4.100.0130.00818.05
8.4.90.0100.01020.71
8.4.80.0130.00718.11
8.4.70.0090.00917.91
8.4.60.0080.01218.84
8.4.50.0060.00922.20
8.4.40.0140.00717.98
8.4.30.0070.01319.59
8.4.20.0160.00320.64
8.4.10.0040.01122.51
8.3.280.0150.00618.73
8.3.270.0090.01116.75
8.3.260.0120.00816.77
8.3.250.0100.00819.05
8.3.240.0110.00816.66
8.3.230.0120.00816.59
8.3.220.0110.00717.04
8.3.210.0050.00316.61
8.3.200.0050.00416.92
8.3.190.0110.00717.24
8.3.180.0090.00717.01
8.3.170.0150.00416.90
8.3.160.0110.00716.66
8.3.150.0110.00817.02
8.3.140.0080.00016.65
8.3.130.0100.01016.92
8.3.120.0030.00620.38
8.3.110.0050.00320.94
8.3.100.0050.00224.06
8.3.90.0060.00326.77
8.3.80.0040.00418.68
8.3.70.0070.00716.63
8.3.60.0000.01518.43
8.3.50.0130.00617.46
8.3.40.0090.00618.96
8.3.30.0090.00618.80
8.3.20.0030.00520.72
8.3.10.0000.00821.81
8.3.00.0030.00520.85
8.2.290.0100.00716.70
8.2.280.0060.00522.23
8.2.270.0100.00017.13
8.2.260.0090.00918.85
8.2.250.0120.00319.17
8.2.240.0050.00317.39
8.2.230.0090.00022.58
8.2.220.0050.00537.54
8.2.210.0110.00426.77
8.2.200.0100.00018.69
8.2.190.0060.00916.88
8.2.180.0190.00318.53
8.2.170.0120.00322.96
8.2.160.0040.01122.18
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00418.03
8.2.120.0000.00726.35
8.2.110.0100.00021.08
8.2.100.0060.00618.28
8.2.90.0080.00019.33
8.2.80.0030.00517.97
8.2.70.0040.00418.05
8.2.60.0040.00419.95
8.2.50.0040.00418.10
8.2.40.0000.00719.48
8.2.30.0040.00419.36
8.2.20.0000.00718.16
8.2.10.0040.00419.34
8.2.00.0040.00418.28
8.1.330.0110.00816.22
8.1.320.0110.00816.56
8.1.310.0120.00318.69
8.1.300.0090.00018.54
8.1.290.0040.00430.84
8.1.280.0150.00425.92
8.1.270.0080.00020.38
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.30
8.1.230.0080.00317.77
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00518.77
8.1.160.0040.00418.80
8.1.150.0000.00718.85
8.1.140.0000.00719.12
8.1.130.0030.00617.62
8.1.120.0000.00717.45
8.1.110.0070.00017.39
8.1.100.0040.00417.45
8.1.90.0000.00717.57
8.1.80.0040.00417.50
8.1.70.0070.00017.54
8.1.60.0000.00817.70
8.1.50.0070.00017.68
8.1.40.0000.00817.54
8.1.30.0030.00517.83
8.1.20.0050.00317.66
8.1.10.0070.00317.77
8.1.00.0000.00817.53
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0000.00718.41
8.0.270.0040.00217.37
8.0.260.0030.00317.01
8.0.250.0030.00317.17
8.0.240.0070.00017.26
8.0.230.0050.00617.21
8.0.220.0040.00417.12
8.0.210.0040.00417.13
8.0.200.0070.00017.14
8.0.190.0000.00917.02
8.0.180.0000.00717.17
8.0.170.0000.00817.12
8.0.160.0040.00417.10
8.0.150.0000.00917.01
8.0.140.0040.00417.09
8.0.130.0030.00313.58
8.0.120.0040.00416.98
8.0.110.0040.00417.12
8.0.100.0000.00716.98
8.0.90.0000.00817.07
8.0.80.0090.01117.09
8.0.70.0070.00017.18
8.0.60.0040.00416.95
8.0.50.0000.00817.07
8.0.30.0100.01017.08
8.0.20.0100.01017.20
8.0.10.0070.00017.22
8.0.00.0100.00816.95
7.4.330.0050.00016.88
7.4.320.0000.00716.84
7.4.300.0030.00316.69
7.4.290.0030.00316.64
7.4.280.0060.00316.80
7.4.270.0030.00316.74
7.4.260.0090.00016.73
7.4.250.0030.00316.77
7.4.240.0030.00316.83
7.4.230.0030.00316.73
7.4.220.0030.00616.64
7.4.210.0130.00516.88
7.4.200.0030.00316.93
7.4.160.0110.00616.67
7.4.140.0100.00717.86
7.4.130.0140.00616.76
7.4.120.0090.00916.76
7.4.110.0090.00916.64
7.4.100.0170.00316.77
7.4.90.0110.00616.47
7.4.80.0200.00719.39
7.4.70.0130.01016.63
7.4.60.0100.01316.70
7.4.50.0060.00916.62
7.4.40.0120.00316.59
7.4.00.0030.00814.98
7.3.330.0080.00013.34
7.3.320.0030.00313.13
7.3.310.0000.00716.40
7.3.300.0000.00716.29
7.3.290.0030.00316.27
7.3.280.0040.01216.43
7.3.260.0150.00416.52
7.3.240.0070.01316.44
7.3.230.0140.00316.47
7.3.210.0060.01116.60
7.3.200.0060.01016.39
7.3.190.0070.01016.70
7.3.180.0230.00016.63
7.3.170.0070.01016.62
7.3.160.0100.00616.46
7.3.30.0070.00814.92
7.3.20.0260.01014.95
7.3.10.0890.00715.01
7.3.00.0800.00715.05
7.2.330.0120.00616.54
7.2.320.0060.01316.85
7.2.310.0070.01016.66
7.2.300.0000.01716.66
7.2.290.0110.00716.70
7.2.160.0130.00615.18
7.2.150.0990.00014.93
7.2.140.0400.01315.25
7.2.130.0780.01415.00
7.2.120.0290.01315.06
7.2.110.0850.00315.02
7.2.100.0830.00315.15
7.2.90.0170.00915.04
7.2.80.1120.01014.80
7.2.70.0950.00714.95
7.2.60.0970.00014.95
7.2.50.0820.01014.96
7.2.40.0910.01014.90
7.2.30.0980.00014.98
7.2.20.0140.01115.09
7.2.10.0150.01214.84
7.2.00.1230.00915.25
7.1.270.0860.00714.17
7.1.260.0070.00713.88
7.1.250.0480.00413.92

preferences:
32.49 ms | 403 KiB | 5 Q