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.60.0170.03718.18
8.3.50.0150.03422.02
8.3.40.0070.03318.79
8.3.30.0070.03119.05
8.3.20.0060.01620.19
8.3.10.0030.01721.77
8.3.00.0060.01619.51
8.2.180.0100.02918.29
8.2.170.0100.03722.96
8.2.160.0040.03519.30
8.2.150.0040.01824.18
8.2.140.0000.02124.66
8.2.130.0070.01426.16
8.2.120.0100.01319.48
8.2.110.0060.02320.35
8.2.100.0100.02218.03
8.2.90.0030.02919.04
8.2.80.0070.02017.97
8.2.70.0090.01817.88
8.2.60.0030.02817.93
8.2.50.0100.02318.10
8.2.40.0030.02320.50
8.2.30.0030.02318.21
8.2.20.0060.01917.83
8.2.10.0030.02617.98
8.2.00.0030.02317.91
8.1.280.0190.03225.92
8.1.270.0100.01320.52
8.1.260.0090.01226.35
8.1.250.0070.01428.09
8.1.240.0070.02122.68
8.1.230.0030.02719.00
8.1.220.0000.03117.74
8.1.210.0040.02218.77
8.1.200.0070.02317.23
8.1.190.0030.03417.25
8.1.180.0030.02618.10
8.1.170.0000.03818.64
8.1.160.0030.02418.96
8.1.150.0060.02218.93
8.1.140.0070.01817.50
8.1.130.0060.01917.93
8.1.120.0030.02617.59
8.1.110.0000.03117.54
8.1.100.0070.02317.51
8.1.90.0030.02217.44
8.1.80.0000.02717.40
8.1.70.0000.02817.53
8.1.60.0030.03317.57
8.1.50.0000.03317.56
8.1.40.0070.02717.66
8.1.30.0030.03117.82
8.1.20.0060.02617.66
8.1.10.0030.02917.75
8.1.00.0000.04217.68
8.0.300.0030.02318.77
8.0.290.0030.02316.88
8.0.280.0060.01918.48
8.0.270.0000.03017.34
8.0.260.0030.02417.33
8.0.250.0030.02317.15
8.0.240.0000.02517.07
8.0.230.0060.01917.13
8.0.220.0000.02516.91
8.0.210.0030.02317.05
8.0.200.0000.02917.00
8.0.190.0030.02917.04
8.0.180.0000.03217.05
8.0.170.0070.02717.09
8.0.160.0000.03416.95
8.0.150.0030.02816.98
8.0.140.0040.02816.92
8.0.130.0060.02413.54
8.0.120.0030.03016.91
8.0.110.0070.02517.07
8.0.100.0070.02516.93
8.0.90.0030.03017.04
8.0.80.0130.05117.01
8.0.70.0040.02817.07
8.0.60.0000.03216.95
8.0.50.0000.03317.16
8.0.30.0100.05317.04
8.0.20.0210.03717.40
8.0.10.0070.02717.05
8.0.00.0140.05116.96
7.4.330.0030.02315.15
7.4.320.0000.02816.76
7.4.300.0060.01916.65
7.4.290.0070.02416.65
7.4.280.0030.02916.65
7.4.270.0060.02616.57
7.4.260.0040.02816.65
7.4.250.0070.02816.53
7.4.240.0030.03016.68
7.4.230.0000.03116.66
7.4.220.0030.05816.73
7.4.210.0100.03916.87
7.4.200.0030.03216.75
7.4.160.0100.04816.37
7.4.150.0120.04117.40
7.4.140.0100.04717.86
7.4.130.0110.04416.69
7.4.120.0100.04816.60
7.4.110.0060.05516.45
7.4.100.0130.06716.68
7.4.90.0090.04716.54
7.4.80.0220.06619.39
7.4.70.0030.05316.53
7.4.60.0100.04516.69
7.4.50.0000.02416.37
7.4.40.0120.04516.70
7.4.30.0170.04716.54
7.4.00.0060.04415.06
7.3.330.0070.02613.32
7.3.320.0140.02813.32
7.3.310.0000.03216.42
7.3.300.0000.03116.48
7.3.290.0140.04316.50
7.3.280.0130.05016.46
7.3.270.0120.04517.40
7.3.260.0070.07116.73
7.3.250.0070.05316.39
7.3.240.0170.04816.45
7.3.230.0130.06816.77
7.3.210.0070.05016.64
7.3.200.0030.05419.39
7.3.190.0070.04916.39
7.3.180.0100.04516.37
7.3.170.0190.04516.58
7.3.160.0130.04516.70
7.3.120.0000.04815.18
7.3.110.0060.03814.74
7.3.100.0130.03214.75
7.3.90.0000.03715.06
7.3.80.0070.03115.19
7.3.70.0000.04114.96
7.3.60.0060.03215.08
7.3.50.0040.03614.99
7.3.40.0070.03314.93
7.3.30.0030.03615.08
7.3.20.0070.03616.71
7.3.10.0070.03416.86
7.3.00.0100.03316.87
7.2.330.0030.05216.85
7.2.320.0170.05916.77
7.2.310.0030.05216.82
7.2.300.0000.05916.79
7.2.290.0120.04716.80
7.2.250.0070.05415.10
7.2.240.0030.04115.26
7.2.230.0100.02915.21
7.2.220.0000.04015.17
7.2.210.0030.03715.21
7.2.200.0100.03015.00
7.2.190.0100.02315.18
7.2.180.0030.03915.23
7.2.170.0000.03715.18
7.2.00.0030.03819.31
7.1.330.0070.03616.22
7.1.320.0060.03515.82
7.1.310.0060.03616.16
7.1.300.0000.04316.05
7.1.290.0060.03215.95
7.1.280.0000.04116.02
7.1.270.0030.03716.00
7.1.260.0100.03416.21
7.1.100.0070.03918.61
7.1.70.0000.05817.11
7.1.60.0130.06619.50
7.1.50.0100.06817.19
7.1.00.0030.11722.45
7.0.200.0770.03414.80
7.0.140.0030.09021.96
7.0.60.0030.12020.06
7.0.50.0000.12717.92
7.0.40.0100.11320.14
7.0.30.0300.10720.11
7.0.20.0230.09320.12
7.0.10.0270.10320.18
7.0.00.0030.13020.21
5.6.280.0100.48320.89
5.6.210.0130.34320.47
5.6.200.0000.34718.23
5.6.190.0070.39020.43
5.6.180.0170.34320.25
5.6.170.0200.40020.53
5.6.160.0200.39020.55
5.6.150.0130.36718.23
5.6.140.0100.38318.13
5.6.130.0130.38018.22
5.6.120.0130.35320.96
5.6.110.0030.40021.11
5.6.100.0070.38020.98
5.6.90.0100.39021.10
5.6.80.0070.39020.40
5.6.70.0270.39320.47
5.5.350.0200.43020.38
5.5.340.0070.39317.93
5.5.330.0070.39320.34
5.5.320.0030.36320.21
5.5.310.0300.31720.38
5.5.300.0070.37317.93
5.5.290.0100.46018.00
5.5.280.0030.32320.88
5.5.270.0130.39020.75
5.5.260.0100.38020.64
5.5.250.0030.39720.58
5.5.240.0070.32320.15
5.4.450.0430.27319.38
5.4.440.0030.37019.43
5.4.430.0300.31719.41
5.4.420.0170.30019.42
5.4.410.0130.29719.27
5.4.400.0330.47718.78
5.4.390.1730.47018.69
5.4.380.0300.49318.47
5.4.370.0330.52318.53
5.4.360.0200.55018.63
5.4.350.0330.47718.47
5.4.340.0300.50018.59
5.4.320.0400.48318.78
5.4.310.2700.54018.59
5.4.300.0230.55018.66
5.4.290.2300.51018.69
5.4.280.0230.48018.62
5.4.270.0270.49718.57
5.4.260.0400.52318.57
5.4.250.1570.56018.49
5.4.240.0200.50318.68
5.4.230.0230.53718.72
5.4.220.0200.51318.77
5.4.210.0300.46018.56
5.4.200.0230.50016.58
5.4.190.0330.49718.72
5.4.180.0330.48318.65
5.4.170.0330.50018.56
5.4.160.0330.47718.43
5.4.150.0300.60018.44
5.4.140.0170.49716.11
5.4.130.0570.54016.27
5.4.120.0230.66016.25
5.4.110.0330.60016.09
5.4.100.0300.51316.32
5.4.90.0400.52716.14
5.4.80.0170.53016.19
5.4.70.0200.48316.05
5.4.60.1400.57316.30
5.4.50.0270.57716.04
5.4.40.2700.63016.24
5.4.30.0430.72716.23
5.4.20.0970.50316.10
5.4.10.0230.35016.42

preferences:
68 ms | 401 KiB | 5 Q