3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '1.20099z'; //$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{1,3}(?:[,. ]?\d{3})*(?:([.,])\d{1,2})?.*$/', $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.0130.00318.30
8.3.50.0100.00922.85
8.3.40.0070.00718.73
8.3.30.0110.00419.09
8.3.20.0030.00620.16
8.3.10.0040.00421.90
8.3.00.0040.00419.14
8.2.180.0120.00316.63
8.2.170.0040.01122.96
8.2.160.0140.00020.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00319.95
8.2.110.0030.00620.39
8.2.100.0040.00817.91
8.2.90.0000.00818.03
8.2.80.0000.00819.33
8.2.70.0030.00517.80
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0040.00420.55
8.2.30.0030.00619.20
8.2.20.0030.00517.96
8.2.10.0030.00518.16
8.2.00.0050.00217.72
8.1.280.0140.00425.92
8.1.270.0080.00018.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00320.64
8.1.230.0090.00322.79
8.1.220.0040.00417.74
8.1.210.0060.00318.83
8.1.200.0030.00617.48
8.1.190.0100.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.57
8.1.160.0040.00418.80
8.1.150.0020.00520.34
8.1.140.0000.00817.66
8.1.130.0030.00317.93
8.1.120.0050.00217.54
8.1.110.0040.00417.61
8.1.100.0000.00717.46
8.1.90.0000.00717.57
8.1.80.0050.00217.53
8.1.70.0030.00317.45
8.1.60.0030.00617.58
8.1.50.0030.00517.52
8.1.40.0040.00417.49
8.1.30.0060.00317.75
8.1.20.0000.00817.78
8.1.10.0000.00717.62
8.1.00.0030.00517.60
8.0.300.0000.00722.03
8.0.290.0030.00516.88
8.0.280.0000.00718.41
8.0.270.0030.00317.22
8.0.260.0000.00617.14
8.0.250.0040.00417.04
8.0.240.0000.00717.07
8.0.230.0030.00717.08
8.0.220.0000.00617.08
8.0.210.0000.00716.96
8.0.200.0040.00417.05
8.0.190.0060.00316.98
8.0.180.0080.00016.96
8.0.170.0000.00917.06
8.0.160.0000.00716.96
8.0.150.0040.00416.93
8.0.140.0050.00216.90
8.0.130.0000.00613.42
8.0.120.0040.00416.92
8.0.110.0000.00817.03
8.0.100.0050.00316.89
8.0.90.0040.00416.94
8.0.80.0100.01017.04
8.0.70.0040.00417.04
8.0.60.0040.00416.91
8.0.50.0070.00016.92
8.0.30.0130.00517.19
8.0.20.0080.01117.40
8.0.10.0050.00217.21
8.0.00.0100.01216.76
7.4.330.0050.00015.03
7.4.320.0000.00616.73
7.4.300.0060.00016.83
7.4.290.0030.00316.79
7.4.280.0000.00816.79
7.4.270.0000.00716.81
7.4.260.0000.00716.79
7.4.250.0000.00816.71
7.4.240.0020.00616.70
7.4.230.0030.00316.92
7.4.220.0120.01216.79
7.4.210.0060.00916.77
7.4.200.0070.00016.69
7.4.160.0130.01016.69
7.4.150.0120.00617.40
7.4.140.0110.00917.86
7.4.130.0110.00816.64
7.4.120.0100.00816.61
7.4.110.0130.00716.77
7.4.100.0150.00416.43
7.4.90.0060.01116.63
7.4.80.0120.00619.39
7.4.70.0040.01216.59
7.4.60.0160.00016.52
7.4.50.0070.00016.53
7.4.40.0120.00916.54
7.4.30.0110.00716.74
7.4.00.0070.00715.09
7.3.330.0000.00513.12
7.3.320.0060.00013.24
7.3.310.0030.00316.17
7.3.300.0060.00016.32
7.3.290.0080.00816.36
7.3.280.0060.01116.22
7.3.270.0140.00317.40
7.3.260.0140.00316.52
7.3.250.0110.00916.33
7.3.240.0100.00716.64
7.3.230.0130.00416.42
7.3.210.0180.00016.52
7.3.200.0060.01619.39
7.3.190.0090.01216.69
7.3.180.0140.01016.43
7.3.170.0150.00616.27
7.3.160.0090.00616.35
7.3.10.0050.01016.68
7.3.00.0100.00316.67
7.2.330.0060.01216.43
7.2.320.0070.01016.56
7.2.310.0090.01216.63
7.2.300.0100.00616.56
7.2.290.0080.00816.45
7.2.130.0030.01016.84
7.2.120.0100.00716.75
7.2.110.0000.02016.66
7.2.100.0090.00816.73
7.2.90.0100.00316.95
7.2.80.0120.00316.99
7.2.70.0130.00016.74
7.2.60.0000.01516.99
7.2.50.0080.01016.98
7.2.40.0140.00716.85
7.2.30.0080.00417.05
7.2.20.0120.00616.95
7.2.10.0040.01416.87
7.2.00.0060.00818.09
7.1.250.0090.00616.04
7.1.200.0040.00815.64
7.1.100.0070.00718.21
7.1.70.0000.00817.01
7.1.60.0060.01819.57
7.1.50.0030.00716.78
7.1.00.0070.07022.47
7.0.200.0030.00516.78
7.0.140.0000.03721.99
7.0.60.0100.06019.84
7.0.50.0070.06317.95
7.0.40.0170.07720.42
7.0.30.0330.07320.09
7.0.20.0270.07020.11
7.0.10.0100.07720.08
7.0.00.0130.03320.07
5.6.280.0030.07020.85
5.6.210.0130.07320.64
5.6.200.0000.04718.19
5.6.190.0070.08020.60
5.6.180.0070.08320.55
5.6.170.0330.07320.47
5.6.160.0070.08320.55
5.6.150.0100.06318.12
5.6.140.0030.06018.21
5.6.130.0030.08018.28
5.6.120.0100.08320.99
5.6.110.0030.04720.99
5.6.100.0170.03320.87
5.6.90.0170.06321.07
5.6.80.0070.07720.36
5.5.350.0000.08320.39
5.5.340.0070.07317.95
5.5.330.0230.06720.40
5.5.320.0230.06020.30
5.5.310.0300.07720.35
5.5.300.0030.08317.96
5.5.290.0100.08017.98
5.5.280.0100.03320.84
5.5.270.0100.06020.85
5.5.260.0030.08320.83
5.5.250.0100.04320.68
5.5.240.0100.07320.15
5.4.450.0600.05719.57
5.4.440.0270.06719.47
5.4.430.0170.04319.68
5.4.420.0000.06319.54
5.4.410.0170.06319.11
5.4.400.0100.05319.02
5.4.390.0130.06319.04
5.4.380.0100.05319.21
5.4.370.0200.05318.71
5.4.360.0230.04718.59
5.4.350.0170.05718.50
5.4.340.0230.05018.50
5.4.320.0270.06018.43
5.4.310.0070.06318.74
5.4.300.0200.05018.50
5.4.290.0270.06718.76
5.4.280.0130.05718.80
5.4.270.0130.05318.58
5.4.260.0070.06018.77
5.4.250.0130.05718.79
5.4.240.0200.05318.76
5.4.230.0130.05718.73
5.4.220.0200.07018.54
5.4.210.0230.04718.72
5.4.200.0130.05716.67
5.4.190.0170.05018.74
5.4.180.0170.05318.49
5.4.170.0100.06718.78
5.4.160.0130.06018.71
5.4.150.0230.04718.60
5.4.140.0200.05316.30
5.4.130.0130.05316.29
5.4.120.0130.05016.32
5.4.110.0170.05016.29
5.4.100.0230.04716.16
5.4.90.0130.05716.26
5.4.80.0170.05316.25
5.4.70.0330.06016.18
5.4.60.0130.05316.28
5.4.50.0230.04716.25
5.4.40.0200.06016.17
5.4.30.0100.05716.25
5.4.20.0000.06316.39
5.4.10.0130.05716.29
5.4.00.0100.05315.64
5.3.290.0430.05314.67
5.3.280.0200.07014.78
5.3.270.0300.06714.69
5.3.260.0200.06014.71
5.3.250.0130.05314.64
5.3.240.0170.05314.88
5.3.230.0270.04314.60
5.3.220.0100.07014.73
5.3.210.0200.05014.84
5.3.200.0170.05014.64
5.3.190.0230.04714.74
5.3.180.0100.06314.54
5.3.170.0230.04714.57
5.3.160.0130.05314.53
5.3.150.0170.05014.76
5.3.140.0170.05014.64
5.3.130.0130.05714.57
5.3.120.0200.05014.57
5.3.110.0170.05314.57
5.3.100.0200.04714.15
5.3.90.0170.05014.22
5.3.80.0130.05714.10
5.3.70.0270.04314.04
5.3.60.0230.06314.16
5.3.50.0330.04714.03
5.3.40.0100.06013.96
5.3.30.0230.04714.11
5.3.20.0170.05013.68
5.3.10.0070.06013.71
5.3.00.0170.05013.93
5.2.170.0070.05011.18
5.2.160.0100.04711.20
5.2.150.0230.03311.18
5.2.140.0130.06011.08
5.2.130.0200.05011.19
5.2.120.0030.05311.09
5.2.110.0130.04011.12
5.2.100.0100.04311.20
5.2.90.0100.04711.14
5.2.80.0130.04311.14
5.2.70.0170.03711.07
5.2.60.0100.04311.09
5.2.50.0100.04311.02
5.2.40.0230.03311.13
5.2.30.0070.04711.02
5.2.20.0070.04711.08
5.2.10.0270.02710.95
5.2.00.0100.04311.00
5.1.60.0170.02710.03
5.1.50.0070.04010.01
5.1.40.0030.04010.04
5.1.30.0030.04310.38
5.1.20.0230.02310.39
5.1.10.0170.03010.20
5.1.00.0030.04010.09
5.0.50.0030.0308.64
5.0.40.0030.0308.47
5.0.30.0070.0578.20
5.0.20.0100.0238.23
5.0.10.0100.0238.28
5.0.00.0030.0438.15
4.4.90.0000.0275.96
4.4.80.0030.0235.90
4.4.70.0000.0275.88
4.4.60.0070.0205.86
4.4.50.0030.0235.91
4.4.40.0070.0405.91
4.4.30.0030.0235.88
4.4.20.0030.0235.95
4.4.10.0070.0205.94
4.4.00.0030.0375.95
4.3.110.0000.0275.82
4.3.100.0030.0235.80
4.3.90.0100.0175.90
4.3.80.0030.0375.87
4.3.70.0100.0235.91
4.3.60.0030.0235.82
4.3.50.0030.0235.88
4.3.40.0070.0335.74
4.3.30.0000.0275.02
4.3.20.0070.0205.02
4.3.10.0000.0235.02
4.3.00.0070.0237.13

preferences:
56.01 ms | 401 KiB | 5 Q