3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '1.200.009z'; //$string = 'we 100,200,300,400,500,600,700,800,900 wf '; //$string = 'we 100,200,300,400,500,600,700,800,900.9 wf '; //$string = 'we +1200300400500600700800900.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)?/", $string, $matches); //preg_match_all('/[+-]?\d{1,3}(?:,?\d{3})*(?:\.\d{2})?/', $string, $matches); preg_match_all('/(^|\D)\d{1,3}(?:[,. ]?\d{3})*(?:([.,])\d{1,2})?(?:$|\D)/', $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.0090.01216.63
8.3.50.0110.00822.97
8.3.40.0120.00318.98
8.3.30.0090.00618.63
8.3.20.0030.00720.27
8.3.10.0040.00421.85
8.3.00.0000.00719.11
8.2.180.0120.00618.66
8.2.170.0140.00022.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.00
8.2.110.0090.00922.07
8.2.100.0040.00817.84
8.2.90.0030.00517.69
8.2.80.0050.00319.28
8.2.70.0040.00417.80
8.2.60.0090.00317.91
8.2.50.0050.00318.10
8.2.40.0000.00820.60
8.2.30.0000.00719.27
8.2.20.0080.00017.90
8.2.10.0070.00018.00
8.2.00.0060.00317.94
8.1.280.0160.00325.92
8.1.270.0120.00318.83
8.1.260.0100.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.80
8.1.230.0040.00720.96
8.1.220.0040.00417.75
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0040.00418.63
8.1.160.0000.00718.79
8.1.150.0020.00520.29
8.1.140.0040.00417.54
8.1.130.0000.00717.97
8.1.120.0040.00417.56
8.1.110.0040.00417.59
8.1.100.0080.00017.38
8.1.90.0040.00417.43
8.1.80.0000.00817.56
8.1.70.0050.00217.50
8.1.60.0000.00917.69
8.1.50.0030.00517.62
8.1.40.0050.00317.52
8.1.30.0040.00417.59
8.1.20.0030.00617.75
8.1.10.0000.00717.62
8.1.00.0030.00517.51
8.0.300.0050.00320.21
8.0.290.0030.00616.88
8.0.280.0000.00718.41
8.0.270.0040.00417.22
8.0.260.0030.00317.35
8.0.250.0040.00417.07
8.0.240.0000.00717.07
8.0.230.0060.00317.09
8.0.220.0000.00717.03
8.0.210.0040.00416.89
8.0.200.0000.00716.91
8.0.190.0030.00617.01
8.0.180.0000.00716.88
8.0.170.0030.00616.90
8.0.160.0040.00416.96
8.0.150.0040.00416.89
8.0.140.0050.00316.89
8.0.130.0030.00313.45
8.0.120.0040.00417.04
8.0.110.0040.00416.99
8.0.100.0040.00416.98
8.0.90.0000.00716.88
8.0.80.0160.00616.93
8.0.70.0050.00317.02
8.0.60.0040.00416.93
8.0.50.0040.00416.82
8.0.30.0170.00217.30
8.0.20.0060.01217.43
8.0.10.0030.00517.28
8.0.00.0120.00916.87
7.4.330.0000.00515.12
7.4.320.0030.00316.71
7.4.300.0000.00716.70
7.4.290.0030.00316.90
7.4.280.0040.00416.72
7.4.270.0000.00716.87
7.4.260.0050.00516.71
7.4.250.0000.00916.58
7.4.240.0020.00516.73
7.4.230.0000.00616.61
7.4.220.0140.00316.86
7.4.210.0150.00016.60
7.4.200.0040.00416.75
7.4.160.0170.00016.60
7.4.150.0060.01217.40
7.4.140.0100.01217.86
7.4.130.0050.01316.67
7.4.120.0060.01116.55
7.4.110.0070.01216.67
7.4.100.0150.00916.59
7.4.90.0130.00416.46
7.4.80.0070.01719.39
7.4.70.0060.01316.66
7.4.60.0150.00316.63
7.4.50.0000.00616.70
7.4.40.0200.01016.53
7.4.30.0110.00716.75
7.4.00.0080.00615.19
7.3.330.0000.00513.23
7.3.320.0020.00213.12
7.3.310.0070.00016.33
7.3.300.0070.00016.28
7.3.290.0060.01116.29
7.3.280.0070.01016.32
7.3.270.0260.00717.40
7.3.260.0210.00316.77
7.3.250.0110.00616.58
7.3.240.0130.00316.50
7.3.230.0070.01016.39
7.3.210.0060.01216.30
7.3.200.0090.00619.39
7.3.190.0150.00616.32
7.3.180.0090.00616.71
7.3.170.0100.00616.27
7.3.160.0060.00916.34
7.3.120.0080.00814.88
7.3.110.0100.00714.49
7.3.100.0100.00714.64
7.3.90.0040.01414.85
7.3.80.0030.01014.46
7.3.70.0030.01314.92
7.3.60.0040.00714.92
7.3.50.0030.01114.92
7.3.40.0120.00314.89
7.3.30.0140.00014.68
7.3.20.0060.00616.49
7.3.10.0030.01216.75
7.3.00.0040.01216.75
7.2.330.0100.00716.54
7.2.320.0060.01316.42
7.2.310.0070.01116.57
7.2.300.0080.00816.52
7.2.290.0060.01116.56
7.2.250.0000.01815.12
7.2.240.0030.01514.94
7.2.230.0030.01015.02
7.2.220.0050.00515.15
7.2.210.0120.00315.04
7.2.200.0000.01314.82
7.2.190.0000.01014.96
7.2.180.0040.01414.85
7.2.170.0080.00414.82
7.2.60.0100.00716.73
7.2.00.0030.00719.35
7.1.330.0110.00316.00
7.1.320.0030.01015.91
7.1.310.0030.01016.16
7.1.300.0030.00715.95
7.1.290.0100.00615.54
7.1.280.0000.01415.84
7.1.270.0110.00315.95
7.1.260.0000.00915.88
7.1.200.0030.01015.86
7.1.100.0080.00817.80
7.1.70.0050.00217.30
7.1.60.0100.01319.57
7.1.50.0060.01517.05
7.1.00.0030.07722.33
7.0.200.0080.00015.07
7.0.140.0000.08021.99
7.0.100.0030.08319.91
7.0.90.0270.08319.86
7.0.80.0330.08019.96
7.0.70.0270.08019.80
7.0.60.0030.07719.86
7.0.50.0030.05720.36
7.0.40.0070.05020.08
7.0.30.0070.08320.18
7.0.20.0100.06320.11
7.0.10.0100.07320.13
7.0.00.0100.07720.12
5.6.280.0070.07020.89
5.6.250.0170.07020.58
5.6.240.0000.05720.60
5.6.230.0030.08720.66
5.6.220.0070.06020.48
5.6.210.0030.05020.66
5.6.200.0230.07321.04
5.6.190.0070.08320.97
5.6.180.0030.08721.16
5.6.170.0070.06721.04
5.6.160.0030.08021.02
5.6.150.0170.05720.93
5.6.140.0170.08020.97
5.6.130.0070.08321.01
5.6.120.0170.07721.08
5.6.110.0130.07321.07
5.6.100.0070.08321.06
5.6.90.0130.08021.04
5.6.80.0000.08320.33
5.6.70.0170.07320.45
5.6.60.0030.07720.41
5.6.50.0070.07720.32
5.6.40.0170.06320.49
5.6.30.0070.08020.46
5.6.20.0130.06720.33
5.6.10.0130.07020.46
5.6.00.0100.07020.44
5.5.380.0100.06320.33
5.5.370.0070.08320.39
5.5.360.0170.06720.33
5.5.350.0130.07720.41
5.5.340.0100.07720.91
5.5.330.0100.08320.88
5.5.320.0200.07020.73
5.5.310.0070.08020.77
5.5.300.0030.05020.75
5.5.290.0130.04320.77
5.5.280.0130.04320.82
5.5.270.0000.08320.86
5.5.260.0130.07020.88
5.5.250.0100.04320.61
5.5.240.0070.07720.21
5.5.230.0100.05020.13
5.5.220.0070.08720.11
5.5.210.0100.07720.01
5.5.200.0170.03720.26
5.5.190.0070.08020.21
5.5.180.0030.06320.28
5.5.160.0100.07320.23
5.5.150.0030.05020.27
5.5.140.0100.07320.14
5.5.130.0030.05320.27
5.5.120.0030.08720.22
5.5.110.0170.06720.12
5.5.100.0100.08020.07
5.5.90.0100.06720.15
5.5.80.0070.07320.10
5.5.70.0100.06320.08
5.5.60.0100.06719.93
5.5.50.0170.04320.08
5.5.40.0130.07020.09
5.5.30.0030.07019.99
5.5.20.0030.08319.98
5.5.10.0130.07019.96
5.5.00.0100.07320.10
5.4.450.0130.07719.45
5.4.440.0100.07319.56
5.4.430.0100.07719.36
5.4.420.0070.08019.37
5.4.410.0130.06719.38
5.4.400.0070.07319.19
5.4.390.0070.08019.11
5.4.380.0100.06019.04
5.4.370.0030.08319.11
5.4.360.0100.07019.16
5.4.350.0130.07019.14
5.4.340.0100.05019.03
5.4.320.0070.07319.16
5.4.310.0130.04719.09
5.4.300.0100.07019.13
5.4.290.0200.06019.23
5.4.280.0070.08019.04
5.4.270.0000.06719.04
5.4.260.0100.07319.13
5.4.250.0030.05319.03
5.4.240.0200.03318.84
5.4.230.0100.06019.16
5.4.220.0070.04319.00
5.4.210.0130.07319.03
5.4.200.0130.06318.94
5.4.190.0070.05719.11
5.4.180.0070.07319.04
5.4.170.0070.04319.22
5.4.160.0170.05318.84
5.4.150.0070.08019.02
5.4.140.0130.05716.41
5.4.130.0130.04316.51
5.4.120.0070.06016.24
5.4.110.0030.06016.43
5.4.100.0100.06016.46
5.4.90.0100.07316.39
5.4.80.0070.03716.42
5.4.70.0030.06716.55
5.4.60.0130.06716.48
5.4.50.0030.07316.44
5.4.40.0030.07716.50
5.4.30.0130.06716.51
5.4.20.0030.07316.39
5.4.10.0070.04716.29
5.4.00.0100.05015.86
5.3.290.0030.08014.59
5.3.280.0030.06014.60
5.3.270.0130.03714.52
5.3.260.0070.07714.63
5.3.250.0100.06714.60
5.3.240.0030.08014.58
5.3.230.0070.05014.63
5.3.220.0100.03714.62
5.3.210.0070.06714.57
5.3.200.0100.06714.50
5.3.190.0070.05714.58
5.3.180.0100.07314.53
5.3.170.0000.08314.54
5.3.160.0070.07314.67
5.3.150.0070.07314.48
5.3.140.0070.07314.48
5.3.130.0070.05314.56
5.3.120.0100.04014.55
5.3.110.0100.07314.52
5.3.100.0100.07014.08
5.3.90.0070.07714.08
5.3.80.0030.05714.07
5.3.70.0070.03713.90
5.3.60.0070.03713.93
5.3.50.0130.07314.03
5.3.40.0030.08013.85
5.3.30.0070.04713.83
5.3.20.0100.07013.78
5.3.10.0170.06013.63
5.3.00.0070.04713.52
5.2.170.0030.06711.20
5.2.160.0030.06311.19
5.2.150.0100.05711.00
5.2.140.0030.06311.06
5.2.130.0070.05011.20
5.2.120.0070.05311.02
5.2.110.0070.06011.00
5.2.100.0070.05711.03
5.2.90.0070.06011.12
5.2.80.0000.05311.15
5.2.70.0070.06011.00
5.2.60.0100.05011.14
5.2.50.0130.05010.93
5.2.40.0100.05711.05
5.2.30.0070.06011.01
5.2.20.0030.06011.03
5.2.10.0100.04010.79
5.2.00.0070.05310.77
5.1.60.0130.0279.82
5.1.50.0070.04710.04
5.1.40.0030.0479.96
5.1.30.0070.05710.25
5.1.20.0030.04010.41
5.1.10.0070.06010.07
5.1.00.0030.05310.06
5.0.50.0030.0438.55
5.0.40.0030.0378.48
5.0.30.0070.0508.48
5.0.20.0030.0438.48
5.0.10.0000.0408.48
5.0.00.0070.0578.48
4.4.90.0030.0378.48
4.4.80.0000.0208.48
4.4.70.0030.0378.48
4.4.60.0000.0378.48
4.4.50.0030.0208.48
4.4.40.0000.0578.48
4.4.30.0000.0378.48
4.4.20.0100.0238.48
4.4.10.0000.0378.48
4.4.00.0000.0578.48
4.3.110.0100.0238.48
4.3.100.0000.0208.48
4.3.90.0030.0308.48
4.3.80.0000.0308.48
4.3.70.0030.0278.48
4.3.60.0070.0278.48
4.3.50.0070.0108.48
4.3.40.0030.0508.48
4.3.30.0030.0308.48
4.3.20.0000.0338.48
4.3.10.0000.0378.48
4.3.00.0030.0338.48

preferences:
57.38 ms | 401 KiB | 5 Q