3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formattedMoney = '-$1000'; $parser = new \NumberFormatter('sdfsdf', \NumberFormatter::CURRENCY); $parser->setAttribute(\NumberFormatter::FRACTION_DIGITS, 2); $parser->setAttribute(\NumberFormatter::NEGATIVE_PREFIX, '-'); $decimal = $parser->parseCurrency($formattedMoney, $currency); var_dump($decimal); var_dump($currency); var_dump($formatter->getErrorMessage());

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.0080.01120.43
8.3.50.0140.00523.05
8.3.40.0130.00320.34
8.3.30.0130.00320.22
8.3.20.0000.00821.71
8.3.10.0050.00321.86
8.3.00.0000.00923.21
8.2.180.0120.00618.63
8.2.170.0070.01122.96
8.2.160.0120.00623.63
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00322.87
8.2.120.0080.00026.35
8.2.110.0060.01522.92
8.2.100.0030.01019.78
8.2.90.0050.00320.42
8.2.80.0050.00319.50
8.2.70.0050.00319.25
8.2.60.0090.00019.68
8.2.50.0060.00319.38
8.2.40.0060.00321.82
8.2.30.0000.00820.84
8.2.20.0000.00819.46
8.2.10.0050.00319.97
8.2.00.0000.00820.01
8.1.280.0160.00725.92
8.1.270.0030.00623.70
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00323.97
8.1.230.0060.00622.97
8.1.220.0040.00419.66
8.1.210.0080.00019.23
8.1.200.0060.00319.23
8.1.190.0040.00419.23
8.1.180.0000.00919.23
8.1.170.0030.00720.53
8.1.160.0000.00822.04
8.1.150.0040.00420.25
8.1.140.0030.00621.49
8.1.130.0070.00019.40
8.1.120.0000.00719.16
8.1.110.0000.00819.49
8.1.100.0030.00519.44
8.1.90.0000.00819.49
8.1.80.0040.00419.21
8.1.70.0040.00419.47
8.1.60.0050.00519.59
8.1.50.0070.00319.58
8.1.40.0060.00319.60
8.1.30.0030.00619.80
8.1.20.0090.00019.56
8.1.10.0040.00419.59
8.1.00.0000.00819.59
8.0.300.0000.00818.91
8.0.290.0050.00318.63
8.0.280.0040.00419.77
8.0.270.0040.00419.05
8.0.260.0050.00319.10
8.0.250.0030.00318.86
8.0.240.0070.00018.91
8.0.230.0000.00718.91
8.0.220.0000.00818.73
8.0.210.0040.00418.65
8.0.200.0000.00718.96
8.0.190.0080.00018.91
8.0.180.0070.00318.73
8.0.170.0040.00418.74
8.0.160.0050.00218.60
8.0.150.0030.00518.52
8.0.140.0050.00318.38
8.0.130.0030.00313.28
8.0.120.0030.00618.95
8.0.110.0040.00418.84
8.0.100.0000.00818.91
8.0.90.0000.00819.02
8.0.80.0160.00618.98
8.0.70.0050.00318.90
8.0.60.0030.00519.11
8.0.50.0000.00819.09
8.0.30.0100.01119.06
8.0.20.0100.01019.24
8.0.10.0040.00419.21
8.0.00.0090.00918.72
7.4.330.0050.00016.71
7.4.320.0030.00618.98
7.4.300.0070.00019.05
7.4.290.0030.00518.91
7.4.280.0060.00318.89
7.4.270.0040.00419.02
7.4.260.0030.00619.04
7.4.250.0050.00318.86
7.4.240.0060.00318.92
7.4.230.0000.00819.12
7.4.220.0040.01818.97
7.4.210.0040.01218.95
7.4.200.0030.00618.82
7.4.160.0100.00718.98
7.4.150.0100.01018.72
7.4.140.0100.01018.77
7.4.130.0040.01618.81
7.4.120.0040.01718.81
7.4.110.0130.00618.97
7.4.100.0200.00018.80
7.4.90.0070.01418.97
7.4.80.0170.00319.39
7.4.70.0090.00918.80
7.4.60.0030.01618.93
7.4.50.0030.01318.82
7.4.40.0080.01318.78
7.4.30.0060.01518.77
7.4.00.0090.00617.23
7.3.330.0000.00513.10
7.3.320.0030.00313.01
7.3.310.0030.00618.67
7.3.300.0050.00518.68
7.3.290.0060.01118.72
7.3.280.0080.01118.78
7.3.270.0080.01118.96
7.3.260.0060.01518.68
7.3.250.0110.00918.74
7.3.240.0100.01018.86
7.3.230.0200.00718.76
7.3.210.0110.00818.77
7.3.200.0080.01218.50
7.3.190.0030.01518.70
7.3.180.0030.01719.00
7.3.170.0100.01018.83
7.3.160.0030.02218.90
7.2.330.0030.01819.03
7.2.320.0100.01018.45
7.2.310.0060.01519.14
7.2.300.0210.00618.81
7.2.290.0110.00719.23
7.2.60.0040.01519.17
7.2.00.0070.00721.85
7.1.200.0030.01417.96
7.1.100.0100.01320.81
7.1.70.0000.01219.82
7.1.60.0100.01919.71
7.1.50.0000.02419.40
7.1.00.0070.07324.99
7.0.200.0590.00317.21
7.0.60.0070.08024.02
7.0.50.0100.05017.88
7.0.40.0070.04322.11
7.0.30.0300.08722.51
7.0.20.0270.07722.36
7.0.10.0070.05722.50
7.0.00.0030.07322.41
5.6.280.0070.03023.49
5.6.210.0070.08722.85
5.6.200.0100.04318.08
5.6.190.0000.05722.71
5.6.180.0400.06722.68
5.6.170.0170.04022.70
5.6.160.0070.04722.69
5.6.150.0030.08318.11
5.6.140.0100.08018.08
5.6.130.0030.06318.21
5.6.120.0100.06723.64
5.6.110.0100.08723.20
5.6.100.0030.07023.30
5.6.90.0100.08723.34
5.6.80.0070.08722.86
5.5.350.0130.05722.66
5.5.340.0070.04317.91
5.5.330.0030.07322.70
5.5.320.0600.06722.60
5.5.310.0300.07322.29
5.5.300.0100.06717.96
5.5.290.0100.03317.96
5.5.280.0100.08322.88
5.5.270.0070.08323.02
5.5.260.0070.04723.29
5.5.250.0070.08322.99
5.5.240.0100.07022.28

preferences:
40.94 ms | 401 KiB | 5 Q