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);

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.70.0060.01018.75
8.3.60.0040.01220.52
8.3.50.0120.00522.98
8.3.40.0110.00720.40
8.3.30.0120.00620.22
8.3.20.0050.00321.59
8.3.10.0080.00021.89
8.3.00.0050.00323.16
8.2.190.0090.00918.88
8.2.180.0090.00625.92
8.2.170.0150.00322.96
8.2.160.0070.01423.80
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00423.00
8.2.120.0080.00026.35
8.2.110.0070.00322.97
8.2.100.0060.00619.66
8.2.90.0040.00419.78
8.2.80.0030.00621.03
8.2.70.0040.00419.38
8.2.60.0000.00819.38
8.2.50.0100.00519.25
8.2.40.0040.00419.63
8.2.30.0080.00019.61
8.2.20.0000.00819.54
8.2.10.0000.00819.98
8.2.00.0040.00419.90
8.1.280.0130.01625.92
8.1.270.0030.00625.25
8.1.260.0080.00028.09
8.1.250.0030.00528.09
8.1.240.0140.00625.17
8.1.230.0060.00622.72
8.1.220.0030.00619.63
8.1.210.0090.00020.52
8.1.200.0060.00319.23
8.1.190.0060.00319.10
8.1.180.0060.00318.98
8.1.170.0050.00319.22
8.1.160.0000.00920.15
8.1.150.0040.00420.25
8.1.140.0030.00621.32
8.1.130.0030.00519.40
8.1.120.0030.00519.16
8.1.110.0030.00519.51
8.1.100.0050.00319.47
8.1.90.0080.00019.51
8.1.80.0080.00019.52
8.1.70.0080.00019.50
8.1.60.0030.00619.27
8.1.50.0040.00419.48
8.1.40.0000.00819.48
8.1.30.0030.00619.72
8.1.20.0080.00019.68
8.1.10.0080.00019.70
8.1.00.0000.00919.61
8.0.300.0000.00721.42
8.0.290.0000.00818.63
8.0.280.0040.00419.47
8.0.270.0040.00419.34
8.0.260.0050.00319.10
8.0.250.0040.00418.72
8.0.240.0070.00018.80
8.0.230.0000.00718.83
8.0.220.0050.00318.81
8.0.210.0030.00518.77
8.0.200.0040.00418.80
8.0.190.0000.00818.91
8.0.180.0070.00318.75
8.0.170.0080.00018.89
8.0.160.0030.00618.70
8.0.150.0040.00418.57
8.0.140.0040.00418.44
8.0.130.0030.00313.34
8.0.120.0040.00418.79
8.0.110.0040.00418.91
8.0.100.0000.00818.55
8.0.90.0080.00018.91
8.0.80.0000.01518.90
8.0.70.0040.00418.97
8.0.60.0090.00019.11
8.0.50.0030.00519.06
8.0.30.0120.00819.28
8.0.20.0100.00819.29
8.0.10.0060.00319.15
8.0.00.0080.01018.69
7.4.330.0050.00016.70
7.4.320.0080.00018.84
7.4.300.0000.00718.78
7.4.290.0000.00918.84
7.4.280.0060.00318.91
7.4.270.0000.00918.80
7.4.260.0050.00418.92
7.4.250.0000.00818.81
7.4.240.0080.00018.86
7.4.230.0040.00418.77
7.4.220.0150.00618.93
7.4.210.0070.01018.89
7.4.200.0060.00318.70
7.4.160.0060.01118.61
7.4.150.0130.00718.59
7.4.140.0080.01218.78
7.4.130.0060.01318.84
7.4.120.0110.00818.74
7.4.110.0130.00718.71
7.4.100.0140.01418.72
7.4.90.0080.01118.96
7.4.80.0100.01019.39
7.4.70.0080.01218.68
7.4.60.0100.01018.74
7.4.50.0030.01218.59
7.4.40.0070.01818.46
7.4.30.0130.00719.04
7.4.00.0070.01317.35
7.3.330.0050.00013.25
7.3.320.0030.00313.11
7.3.310.0030.00618.45
7.3.300.0060.00318.59
7.3.290.0110.00818.49
7.3.280.0090.01118.44
7.3.270.0130.00718.73
7.3.260.0070.01318.68
7.3.250.0080.01218.54
7.3.240.0100.01318.56
7.3.230.0080.01118.76
7.3.210.0150.00418.55
7.3.200.0060.01318.63
7.3.190.0060.01218.65
7.3.180.0130.03618.42
7.3.170.0120.00918.75
7.3.160.0070.01318.78
7.3.10.0120.00918.53
7.3.00.0150.00718.41
7.2.330.0120.00918.55
7.2.320.0110.00918.86
7.2.310.0000.01919.02
7.2.300.0100.01618.88
7.2.290.0070.01719.11
7.2.130.0120.00318.90
7.2.120.0040.01418.82
7.2.110.0000.01719.23
7.2.100.0070.01618.66
7.2.90.0120.01218.58
7.2.80.0090.00718.66
7.2.70.0130.01118.45
7.2.60.0100.01118.99
7.2.50.0160.00718.57
7.2.40.0170.00318.66
7.2.30.0160.00018.61
7.2.20.0170.00318.25
7.2.10.0120.00718.19
7.2.00.0110.00818.90
7.1.250.0100.00318.00
7.1.200.0090.00917.94
7.1.70.0080.00819.66
7.1.60.0110.01819.95
7.1.50.0060.01919.74
7.1.00.0000.08325.04
7.0.200.0580.01016.82
7.0.60.0170.07724.14
7.0.50.0100.07317.88
7.0.40.0070.09322.45
7.0.30.0330.06322.32
7.0.20.0230.04722.15
7.0.10.0070.04322.24
7.0.00.0100.06022.20
5.6.280.0000.04723.29
5.6.210.0130.07322.99
5.6.200.0070.05318.07
5.6.190.0070.04322.66
5.6.180.0300.04022.71
5.6.170.0130.04722.49
5.6.160.0070.04022.69
5.6.150.0070.08318.09
5.6.140.0070.07318.21
5.6.130.0100.07318.16
5.6.120.0070.08323.37
5.6.110.0130.08023.64
5.6.100.0200.04723.20
5.6.90.0100.06023.40
5.6.80.0000.07022.87
5.5.350.0200.05022.65
5.5.340.0030.08717.88
5.5.330.0200.07322.69
5.5.320.0530.06722.29
5.5.310.0230.06722.43
5.5.300.0070.04717.93
5.5.290.0170.06717.98
5.5.280.0100.08023.09
5.5.270.0100.08323.30
5.5.260.0030.07323.02
5.5.250.0130.07322.99
5.5.240.0100.07022.71

preferences:
68.95 ms | 401 KiB | 5 Q