3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0140.00398.97
7.3.0rc30.0040.01316.45
7.3.0beta10.0000.00812.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