3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "$12,334.00A"; echo preg_replace("/[^0-9,.]/", "", $str1); ?> - See more at: http://www.w3resource.com/php-exercises/php-regular-expression-exercises.php#sthash.nmTOIj71.dpuf

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.0140.00718.56
8.3.50.0110.00522.05
8.3.40.0140.00418.84
8.3.30.0120.00918.92
8.3.20.0030.00620.16
8.3.10.0040.00423.61
8.3.00.0050.00319.14
8.2.180.0140.00716.46
8.2.170.0060.00922.96
8.2.160.0100.00720.47
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0040.00420.92
8.2.110.0060.00322.33
8.2.100.0000.01217.61
8.2.90.0040.00419.23
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0040.00421.13
8.2.30.0050.00218.30
8.2.20.0020.00517.83
8.2.10.0030.00617.94
8.2.00.0040.00417.81
8.1.280.0090.00625.92
8.1.270.0060.00323.96
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0100.00723.96
8.1.230.0070.00319.22
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0060.00318.64
8.1.160.0000.00721.94
8.1.150.0060.00318.83
8.1.140.0000.00717.53
8.1.130.0050.00217.78
8.1.120.0070.00017.59
8.1.110.0040.00417.50
8.1.100.0040.00417.58
8.1.90.0040.00417.57
8.1.80.0000.00817.40
8.1.70.0030.00317.55
8.1.60.0040.00417.64
8.1.50.0080.00017.50
8.1.40.0050.00217.64
8.1.30.0040.00417.63
8.1.20.0000.00717.66
8.1.10.0000.00817.57
8.1.00.0000.00917.52
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0000.00718.52
8.0.270.0030.00317.32
8.0.260.0060.00017.20
8.0.250.0030.00717.09
8.0.240.0000.00717.12
8.0.230.0000.00717.04
8.0.220.0040.00416.86
8.0.210.0040.00416.88
8.0.200.0070.00016.99
8.0.190.0040.00417.03
8.0.180.0070.00017.02
8.0.170.0040.00416.92
8.0.160.0020.00516.90
8.0.150.0030.00516.84
8.0.140.0070.00016.98
8.0.130.0040.00413.49
8.0.120.0000.00816.89
8.0.110.0060.00316.80
8.0.100.0040.00416.93
8.0.90.0040.00417.07
8.0.80.0100.00617.04
8.0.70.0030.00516.92
8.0.60.0040.00417.09
8.0.50.0030.00516.84
8.0.30.0050.01517.01
8.0.20.0110.00917.41
8.0.10.0030.00417.15
8.0.00.0100.00816.84
7.4.330.0000.00615.01
7.4.320.0030.00616.72
7.4.300.0060.00316.75
7.4.290.0040.00416.75
7.4.280.0060.00316.71
7.4.270.0080.00016.75
7.4.260.0040.00416.61
7.4.250.0040.00416.59
7.4.240.0050.00216.59
7.4.230.0030.00316.55
7.4.220.0120.00616.79
7.4.210.0090.00516.68
7.4.200.0000.00816.75
7.4.190.0000.00716.62
7.4.160.0160.00016.67
7.4.150.0110.00617.40
7.4.140.0110.00717.86
7.4.130.0080.00816.72
7.4.120.0100.00816.74
7.4.110.0030.01316.58
7.4.100.0120.00916.53
7.4.90.0060.01216.63
7.4.80.0070.01019.39
7.4.70.0130.00316.54
7.4.60.0060.01016.68
7.4.50.0030.00516.63
7.4.40.0120.00416.56
7.4.30.0090.00916.74
7.4.00.0000.01514.84
7.3.330.0000.00613.11
7.3.320.0050.00212.99
7.3.310.0040.00416.33
7.3.300.0030.00316.07
7.3.290.0040.01416.38
7.3.280.0120.00816.30
7.3.270.0120.01217.40
7.3.260.0120.00616.56
7.3.250.0090.01416.46
7.3.240.0100.00716.71
7.3.230.0100.00616.39
7.3.210.0070.01016.40
7.3.200.0140.00719.39
7.3.190.0120.00916.57
7.3.180.0060.01216.59
7.3.170.0030.01716.54
7.3.160.0080.00816.29
7.3.120.0070.01014.88
7.2.330.0000.01816.56
7.2.320.0070.01016.47
7.2.310.0050.01016.61
7.2.300.0100.00716.79
7.2.290.0120.00616.54
7.2.80.0100.00316.54
7.2.00.0030.00919.42
7.1.200.0060.00615.61
7.1.100.0100.00718.18
7.1.70.0000.00817.23
7.1.60.0040.01819.46
7.1.50.0060.00616.77
7.1.00.0030.07022.48
7.0.200.0110.00416.95
7.0.140.0000.07721.96
7.0.60.0170.07320.09
7.0.50.0030.08317.82
7.0.40.0070.06720.00
7.0.30.0170.05720.11
7.0.20.0170.04720.05
7.0.10.0100.04020.01
7.0.00.0000.07320.17
5.6.280.0070.07020.91
5.6.210.0130.07020.52
5.6.200.0000.05718.09
5.6.190.0070.08020.27
5.6.180.0200.04020.41
5.6.170.0300.06020.50
5.6.160.0100.08020.53
5.6.150.0000.08718.12
5.6.140.0070.07018.18
5.6.130.0030.08018.18
5.6.120.0100.08321.05
5.6.110.0070.06321.13
5.6.100.0070.06021.00
5.6.90.0030.05020.99
5.6.80.0100.08020.35
5.5.350.4170.04020.29
5.5.340.0000.06718.01
5.5.330.0030.05320.46
5.5.320.0900.07020.32
5.5.310.0270.04720.28
5.5.300.0000.08318.02
5.5.290.0000.04318.01
5.5.280.0030.08320.89
5.5.270.0100.03720.89
5.5.260.0070.06320.86
5.5.250.0070.08320.57
5.5.240.0130.03020.28
5.4.450.0430.06319.41
5.4.440.0430.07019.56
5.4.430.0400.05319.25
5.4.420.0430.04319.47
5.4.410.0330.04019.13
5.4.400.0470.06718.77
5.4.390.0500.04719.08
5.4.380.0430.06319.10
5.4.370.0570.05719.07
5.4.360.0430.06019.08
5.4.350.0530.06019.06
5.4.340.0370.04019.12
5.4.320.0570.06718.80
5.4.310.0470.07019.09
5.4.300.0400.05319.07
5.4.290.0470.07019.16
5.4.280.0500.06718.80
5.4.270.0470.05719.13
5.4.260.0470.06719.08
5.4.250.0470.03319.08
5.4.240.0430.07018.91
5.4.230.0430.05019.09
5.4.220.0370.04019.09
5.4.210.0470.06319.09
5.4.200.0500.06319.13
5.4.190.0530.05719.07
5.4.180.0370.04019.04
5.4.170.0430.04319.12
5.4.160.0430.05018.88
5.4.150.0300.04318.86
5.4.140.0470.06716.32
5.4.130.0530.03716.25
5.4.120.0370.03716.37
5.4.110.0500.06316.21
5.4.100.0370.04316.39
5.4.90.0330.04016.39
5.4.80.0430.02716.37
5.4.70.0530.06016.41
5.4.60.0470.06316.19
5.4.50.0500.06016.38
5.4.40.0400.03716.27
5.4.30.0330.03716.37
5.4.20.0300.04016.39
5.4.10.0430.06316.40
5.4.00.0400.05315.64
5.3.290.0370.03714.60
5.3.280.0470.04714.60
5.3.270.0400.05714.58
5.3.260.0370.05014.66
5.3.250.0370.07014.45
5.3.240.0330.06714.63
5.3.230.0300.06714.43
5.3.220.0430.03714.58
5.3.210.0370.05014.50
5.3.200.0330.06314.44
5.3.190.0370.05714.55
5.3.180.0270.05014.50
5.3.170.0500.06014.51
5.3.160.0470.06314.50
5.3.150.0400.05714.52
5.3.140.0470.06314.41
5.3.130.0300.04014.40
5.3.120.0430.06714.53
5.3.110.0430.07314.56
5.3.100.0430.06014.13
5.3.90.0470.03713.95
5.3.80.0500.05313.92
5.3.70.0530.05713.85
5.3.60.0470.05714.10
5.3.50.0430.05013.98
5.3.40.0330.03713.90
5.3.30.0400.02713.81
5.3.20.0470.06013.70
5.3.10.0400.04313.61
5.3.00.0300.04713.58
5.2.170.0430.04713.20
5.2.160.0300.03313.20
5.2.150.0370.03713.20
5.2.140.0370.02713.20
5.2.130.0430.04713.20
5.2.120.0400.04013.20
5.2.110.0400.03313.20
5.2.100.0370.03013.20
5.2.90.0300.03313.20
5.2.80.0470.03313.20
5.2.70.0400.03713.20
5.2.60.0330.02713.20
5.2.50.0430.05013.20
5.2.40.0270.04013.20
5.2.30.0130.04013.20
5.2.20.0300.05013.20
5.2.10.0300.03013.20
5.2.00.0230.04013.20
5.1.60.0330.02713.20
5.1.50.0270.05313.20
5.1.40.0300.02713.20
5.1.30.0270.02713.20
5.1.20.0270.05313.20
5.1.10.0270.03013.20
5.1.00.0300.03013.20
5.0.50.0170.01713.20
5.0.40.0170.03713.20
5.0.30.0100.03313.20
5.0.20.0200.04013.20
5.0.10.0130.04313.20
5.0.00.0170.03313.20
4.4.90.0100.02013.20
4.4.80.0130.01313.20
4.4.70.0170.01313.20
4.4.60.0200.03013.20
4.4.50.0170.02713.20
4.4.40.0170.05013.20
4.4.30.0130.02313.20
4.4.20.0200.03313.20
4.4.10.0170.02713.20
4.4.00.0230.04313.20
4.3.110.0270.01313.20
4.3.100.0130.02713.20
4.3.90.0170.03713.20
4.3.80.0100.02713.20
4.3.70.0230.02013.20
4.3.60.0200.02013.20
4.3.50.0170.01713.20
4.3.40.0230.04313.20
4.3.30.0030.02313.20
4.3.20.0130.02713.20
4.3.10.0130.03313.20
4.3.00.0030.02313.20

preferences:
33.17 ms | 401 KiB | 5 Q