3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "11 a b 13 begin t 899 y 50 f end 91 h"; var_export(preg_match_all('~(?:begin|\G(?!^))(?:(?!end)\D)+\K\d+~s', $text, $out) ? $out[0] : 'no matches');

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.0070.01420.08
8.4.150.0020.00014.05
8.4.140.0130.00717.46
8.4.130.0090.01018.84
8.4.120.0150.00518.71
8.4.110.0140.00818.72
8.4.100.0130.00818.04
8.4.90.0110.01020.91
8.4.80.0120.00622.39
8.4.70.0140.00620.75
8.4.60.0070.00320.72
8.4.50.0130.00719.41
8.4.40.0160.00317.96
8.4.30.0100.01017.94
8.4.20.0100.01019.64
8.4.10.0030.00719.55
8.3.270.0140.00616.73
8.3.260.0110.00916.61
8.3.250.0100.01017.24
8.3.240.0090.00917.02
8.3.230.0110.00816.68
8.3.220.0120.00718.76
8.3.210.0110.00818.27
8.3.200.0040.00516.85
8.3.190.0090.01018.51
8.3.180.0100.00818.92
8.3.170.0120.00617.16
8.3.160.0040.00418.28
8.3.150.0120.00616.59
8.3.140.0000.00817.01
8.3.130.0000.00818.47
8.3.120.0030.00718.81
8.3.110.0080.00820.94
8.3.100.0080.00024.06
8.3.90.0050.00326.77
8.3.80.0000.00916.70
8.3.70.0120.00316.58
8.3.60.0090.00618.11
8.3.50.0080.00518.04
8.3.40.0090.00918.83
8.3.30.0140.00418.79
8.3.20.0080.00018.98
8.3.10.0040.00421.57
8.3.00.0040.00423.66
8.2.290.0120.00816.98
8.2.280.0130.00518.38
8.2.270.0070.01117.21
8.2.260.0040.00416.71
8.2.250.0050.00316.97
8.2.240.0080.00819.05
8.2.230.0060.00322.58
8.2.220.0000.00837.54
8.2.210.0000.00826.77
8.2.200.0000.00817.13
8.2.190.0140.00716.75
8.2.180.0040.01125.92
8.2.170.0120.00618.92
8.2.160.0170.00322.96
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.77
8.2.110.0030.00721.17
8.2.100.0060.00618.03
8.2.90.0090.00019.09
8.2.80.0030.00517.97
8.2.70.0080.00017.88
8.2.60.0030.00617.93
8.2.50.0000.00817.88
8.2.40.0040.00419.31
8.2.30.0030.00520.54
8.2.20.0040.00418.12
8.2.10.0000.00818.08
8.2.00.0030.00319.37
8.1.330.0140.00916.28
8.1.320.0110.00917.97
8.1.310.0040.00418.48
8.1.300.0080.00019.90
8.1.290.0060.00330.84
8.1.280.0100.01325.92
8.1.270.0050.00323.92
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.20
8.1.230.0080.00420.35
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0000.01118.10
8.1.170.0040.00418.84
8.1.160.0000.00818.80
8.1.150.0000.00718.87
8.1.140.0000.00818.99
8.1.130.0000.00718.96
8.1.120.0030.00517.56
8.1.110.0000.00817.55
8.1.100.0100.00017.50
8.1.90.0050.00317.58
8.1.80.0040.00417.42
8.1.70.0030.00617.45
8.1.60.0000.00817.68
8.1.50.0060.00317.49
8.1.40.0040.00417.61
8.1.30.0030.00917.65
8.1.20.0030.00617.62
8.1.10.0000.00817.71
8.1.00.0000.00717.58
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.40
8.0.270.0070.00017.13
8.0.260.0030.00317.09
8.0.250.0050.00217.02
8.0.240.0080.00017.04
8.0.230.0040.00417.05
8.0.220.0000.00716.88
8.0.210.0000.00716.84
8.0.200.0040.00416.87
8.0.190.0030.00717.04
8.0.180.0000.00816.93
8.0.170.0090.00017.06
8.0.160.0080.00017.04
8.0.150.0060.00616.80
8.0.140.0030.00616.96
8.0.130.0030.00313.41
8.0.120.0040.00416.91
8.0.110.0030.00716.86
8.0.100.0040.00416.90
8.0.90.0000.00716.75
8.0.80.0130.00616.96
8.0.70.0040.00417.08
8.0.60.0080.00016.79
8.0.50.0020.00516.96
8.0.30.0110.01017.20
8.0.20.0100.00817.40
8.0.10.0040.00417.15
8.0.00.0110.00716.67
7.4.330.0020.00215.55
7.4.320.0030.00316.73
7.4.300.0040.00416.79
7.4.290.0030.00316.72
7.4.280.0060.00316.75
7.4.270.0000.00716.72
7.4.260.0070.00016.68
7.4.250.0040.00416.71
7.4.240.0070.00016.58
7.4.230.0030.00316.48
7.4.220.0040.00416.77
7.4.210.0090.00716.68
7.4.200.0040.00416.83
7.4.160.0100.00516.65
7.4.140.0110.00817.86
7.4.130.0080.01216.63
7.4.120.0090.00816.62
7.4.110.0080.00816.57
7.4.100.0030.01716.69
7.4.90.0200.00316.61
7.4.80.0120.00619.39
7.4.70.0060.00916.71
7.4.60.0070.01016.32
7.4.50.0070.01016.36
7.4.40.0210.00416.65
7.4.10.0060.01215.01
7.4.00.0080.00915.05
7.3.330.0000.00513.32
7.3.320.0050.00013.10
7.3.310.0030.00316.48
7.3.300.0000.00716.37
7.3.290.0000.00716.39
7.3.280.0100.00816.33
7.3.260.0110.00716.50
7.3.240.0110.01016.68
7.3.230.0180.00016.28
7.3.210.0040.01216.52
7.3.200.0100.01116.59
7.3.190.0040.01216.46
7.3.180.0080.00816.35
7.3.170.0090.00916.60
7.3.160.0040.01216.41
7.3.130.0110.00414.81
7.3.120.0050.01415.11
7.3.110.0090.00914.87
7.3.100.0100.00214.69
7.3.90.0090.00314.94
7.3.80.0080.00615.05
7.3.70.0110.00414.97
7.3.60.0090.00514.93
7.3.50.0090.00614.78
7.3.40.0060.00914.84
7.3.30.0060.00414.77
7.3.20.0070.00816.73
7.3.10.0080.00716.73
7.3.00.0070.00416.69
7.2.330.0030.01416.68
7.2.320.0100.01016.80
7.2.310.0070.01016.68
7.2.300.0130.00316.73
7.2.290.0210.00016.60
7.2.260.0180.00015.09
7.2.250.0060.01214.97
7.2.240.0060.01114.90
7.2.230.0040.01015.10
7.2.220.0080.00415.06
7.2.210.0070.00615.00
7.2.200.0050.00714.92
7.2.190.0070.00514.98
7.2.180.0070.00515.17
7.2.170.0040.01014.99
7.2.160.0110.00314.96
7.2.150.0100.00616.63
7.2.140.0040.01116.70
7.2.130.0060.00916.82
7.2.120.0060.00816.79
7.2.110.0070.00716.91
7.2.100.0000.01817.00
7.2.90.0030.00616.82
7.2.80.0590.00915.64
7.2.70.0900.00716.04
7.2.60.0580.00815.83
7.2.50.0620.00315.78
7.2.40.0700.00915.86
7.2.30.0730.01016.04
7.2.20.0860.00416.03
7.2.10.1090.00316.02
7.2.00.0440.00816.11
7.1.330.0050.01115.84
7.1.320.0060.00816.02
7.1.310.0070.00715.99
7.1.300.0060.00815.79
7.1.290.0040.00615.81
7.1.280.0050.00815.85
7.1.270.0070.00815.80
7.1.260.0050.00715.83
7.1.250.0040.00816.00
7.1.240.0070.00715.89
7.1.230.0060.01215.89
7.1.220.0040.01515.98
7.1.210.0100.00315.96
7.1.200.0040.01016.01
7.1.190.0900.00814.92
7.1.180.0480.01014.78
7.1.170.0720.00714.93
7.1.160.0760.00415.05
7.1.150.0640.01115.04
7.1.140.0610.01114.94
7.1.130.0490.00314.88
7.1.120.0680.01015.01
7.1.110.0880.00614.92
7.1.100.0450.00814.99
7.1.90.0680.00314.85
7.1.80.0820.00315.02
7.1.70.0610.01214.97
7.1.60.0750.01023.83
7.1.50.1180.01223.84
7.1.40.1240.00923.99
7.1.30.1060.01023.83
7.1.20.1170.01223.62
7.1.10.1210.01214.95
7.1.00.0610.00715.02
7.0.330.0030.01215.46
7.0.320.0110.00415.28
7.0.310.0080.00315.53
7.0.300.0060.00615.52
7.0.290.0090.00615.61
7.0.280.0040.00815.48
7.0.270.0000.01415.36
7.0.260.0090.00615.55
7.0.250.0110.00315.50
7.0.240.0000.00815.62
7.0.230.0080.00315.60
7.0.220.0000.01415.28
7.0.210.0030.00515.56
7.0.200.0060.00915.60
7.0.190.0090.00015.49
7.0.180.0000.01215.44
7.0.170.0040.00815.65
7.0.160.0030.00615.52
7.0.150.0080.00015.40
7.0.140.0100.00315.58
7.0.130.0070.00715.23
7.0.120.0090.00615.65
7.0.110.0070.00715.39
7.0.100.0140.00015.21
7.0.90.0000.01415.23
7.0.80.0090.00615.43
7.0.70.0100.00315.64
7.0.60.0030.00615.59
7.0.50.0080.00315.29
7.0.40.0000.00913.61
7.0.30.0130.00013.40
7.0.20.0060.00613.79
7.0.10.0030.01013.51
7.0.00.0070.01013.57
5.6.400.0000.01114.08
5.6.390.0090.00614.33
5.6.380.0120.00314.52
5.6.370.0030.01114.28
5.6.360.0060.00614.40
5.6.350.0030.01014.70
5.6.340.0070.01014.39
5.6.330.0040.00714.18
5.6.320.0090.00014.32
5.6.310.0040.01114.61
5.6.300.0090.00314.18
5.6.290.0160.00014.20
5.6.280.0090.00613.95
5.6.270.0030.01014.50
5.6.260.0070.00714.25
5.6.250.0040.00714.32
5.6.240.0030.01414.43
5.6.230.0090.00614.15
5.6.220.0000.01314.30
5.6.210.0070.01114.34
5.6.200.0040.01114.41
5.6.190.0090.00614.27
5.6.180.0070.01014.11
5.6.170.0040.00814.55
5.6.160.0000.01314.54
5.6.150.0060.00314.43
5.6.140.0070.00714.23
5.6.130.0000.01714.35
5.6.120.0040.01214.17
5.6.110.0000.01414.36
5.6.100.0060.00614.23
5.6.90.0090.00314.16
5.6.80.0140.00014.48
5.6.70.0070.00714.16
5.6.60.0130.00314.34
5.6.50.0070.01014.31
5.6.40.0000.01514.40
5.6.30.0060.00914.10
5.6.20.0060.00914.14
5.6.10.0110.00314.16
5.6.00.0030.01014.25

preferences:
43.87 ms | 403 KiB | 5 Q