3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'There is something to type here. This is an example text'; $string = preg_split("/([^\s]*\s+[^\s]*\s+[^\s]*\s+[^\s]*\s+[^\s]*)\s+/", $string, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); print_r($string);

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.0030.01718.92
8.3.30.0070.01018.98
8.3.20.0070.00020.21
8.3.10.0060.00323.65
8.3.00.0090.00019.38
8.2.170.0110.00422.96
8.2.160.0070.00720.31
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00322.38
8.2.110.0110.00021.12
8.2.100.0000.01217.76
8.2.90.0000.00919.28
8.2.80.0030.00617.97
8.2.70.0090.00017.73
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0000.00720.50
8.2.30.0000.00819.25
8.2.20.0040.00417.76
8.2.10.0030.00519.93
8.2.00.0030.00517.72
8.1.270.0040.00423.87
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00623.79
8.1.230.0070.00417.52
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0060.00322.09
8.1.160.0040.00418.76
8.1.150.0060.00318.73
8.1.140.0000.00817.53
8.1.130.0070.00017.89
8.1.120.0040.00417.57
8.1.110.0040.00417.50
8.1.100.0040.00417.54
8.1.90.0040.00417.42
8.1.80.0000.00717.55
8.1.70.0000.00717.55
8.1.60.0000.00817.71
8.1.50.0000.00917.61
8.1.40.0040.00417.63
8.1.30.0000.00817.70
8.1.20.0050.00217.70
8.1.10.0070.00017.61
8.1.00.0000.00717.46
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.44
8.0.270.0040.00417.26
8.0.260.0000.00717.21
8.0.250.0030.00317.09
8.0.240.0000.00916.93
8.0.230.0000.00817.04
8.0.220.0000.00716.93
8.0.210.0000.00716.84
8.0.200.0040.00417.03
8.0.190.0040.00417.02
8.0.180.0070.00016.91
8.0.170.0050.00516.97
8.0.160.0050.00316.92
8.0.150.0040.00416.98
8.0.140.0080.00016.95
8.0.130.0000.00513.38
8.0.120.0000.00916.91
8.0.110.0050.00316.91
8.0.100.0070.00016.99
8.0.90.0020.00517.00
8.0.80.0060.01316.93
8.0.70.0040.00416.82
8.0.60.0050.00217.00
8.0.50.0070.00017.03
8.0.30.0150.00717.22
8.0.20.0120.00717.42
8.0.10.0040.00417.11
8.0.00.0080.01416.96
7.4.330.0030.00315.00
7.4.320.0000.00716.57
7.4.300.0000.00716.66
7.4.290.0060.00316.66
7.4.280.0000.00816.67
7.4.270.0070.00016.75
7.4.260.0030.00316.74
7.4.250.0070.00016.55
7.4.240.0040.00416.64
7.4.230.0000.00716.78
7.4.220.0130.01316.75
7.4.210.0050.00916.66
7.4.200.0000.00816.60
7.4.190.0040.00416.82
7.4.160.0040.01216.53
7.4.150.0160.00417.40
7.4.140.0060.01117.86
7.4.130.0110.00816.60
7.4.120.0050.01316.50
7.4.110.0100.01316.57
7.4.100.0030.01516.58
7.4.90.0160.00016.66
7.4.80.0120.01219.39
7.4.70.0090.00916.58
7.4.60.0040.01416.71
7.4.50.0020.00216.41
7.4.40.0090.00916.66
7.4.30.0080.00816.73
7.4.00.0030.00714.85
7.3.330.0080.00013.20
7.3.320.0030.00313.27
7.3.310.0040.00416.15
7.3.300.0000.00716.29
7.3.290.0120.00316.30
7.3.280.0100.00816.26
7.3.270.0130.00917.40
7.3.260.0180.00616.49
7.3.250.0090.01016.67
7.3.240.0070.01016.25
7.3.230.0060.01216.39
7.3.210.0060.01316.49
7.3.200.0090.00619.39
7.3.190.0110.01216.33
7.3.180.0130.00316.57
7.3.170.0070.01316.27
7.3.160.0090.00616.40
7.3.120.0080.00814.74
7.2.330.0120.00916.76
7.2.320.0070.01116.71
7.2.310.0030.01316.71
7.2.300.0090.00916.68
7.2.290.0130.00916.77
7.2.60.0080.00416.70
7.2.00.0030.00919.33
7.1.200.0000.01215.73
7.1.100.0090.00318.32
7.1.70.0000.00917.38
7.1.60.0140.01119.46
7.1.50.0100.01017.15
7.1.00.0070.07322.35
7.0.200.0040.00416.48
7.0.140.0100.06721.95
7.0.60.0170.05320.04
7.0.50.0070.06717.91
7.0.40.0070.06720.28
7.0.30.0200.03720.32
7.0.20.0200.07720.10
7.0.10.0270.05720.23
7.0.00.0130.04720.08
5.6.280.0100.06721.11
5.6.210.0170.05720.68
5.6.200.0070.06018.27
5.6.190.0070.04020.47
5.6.180.3600.04720.39
5.6.170.0100.05020.50
5.6.160.0100.04720.54
5.6.150.0000.04018.28
5.6.140.0070.04318.16
5.6.130.0100.07718.18
5.6.120.0200.07320.96
5.6.110.0030.04021.00
5.6.100.0030.04020.98
5.6.90.0200.04020.98
5.6.80.0000.04020.34
5.6.70.0300.07020.39
5.5.350.0230.06020.37
5.5.340.0070.08017.98
5.5.330.0070.07320.32
5.5.320.0400.04020.30
5.5.310.0200.04320.41
5.5.300.0030.08717.98
5.5.290.0030.08318.08
5.5.280.0070.05320.97
5.5.270.0070.07720.88
5.5.260.0070.08320.75
5.5.250.0030.07320.68
5.5.240.0370.06720.22
5.4.450.0270.04319.40
5.4.440.0170.04319.38
5.4.430.0230.03319.48
5.4.420.0200.04719.38
5.4.410.0230.07319.38
5.4.400.0230.04019.00
5.4.390.0170.05319.31
5.4.380.0230.04019.07
5.4.370.0170.04018.96
5.4.360.0200.04719.05
5.4.350.0230.05318.85
5.4.340.0270.03019.14
5.4.320.0200.03318.98
5.4.310.0200.06718.99
5.4.300.0230.05719.07
5.4.290.0270.03019.15
5.4.280.0270.03019.08
5.4.270.0200.04719.19
5.4.260.0170.04019.21
5.4.250.0270.07019.15
5.4.240.0270.07319.22
5.4.230.0230.03318.94
5.4.220.0130.04018.98
5.4.210.0270.04018.83
5.4.200.0200.05718.98
5.4.190.0200.03719.02
5.4.180.0130.04019.06
5.4.170.0200.03719.13
5.4.160.0170.05019.07
5.4.150.0230.03719.14
5.4.140.0170.05716.35
5.4.130.0170.04016.50
5.4.120.0100.04316.36
5.4.110.0130.04316.40
5.4.100.0200.03316.45
5.4.90.0200.03316.52
5.4.80.0170.03716.54
5.4.70.0100.04316.54
5.4.60.0130.03716.16
5.4.50.0200.03716.50
5.4.40.0200.03016.50
5.4.30.0230.03016.37
5.4.20.0170.03716.32
5.4.10.0130.04016.21
5.4.00.0170.03715.73
5.3.290.0130.04014.80
5.3.280.0230.03014.57
5.3.270.0370.04714.67
5.3.260.0170.03714.60
5.3.250.0170.03714.56
5.3.240.0270.02714.82
5.3.230.0070.04714.58
5.3.220.0170.03314.70
5.3.210.0200.03314.57
5.3.200.0170.04014.47
5.3.190.0170.03714.48
5.3.180.0200.03314.53
5.3.170.0130.04014.47
5.3.160.0130.04014.63
5.3.150.0230.04314.48
5.3.140.0200.03314.48
5.3.130.0300.04014.76
5.3.120.0170.05014.46
5.3.110.0170.05314.62
5.3.100.0170.03714.04
5.3.90.0430.06014.09
5.3.80.0200.03313.93
5.3.70.0200.04714.06
5.3.60.0170.03313.90
5.3.50.0170.03313.86
5.3.40.0130.04314.05
5.3.30.0300.03714.03
5.3.20.0300.06313.70
5.3.10.0230.06313.69
5.3.00.0230.03713.55
5.2.170.0200.03311.11
5.2.160.0170.05711.15
5.2.150.0230.04011.07
5.2.140.0070.03311.29
5.2.130.0370.03011.02
5.2.120.0130.03311.10
5.2.110.0300.05711.18
5.2.100.0230.04711.02
5.2.90.0200.03311.25
5.2.80.0130.03311.06
5.2.70.0170.04711.15
5.2.60.0200.06011.06
5.2.50.0100.04710.96
5.2.40.0230.02310.92
5.2.30.0170.05710.88
5.2.20.0130.04010.93
5.2.10.0170.02710.96
5.2.00.0130.05710.61
5.1.60.0170.0209.85
5.1.50.0230.04710.00
5.1.40.0130.0479.84
5.1.30.0170.04310.41
5.1.20.0130.03310.29
5.1.10.0130.05310.14
5.1.00.0230.04310.04
5.0.50.0100.0308.43
5.0.40.0070.0238.27
5.0.30.0000.0408.12
5.0.20.0130.0378.18
5.0.10.0200.0278.16
5.0.00.0030.0378.13
4.4.90.0030.0237.91
4.4.80.0000.0277.91
4.4.70.0100.0307.91
4.4.60.0100.0377.91
4.4.50.0030.0337.91
4.4.40.0070.0477.91
4.4.30.0030.0207.91
4.4.20.0070.0377.91
4.4.10.0030.0277.91
4.4.00.0100.0507.91
4.3.110.0030.0207.91
4.3.100.0100.0307.91
4.3.90.0130.0307.91
4.3.80.0070.0237.91
4.3.70.0100.0277.91
4.3.60.0030.0277.91
4.3.50.0070.0337.91
4.3.40.0130.0537.91
4.3.30.0070.0337.91
4.3.20.0000.0177.91
4.3.10.0000.0177.91
4.3.00.0000.0177.91

preferences:
44.33 ms | 400 KiB | 5 Q