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+){45}(\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.40.0120.00618.79
8.3.30.0060.00819.04
8.3.20.0050.00320.16
8.3.10.0040.00421.57
8.3.00.0080.00019.51
8.2.170.0040.01122.96
8.2.160.0030.01019.20
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.48
8.2.110.0040.00421.12
8.2.100.0090.00317.63
8.2.90.0000.00919.11
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00818.04
8.2.50.0000.01018.07
8.2.40.0050.00319.94
8.2.30.0040.00417.95
8.2.20.0040.00417.63
8.2.10.0050.00318.13
8.2.00.0040.00417.69
8.1.270.0060.00320.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00622.04
8.1.230.0080.00417.54
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0090.00017.23
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0080.00018.97
8.1.160.0000.00821.82
8.1.150.0000.00718.75
8.1.140.0070.00017.40
8.1.130.0030.00317.75
8.1.120.0040.00417.33
8.1.110.0000.00717.39
8.1.100.0040.00417.37
8.1.90.0040.00417.30
8.1.80.0050.00317.41
8.1.70.0030.00317.41
8.1.60.0060.00317.43
8.1.50.0030.00617.52
8.1.40.0050.00317.50
8.1.30.0040.00417.67
8.1.20.0040.00417.60
8.1.10.0000.00917.51
8.1.00.0100.00317.50
8.0.300.0020.00518.77
8.0.290.0000.00716.75
8.0.280.0040.00418.33
8.0.270.0030.00317.23
8.0.260.0030.00317.26
8.0.250.0070.00016.89
8.0.240.0000.00717.04
8.0.230.0030.00517.02
8.0.220.0070.00016.97
8.0.210.0030.00316.88
8.0.200.0030.00316.96
8.0.190.0050.00317.04
8.0.180.0040.00416.95
8.0.170.0000.00816.88
8.0.160.0040.00417.04
8.0.150.0000.00716.92
8.0.140.0000.00816.93
8.0.130.0030.00313.35
8.0.120.0040.00416.80
8.0.110.0040.00416.91
8.0.100.0000.00716.79
8.0.90.0000.00716.84
8.0.80.0070.01616.89
8.0.70.0000.00716.85
8.0.60.0020.00517.00
8.0.50.0070.00017.01
8.0.30.0170.00917.06
8.0.20.0140.00817.40
8.0.10.0070.00016.87
8.0.00.0100.01016.77
7.4.330.0050.00015.03
7.4.320.0030.00316.43
7.4.300.0000.00616.52
7.4.290.0040.00416.63
7.4.280.0060.00316.64
7.4.270.0070.00016.56
7.4.260.0040.00416.40
7.4.250.0040.00416.55
7.4.240.0020.00516.53
7.4.230.0030.00416.41
7.4.220.0190.00016.55
7.4.210.0070.00716.57
7.4.200.0000.00816.59
7.4.160.0110.00516.35
7.4.150.0000.01817.40
7.4.140.0100.01017.86
7.4.130.0070.01016.52
7.4.120.0090.00816.53
7.4.110.0070.01616.59
7.4.100.0000.01716.47
7.4.90.0120.00616.57
7.4.80.0180.00419.39
7.4.70.0070.01116.73
7.4.60.0060.00916.67
7.4.50.0040.00416.52
7.4.40.0150.00316.66
7.4.30.0030.01716.60
7.4.00.0060.00915.11
7.3.330.0000.00613.30
7.3.320.0120.00013.26
7.3.310.0000.00816.30
7.3.300.0040.00416.47
7.3.290.0060.01216.49
7.3.280.0090.00616.44
7.3.270.0120.00417.40
7.3.260.0090.00916.35
7.3.250.0100.00816.55
7.3.240.0030.01316.68
7.3.230.0100.01416.47
7.3.210.0100.00616.59
7.3.200.0170.00719.39
7.3.190.0090.00616.36
7.3.180.0030.01316.37
7.3.170.0100.00616.33
7.3.160.0070.01016.26
7.2.330.0100.01016.66
7.2.320.0070.01016.80
7.2.310.0100.00716.50
7.2.300.0110.00716.61
7.2.290.0100.00916.67
7.2.60.0000.01417.04
7.2.00.0000.01219.69
7.1.200.0080.00416.01
7.1.100.0040.00418.02
7.1.70.0060.00317.19
7.1.60.0070.01819.50
7.1.50.0160.00617.06
7.1.00.0070.07322.43
7.0.200.0620.00614.86
7.0.140.0070.05321.96
7.0.60.0030.06720.08
7.0.50.0030.08317.89
7.0.40.0070.04719.95
7.0.30.0300.06020.01
7.0.20.0270.07020.16
7.0.10.0230.04020.30
7.0.00.0100.08020.30
5.6.280.0070.07021.14
5.6.210.0100.06320.54
5.6.200.0100.04018.21
5.6.190.0000.04720.47
5.6.180.0300.07320.59
5.6.170.0330.08020.41
5.6.160.0130.07320.70
5.6.150.0030.04018.22
5.6.140.0130.06018.21
5.6.130.0100.04718.11
5.6.120.0070.05720.98
5.6.110.0100.06021.00
5.6.100.0170.07721.01
5.6.90.0200.07021.09
5.6.80.0030.07320.40
5.6.70.0300.06320.52
5.5.350.0270.08020.39
5.5.340.0030.08317.91
5.5.330.0100.03320.25
5.5.320.0100.07720.13
5.5.310.0370.07020.26
5.5.300.0070.03317.98
5.5.290.0100.08018.02
5.5.280.0070.04020.76
5.5.270.0100.07720.72
5.5.260.0200.07720.64
5.5.250.0170.07020.68
5.5.240.0070.05720.26
5.4.450.1830.03719.24
5.4.440.1930.03719.38
5.4.430.1900.03319.12
5.4.420.1830.04319.25
5.4.410.1270.03019.41
5.4.400.0030.04019.09
5.4.390.0100.03319.08
5.4.380.1400.03319.16
5.4.370.1730.04719.08
5.4.360.1870.03318.77
5.4.350.2270.04719.21
5.4.340.2230.03719.03
5.4.320.1830.03019.18
5.4.310.1770.04319.08
5.4.300.1900.04019.25
5.4.290.2030.04018.92
5.4.280.1770.04019.24
5.4.270.1530.04318.88
5.4.260.0070.04019.15
5.4.250.0030.03719.07
5.4.240.1100.05318.89
5.4.230.2000.04018.80
5.4.220.2100.04318.77
5.4.210.2100.04319.12
5.4.200.2000.04318.76
5.4.190.2130.04719.20
5.4.180.2130.03318.76
5.4.170.2070.03718.92
5.4.160.1800.04318.91
5.4.150.2100.05019.06
5.4.140.1070.03316.27
5.4.130.0000.07316.28
5.4.120.0130.03716.43
5.4.110.1100.05716.18
5.4.100.2070.03716.07
5.4.90.2100.03716.38
5.4.80.1800.03316.37
5.4.70.2000.04316.41
5.4.60.1800.03316.41
5.4.50.2000.04016.27
5.4.40.2070.03716.46
5.4.30.2100.03716.20
5.4.20.2000.04016.31
5.4.10.1130.03716.04
5.4.00.0100.03015.90
5.3.290.0000.05014.61
5.3.280.1100.03314.57
5.3.270.1800.04014.70
5.3.260.1830.03314.46
5.3.250.1970.04314.56
5.3.240.2330.03714.46
5.3.230.2330.03714.46
5.3.220.2030.02714.56
5.3.210.1930.04014.50
5.3.200.1800.03314.51
5.3.190.2130.03314.40
5.3.180.1770.03314.50
5.3.170.0230.06314.41
5.3.160.0030.04314.54
5.3.150.1170.03314.35
5.3.140.2100.04714.41
5.3.130.2030.04714.38
5.3.120.2030.04714.42
5.3.110.1800.05014.49
5.3.100.1930.03713.89
5.3.90.2130.03713.93
5.3.80.2070.04013.91
5.3.70.1730.04014.00
5.3.60.2170.03314.05
5.3.50.1030.04313.82
5.3.40.0030.03713.89
5.3.30.0600.07314.00
5.3.20.1800.03313.63
5.3.10.2130.03713.48
5.3.00.1770.03313.52
5.2.170.1730.03311.23
5.2.160.1570.02011.16
5.2.150.1730.03711.16
5.2.140.1630.04011.00
5.2.130.1570.03011.25
5.2.120.1800.03011.15
5.2.110.1630.02310.99
5.2.100.1600.02311.15
5.2.90.1830.03310.95
5.2.80.1800.03710.93
5.2.70.1600.03011.20
5.2.60.1800.03011.07
5.2.50.1670.04310.88
5.2.40.1530.02310.93
5.2.30.1330.03310.91
5.2.20.1170.02710.81
5.2.10.1370.03710.78
5.2.00.1130.02710.66
5.1.60.1400.0309.96
5.1.50.1430.0309.89
5.1.40.1370.02310.20
5.1.30.1430.03010.25
5.1.20.1570.01710.35
5.1.10.1370.03010.01
5.1.00.1600.0179.96
5.0.50.0730.0338.44
5.0.40.0770.0238.38
5.0.30.0600.0308.30
5.0.20.0630.0208.17
5.0.10.0570.0238.25
5.0.00.0730.0238.38
4.4.90.0700.0138.10
4.4.80.0870.0238.10
4.4.70.0870.0208.10
4.4.60.0900.0208.10
4.4.50.0970.0138.10
4.4.40.0800.0338.10
4.4.30.0830.0238.10
4.4.20.0800.0178.10
4.4.10.0700.0138.10
4.4.00.0830.0338.10
4.3.110.0870.0178.10
4.3.100.0900.0238.10
4.3.90.0730.0208.10
4.3.80.0000.0238.10
4.3.70.0000.0178.10
4.3.60.0030.0338.10
4.3.50.0000.0208.10
4.3.40.0070.0478.10
4.3.30.0000.0278.10
4.3.20.0000.0208.10
4.3.10.0030.0338.10
4.3.00.0000.0338.10

preferences:
54.47 ms | 400 KiB | 5 Q