3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = "One two three. Four five six. Seven eight nine. Ten eleven twelve. Thirteen fourteen fifteen."; for ($i = 1; $i <= 15; $i++) { if (preg_match('/^((\s*\S+){' . $i . '}(\s*\S+)*?(?<=\.))(?=(\s*\S+).*?(?<=\.)\s*\S+)/', $sentence, $match)) { echo "Summary {$i}: {$match[1]}\n"; } else { echo "Full text {$i}: {$sentence}\n"; } }

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.3.60.0100.02718.43
8.3.50.0120.02722.12
8.3.40.0160.02919.03
8.3.30.0030.02719.27
8.3.20.0030.01320.16
8.3.10.0030.01421.89
8.3.00.0130.00919.50
8.2.180.0100.02218.66
8.2.170.0130.01922.96
8.2.160.0070.02220.28
8.2.150.0060.01024.18
8.2.140.0100.00724.66
8.2.130.0060.01026.16
8.2.120.0070.01019.61
8.2.110.0070.01319.38
8.2.100.0070.02017.88
8.2.90.0070.01719.30
8.2.80.0040.01818.00
8.2.70.0040.02518.00
8.2.60.0060.01518.05
8.2.50.0080.01618.13
8.2.40.0030.01918.41
8.2.30.0030.01818.12
8.2.20.0060.01618.01
8.2.10.0000.02218.06
8.2.00.0000.02117.91
8.1.280.0160.02325.92
8.1.270.0070.01020.90
8.1.260.0030.01326.35
8.1.250.0060.01028.09
8.1.240.0060.01224.09
8.1.230.0040.02217.88
8.1.220.0040.01817.74
8.1.210.0000.02218.77
8.1.200.0060.01817.61
8.1.190.0000.02217.47
8.1.180.0030.02018.10
8.1.170.0000.02119.09
8.1.160.0030.01922.02
8.1.150.0030.01718.98
8.1.140.0030.02017.66
8.1.130.0030.01717.83
8.1.120.0000.02117.54
8.1.110.0040.01917.55
8.1.100.0000.02117.50
8.1.90.0030.01817.58
8.1.80.0060.01517.71
8.1.70.0030.01717.67
8.1.60.0000.02317.73
8.1.50.0000.02217.75
8.1.40.0030.01917.65
8.1.30.0070.01717.91
8.1.20.0060.01517.79
8.1.10.0030.01917.74
8.1.00.0060.02417.73
8.0.300.0060.01518.77
8.0.290.0040.01817.00
8.0.280.0060.01518.54
8.0.270.0030.01817.27
8.0.260.0000.02017.35
8.0.250.0030.01917.17
8.0.240.0030.01717.16
8.0.230.0000.02017.20
8.0.220.0060.01517.02
8.0.210.0060.01517.04
8.0.200.0030.01717.11
8.0.190.0030.01717.14
8.0.180.0030.01917.18
8.0.170.0070.01417.03
8.0.160.0030.01917.13
8.0.150.0090.01217.07
8.0.140.0040.01817.07
8.0.130.0070.01313.57
8.0.120.0030.01916.96
8.0.110.0040.01817.09
8.0.100.0000.02216.98
8.0.90.0030.01817.17
8.0.80.0120.02817.16
8.0.70.0040.01817.13
8.0.60.0000.02117.06
8.0.50.0030.01916.94
8.0.30.0100.04617.53
8.0.20.0100.03517.40
8.0.10.0100.01317.15
8.0.00.0080.03517.01
7.4.330.0000.01915.07
7.4.320.0000.02116.73
7.4.300.0030.01616.82
7.4.290.0030.01716.65
7.4.280.0000.02216.69
7.4.270.0000.02116.75
7.4.260.0000.02116.84
7.4.250.0060.01516.71
7.4.240.0020.02016.79
7.4.230.0030.01916.61
7.4.220.0070.04316.84
7.4.210.0100.02816.79
7.4.200.0000.02216.84
7.4.160.0000.03816.66
7.4.150.0140.02817.40
7.4.140.0090.03617.86
7.4.130.0110.03516.75
7.4.120.0130.03016.86
7.4.110.0150.02816.66
7.4.100.0140.02816.64
7.4.90.0030.03716.79
7.4.80.0120.04319.39
7.4.70.0090.03316.70
7.4.60.0030.03716.66
7.4.50.0000.02016.65
7.4.40.0140.02816.59
7.4.30.0150.03516.59
7.4.00.0110.02314.88
7.3.330.0070.01413.25
7.3.320.0080.02313.43
7.3.310.0030.01816.38
7.3.300.0000.02016.43
7.3.290.0060.03816.53
7.3.280.0140.03716.54
7.3.270.0130.04717.40
7.3.260.0130.03216.77
7.3.250.0050.04016.71
7.3.240.0070.03616.78
7.3.230.0100.03916.80
7.3.210.0130.03016.58
7.3.200.0090.03419.39
7.3.190.0060.03816.84
7.3.180.0060.03516.70
7.3.170.0100.04916.66
7.3.160.0030.03816.53
7.3.120.0160.02015.12
7.3.110.0030.03715.12
7.3.100.0090.03515.27
7.3.90.0030.04014.88
7.3.80.0100.02115.28
7.3.70.0000.03014.96
7.3.60.0060.01914.96
7.3.50.0030.02315.24
7.3.40.0070.02415.12
7.3.30.0000.02615.16
7.3.20.0030.02716.76
7.3.10.0100.02416.77
7.3.00.0080.02816.68
7.2.330.0110.03616.82
7.2.320.0100.03216.90
7.2.310.0130.03316.96
7.2.300.0100.03316.95
7.2.290.0100.03516.98
7.2.250.0100.03214.98
7.2.240.0100.02315.27
7.2.230.0030.03315.43
7.2.220.0100.03415.36
7.2.210.0030.02715.27
7.2.200.0030.02715.41
7.2.190.0030.02315.41
7.2.180.0000.03115.34
7.2.170.0070.02415.21
7.2.130.0190.02616.93
7.2.120.0100.02817.12
7.2.110.0090.02917.04
7.2.100.0120.02716.99
7.2.90.0130.03017.11
7.2.80.0120.02717.14
7.2.70.0340.03016.80
7.2.60.0190.03017.08
7.2.50.0190.02916.99
7.2.40.0160.02516.88
7.2.30.0200.02517.09
7.2.20.0140.03116.80
7.2.10.0190.02817.11
7.2.00.0130.02317.91
7.1.330.0070.02816.21
7.1.320.0000.03016.25
7.1.310.0070.02716.14
7.1.300.0030.02716.00
7.1.290.0060.01916.15
7.1.280.0000.02715.97
7.1.270.0060.01915.79
7.1.260.0030.02816.22
7.1.250.0200.02615.88
7.1.100.0190.02818.36
7.1.70.0000.02917.48
7.1.60.0130.04719.50
7.1.50.0140.04517.25
7.1.00.0000.10722.58
7.0.200.0870.02315.26
7.0.140.0030.07022.17
7.0.60.0000.05719.85
7.0.50.0030.06017.89
7.0.40.0070.08019.98
7.0.30.0270.08320.19
7.0.20.0270.07320.27
7.0.10.0000.06720.24
7.0.00.0000.12320.08
5.6.280.0000.22020.82
5.6.210.0100.19320.62
5.6.200.0100.17718.17
5.6.190.0070.19720.79
5.6.180.0070.19020.43
5.6.170.0370.17720.43
5.6.160.0070.14720.45
5.6.150.0070.16318.13
5.6.140.0030.13318.23
5.6.130.0130.17718.17
5.6.120.0000.18721.05
5.6.110.0030.13021.04
5.6.100.0070.19020.97
5.6.90.0100.18720.96
5.6.80.0130.19720.37
5.5.350.4270.13720.44
5.5.340.0030.19018.04
5.5.330.0030.13320.59
5.5.320.0470.14720.29
5.5.310.0330.17720.35
5.5.300.0030.18718.02
5.5.290.0070.18717.94
5.5.280.0030.19720.97
5.5.270.0000.13320.86
5.5.260.0170.15720.95
5.5.250.0130.18320.46
5.5.240.0100.18720.26
5.4.450.0770.20019.66
5.4.440.1300.25319.43
5.4.430.0830.19319.16
5.4.420.1000.22319.63
5.4.410.1000.28019.47
5.4.400.0300.29718.66
5.4.390.0100.18018.65
5.4.380.0100.22718.77
5.4.370.0300.21318.66
5.4.360.0370.18018.74
5.4.350.0300.18718.49
5.4.340.0330.17318.53
5.4.320.0430.28018.51
5.4.310.0400.17318.70
5.4.300.0330.18018.54
5.4.290.0270.19018.82
5.4.280.0200.19018.52
5.4.270.0230.18718.58
5.4.260.0270.17718.69
5.4.250.0200.18718.75
5.4.240.0330.18018.48
5.4.230.0300.17718.74
5.4.220.0270.22718.60
5.4.210.0300.17018.58
5.4.200.1430.20716.68
5.4.190.0130.17718.50
5.4.180.0130.18718.53
5.4.170.0230.18718.50
5.4.160.0200.17718.61
5.4.150.0230.20718.65
5.4.140.0230.19016.33
5.4.130.0100.20716.43
5.4.120.0400.20316.14
5.4.110.0330.21716.19
5.4.100.0230.20016.19
5.4.90.0130.18316.09
5.4.80.0270.17016.14
5.4.70.0330.17316.06
5.4.60.0270.17016.17
5.4.50.0230.17716.20
5.4.40.0170.19316.00
5.4.30.0130.22716.08
5.4.20.0230.25316.05
5.4.10.1270.18716.07
5.4.00.0230.18715.59
5.3.290.0230.17314.61
5.3.280.0330.19714.61
5.3.270.0300.19714.56
5.3.260.0100.19014.56
5.3.250.0130.19714.73
5.3.240.0530.20014.60
5.3.230.0270.19014.71
5.3.220.0300.18314.59
5.3.210.0230.18714.52
5.3.200.0270.18014.64
5.3.190.0130.17314.54
5.3.180.0170.18314.53
5.3.170.0500.18314.67
5.3.160.0400.18014.60
5.3.150.0330.18314.59
5.3.140.0300.17314.63
5.3.130.0330.24714.66
5.3.120.0370.21014.57
5.3.110.0300.21314.66
5.3.100.0270.21714.06
5.3.90.0430.17013.97
5.3.80.0300.27714.14
5.3.70.0230.18014.02
5.3.60.0200.06313.99
5.3.50.0300.06014.00
5.3.40.0270.05714.04
5.3.30.0200.07313.88
5.3.20.0900.06313.66
5.3.10.0200.06313.58
5.3.00.0230.06313.64
5.2.170.1070.06311.20
5.2.160.0230.04711.20
5.2.150.0130.06011.13
5.2.140.1130.05011.09
5.2.130.0200.06311.16
5.2.120.0970.05311.15
5.2.110.0270.05011.07
5.2.100.0100.06311.14
5.2.90.1030.06011.07
5.2.80.0230.05011.17
5.2.70.0200.06011.16
5.2.60.1100.05711.13
5.2.50.0300.06311.18
5.2.40.0170.05311.16
5.2.30.1130.06011.04
5.2.20.0130.05711.13
5.2.10.0230.04311.09
5.2.00.1000.05710.79
5.1.60.0171.14710.06
5.1.50.0101.14310.09
5.1.40.0931.24710.16
5.1.30.0201.26710.56
5.1.20.0101.12010.51
5.1.10.0271.10010.34
5.1.00.0731.08010.25
5.0.50.0071.1078.86
5.0.40.0131.0238.66
5.0.30.0101.0278.29
5.0.20.0100.9738.26
5.0.10.0070.9878.30
5.0.00.0800.9908.22
4.4.90.0171.4975.94
4.4.80.0171.5875.94
4.4.70.0171.3735.90
4.4.60.0101.3975.95
4.4.50.0101.0975.95
4.4.40.0101.2205.98
4.4.30.0031.3035.94
4.4.20.0101.1606.01
4.4.10.0031.1206.02
4.4.00.0031.0705.99
4.3.110.0000.9935.88
4.3.100.0100.9735.97
4.3.90.0171.1135.88
4.3.80.0201.4335.82
4.3.70.0231.0035.91
4.3.60.0131.0735.91
4.3.50.0201.3935.87
4.3.40.0031.0235.90
4.3.30.0001.0674.60
4.3.20.0032.4904.51
4.3.10.0072.4904.47
4.3.00.0172.4776.78

preferences:
32.98 ms | 401 KiB | 5 Q