3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'we 1,2000,2000,000,000,000,000,000,000,100.99 wf '; $string = 'we +1200300400500600700800900,99 wf '; //preg_match_all('/([+-])?[\d.,]+([.,]\d{1,2})?/', $string, $matches); //preg_match_all("/[+-]?\d{1,3}[.,]+(\d{3}[.,'])(?R)?/", $string, $matches); //preg_match_all("/[+-]?\d{1,3}[., ]?(?:\d{3}[., ]?)(?R)?/", $string, $matches); preg_match_all("/[+-]?\d{1,3}[., ]?(?:\d{3}[., ]?)(?R)?\d{3}/", $string, $matches); print_r($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.3.60.0040.01116.61
8.3.50.0130.00723.00
8.3.40.0110.00719.00
8.3.30.0090.00618.92
8.3.20.0040.00420.33
8.3.10.0070.00021.85
8.3.00.0080.00019.07
8.2.180.0110.00816.63
8.2.170.0110.00722.96
8.2.160.0030.01020.38
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0060.00326.16
8.2.120.0040.00421.17
8.2.110.0000.00920.50
8.2.100.0060.00619.77
8.2.90.0040.00417.97
8.2.80.0080.00020.52
8.2.70.0060.00317.90
8.2.60.0030.00617.90
8.2.50.0030.00518.10
8.2.40.0030.00620.61
8.2.30.0030.00619.20
8.2.20.0000.00817.89
8.2.10.0000.00718.04
8.2.00.0040.00417.72
8.1.280.0070.00725.92
8.1.270.0040.00418.67
8.1.260.0040.00426.35
8.1.250.0030.00328.09
8.1.240.0040.00423.78
8.1.230.0080.00320.82
8.1.220.0040.00417.74
8.1.210.0070.00818.77
8.1.200.0080.00017.35
8.1.190.0080.00017.36
8.1.180.0040.00418.10
8.1.170.0000.00918.63
8.1.160.0000.00718.79
8.1.150.0050.00320.34
8.1.140.0040.00417.60
8.1.130.0040.00218.02
8.1.120.0040.00417.53
8.1.110.0000.00817.56
8.1.100.0000.00717.59
8.1.90.0070.00017.62
8.1.80.0030.00317.59
8.1.70.0030.00317.53
8.1.60.0030.00617.59
8.1.50.0000.00917.68
8.1.40.0060.00617.48
8.1.30.0030.00617.59
8.1.20.0040.00417.68
8.1.10.0050.00217.55
8.1.00.0100.00017.45
8.0.300.0040.00420.16
8.0.290.0040.00416.75
8.0.280.0080.00018.43
8.0.270.0000.00717.28
8.0.260.0000.00717.26
8.0.250.0070.00016.91
8.0.240.0050.00317.04
8.0.230.0040.00417.03
8.0.220.0030.00316.96
8.0.210.0070.00016.87
8.0.200.0070.00016.96
8.0.190.0030.00616.97
8.0.180.0070.00016.89
8.0.170.0000.00817.00
8.0.160.0000.00717.05
8.0.150.0000.00816.83
8.0.140.0070.00016.83
8.0.130.0060.00013.38
8.0.120.0080.00017.04
8.0.110.0000.00716.95
8.0.100.0000.00816.91
8.0.90.0070.00017.00
8.0.80.0050.01717.03
8.0.70.0030.00517.04
8.0.60.0070.00017.15
8.0.50.0080.00017.04
8.0.30.0090.01017.27
8.0.20.0050.01517.42
8.0.10.0020.00517.14
8.0.00.0100.00716.96
7.4.330.0000.00515.03
7.4.320.0030.00316.67
7.4.300.0000.00616.70
7.4.290.0000.00616.59
7.4.280.0000.00816.74
7.4.270.0020.00516.82
7.4.260.0040.00216.61
7.4.250.0040.00416.62
7.4.240.0020.00616.75
7.4.230.0070.00016.71
7.4.220.0120.00616.86
7.4.210.0090.00916.78
7.4.200.0000.00716.55
7.4.160.0130.00316.38
7.4.150.0070.01117.40
7.4.140.0070.01117.86
7.4.130.0080.01216.52
7.4.120.0100.00816.59
7.4.110.0090.01516.67
7.4.100.0080.01116.83
7.4.90.0130.00316.64
7.4.80.0060.01119.39
7.4.70.0130.00316.50
7.4.60.0150.00316.68
7.4.50.0030.00316.53
7.4.40.0120.00416.59
7.4.30.0140.00916.63
7.4.00.0120.00515.17
7.3.330.0030.00413.14
7.3.320.0000.00513.13
7.3.310.0030.00316.16
7.3.300.0030.00316.34
7.3.290.0100.00716.27
7.3.280.0110.00616.37
7.3.270.0090.00917.40
7.3.260.0100.01016.36
7.3.250.0150.00216.55
7.3.240.0070.01016.30
7.3.230.0080.00816.39
7.3.210.0070.01016.52
7.3.200.0090.00619.39
7.3.190.0030.01316.33
7.3.180.0120.00916.36
7.3.170.0120.00316.75
7.3.160.0060.00916.77
7.3.120.0130.00714.88
7.3.110.0060.01314.93
7.3.100.0090.00615.10
7.3.90.0070.00814.98
7.3.80.0080.00314.81
7.3.70.0060.00614.95
7.3.60.0030.00714.89
7.3.50.0090.00314.89
7.3.40.0030.01314.93
7.3.30.0060.00614.93
7.3.20.0030.00616.77
7.3.10.0060.00316.75
7.3.00.0110.00716.47
7.2.330.0100.00716.51
7.2.320.0120.00616.52
7.2.310.0070.01616.62
7.2.300.0160.00016.64
7.2.290.0150.00916.46
7.2.250.0060.01314.79
7.2.240.0000.01814.89
7.2.230.0100.00714.78
7.2.220.0100.00315.09
7.2.210.0070.00714.96
7.2.200.0060.00915.09
7.2.190.0070.00415.14
7.2.180.0100.00614.76
7.2.170.0040.01114.87
7.2.60.0000.01316.69
7.2.00.0070.00719.62
7.1.330.0070.00715.94
7.1.320.0110.00416.02
7.1.310.0060.00915.75
7.1.300.0060.00615.74
7.1.290.0060.00315.94
7.1.280.0030.00916.00
7.1.270.0000.00915.76
7.1.260.0080.00415.94
7.1.200.0040.01115.86
7.1.100.0700.00716.41
7.1.70.0030.01017.03
7.1.60.0140.01019.57
7.1.50.0140.01116.98
7.1.00.0000.08022.53
7.0.200.0030.00716.54
7.0.140.0070.06322.09
7.0.60.0100.07320.07
7.0.50.0100.05017.87
7.0.40.0030.06720.20
7.0.30.0070.08720.16
7.0.20.0230.08720.10
7.0.10.0000.04720.10
7.0.00.0100.07320.11
5.6.280.0030.07321.01
5.6.210.0030.08720.52
5.6.200.0030.08018.16
5.6.190.0000.04320.58
5.6.180.0230.05020.50
5.6.170.0230.07020.38
5.6.160.0030.09020.43
5.6.150.0130.05718.29
5.6.140.0030.06318.24
5.6.130.0030.08318.19
5.6.120.0070.04021.08
5.6.110.0100.03721.10
5.6.100.0130.07721.13
5.6.90.0070.06320.99
5.6.80.0070.05320.53
5.5.350.4030.04020.36
5.5.340.0170.06718.01
5.5.330.0100.05320.19
5.5.320.0300.05020.30
5.5.310.0370.05720.51
5.5.300.0100.03017.97
5.5.290.0100.08017.95
5.5.280.0130.07720.71
5.5.270.0000.04320.87
5.5.260.0170.07720.73
5.5.250.0070.08020.68
5.5.240.0200.05720.00
5.4.450.3300.03319.52
5.4.440.3000.04019.32
5.4.430.2970.04019.63
5.4.420.3170.04019.29
5.4.410.2900.04019.34
5.4.400.2930.03719.18
5.4.390.3000.04018.89
5.4.380.3030.04319.14
5.4.370.3030.03019.32
5.4.360.3230.04319.14
5.4.350.3170.03318.98
5.4.340.3230.03319.23
5.4.320.2970.03719.25
5.4.310.2930.04019.17
5.4.300.3030.02719.20
5.4.290.2970.03019.20
5.4.280.2930.03319.20
5.4.270.3270.04018.97
5.4.260.3000.03719.26
5.4.250.3000.03319.19
5.4.240.3270.03318.95
5.4.230.2970.03319.31
5.4.220.2870.04019.24
5.4.210.3170.03718.96
5.4.200.3230.02319.00
5.4.190.2930.03719.30
5.4.180.2930.03319.04
5.4.170.3070.04018.87
5.4.160.3400.04319.07
5.4.150.3070.03719.11
5.4.140.2930.03716.32
5.4.130.3230.03316.38
5.4.120.3070.03016.51
5.4.110.3030.03316.25
5.4.100.3170.03716.37
5.4.90.3300.04016.52
5.4.80.3200.03316.39
5.4.70.3000.03016.53
5.4.60.2730.03716.43
5.4.50.2930.03316.43
5.4.40.2900.04016.44
5.4.30.3030.03716.51
5.4.20.3100.03716.51
5.4.10.3100.03316.48
5.4.00.2930.03715.95
5.3.290.2930.03714.77
5.3.280.3100.03714.73
5.3.270.3070.03314.61
5.3.260.3300.03314.61
5.3.250.3270.03314.61
5.3.240.3230.03714.62
5.3.230.3170.04014.60
5.3.220.3230.03714.65
5.3.210.3030.04014.64
5.3.200.3000.03714.62
5.3.190.2930.03714.50
5.3.180.3170.04014.49
5.3.170.3030.03314.57
5.3.160.3200.03714.68
5.3.150.3230.04014.49
5.3.140.3270.03714.53
5.3.130.3230.03314.45
5.3.120.3930.03714.56
5.3.110.3200.03714.57
5.3.100.3370.04714.13
5.3.90.3100.04013.94
5.3.80.3170.04013.93
5.3.70.2930.03713.91
5.3.60.2900.04013.92
5.3.50.3300.03314.03
5.3.40.3070.03314.03
5.3.30.3200.03713.91
5.3.20.3170.04013.70
5.3.10.3200.03013.71
5.3.00.3270.03013.65
5.2.170.2430.03011.07
5.2.160.2430.03711.05
5.2.150.2530.03011.29
5.2.140.2530.02711.16
5.2.130.2100.03011.18
5.2.120.3200.03011.02
5.2.110.2670.03311.02
5.2.100.2730.03011.03
5.2.90.2700.03011.01
5.2.80.2770.03010.97
5.2.70.2230.03011.02
5.2.60.2670.03310.98
5.2.50.2670.03311.09
5.2.40.1700.02310.96
5.2.30.2230.03010.95
5.2.20.2100.02710.89
5.2.10.2170.03010.83
5.2.00.1970.03710.83
5.1.60.2000.02310.83
5.1.50.2370.02710.83
5.1.40.2270.02310.83
5.1.30.2130.02710.83
5.1.20.2230.02710.83
5.1.10.2330.02310.83
5.1.00.2200.03010.83
5.0.50.1300.02710.83
5.0.40.1070.02010.83
5.0.30.1200.03310.83
5.0.20.0830.04310.83
5.0.10.1170.02710.83
5.0.00.1100.03310.83
4.4.90.1000.01310.83
4.4.80.1330.01310.83
4.4.70.1230.02010.83
4.4.60.1230.02010.83
4.4.50.1100.00710.83
4.4.40.1000.02310.83
4.4.30.1230.01310.83
4.4.20.1200.01310.83
4.4.10.0970.01710.83
4.4.00.0970.02710.83
4.3.110.1230.01710.83
4.3.100.1130.01710.83
4.3.90.1270.01310.83
4.3.80.1130.03010.83
4.3.70.1230.01710.83
4.3.60.1230.02310.83
4.3.50.1030.01710.83
4.3.40.0930.02710.83
4.3.30.0600.02710.83
4.3.20.0500.01310.83
4.3.10.0630.01710.83
4.3.00.0530.01310.83

preferences:
69.39 ms | 401 KiB | 5 Q