3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml_retorno = simplexml_load_string('<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><transaction><date>2020-12-09T09:20:51.000-03:00</date><code>EACDE7D2-EBD5-4F69-B760-640A5EFDC6A6</code><type>1</type><status>3</status><lastEventDate>2020-12-09T09:23:01.000-03:00</lastEventDate><paymentMethod><type>1</type><code>102</code></paymentMethod><grossAmount>46.50</grossAmount><discountAmount>0.00</discountAmount><feeAmount>2.72</feeAmount><netAmount>43.78</netAmount><extraAmount>0.00</extraAmount><escrowEndDate>2020-12-23T01:00:00.000-03:00</escrowEndDate><installmentCount>1</installmentCount><itemCount>1</itemCount><items><item><id>Prestação de serviço digital</id><description>XCHCU7</description><quantity>1</quantity><amount>46.50</amount></item></items><sender><name>GGGG</name><email>corporativo@vvvv.agr.br</email><phone><areaCode>16</areaCode><number>981746872</number></phone></sender><shipping><address><street>Rua Mariana Amaral</street><number>138</number><complement></complement><district>Lagoinha</district><city>SAO XXXDO XXX</city><state>MG</state><country>BRA</country><postalCode>445333</postalCode></address><type>3</type><cost>0.00</cost></shipping></transaction>'); var_dump($xml_retorno -> items -> item[0] -> amount); var_dump(round($xml_retorno -> items -> item[0] -> amount,2));

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.5.30.0140.00417.65
8.5.20.0100.00818.02
8.5.10.0120.00618.82
8.5.00.0150.00720.46
8.4.180.0130.00919.99
8.4.170.0110.01023.86
8.4.160.0110.01023.21
8.4.150.0080.00516.97
8.4.140.0110.01117.85
8.4.130.0050.00619.73
8.4.120.0130.00820.47
8.4.110.0100.01122.49
8.4.100.0150.00717.97
8.4.90.0120.00818.77
8.4.80.0140.00618.13
8.4.70.0120.00718.02
8.4.60.0110.01018.91
8.4.50.0120.00819.11
8.4.40.0130.00318.18
8.4.30.0140.00318.95
8.4.20.0100.01018.01
8.4.10.0000.01021.75
8.3.300.0130.00719.24
8.3.290.0140.00721.02
8.3.280.0150.01018.90
8.3.270.0160.00816.97
8.3.260.0130.00816.55
8.3.250.0110.00819.13
8.3.240.0140.00616.96
8.3.230.0070.00117.07
8.3.220.0080.00917.21
8.3.210.0070.00116.82
8.3.200.0030.00616.64
8.3.190.0060.00221.15
8.3.180.0110.00618.61
8.3.170.0110.00717.31
8.3.160.0130.00616.77
8.3.150.0150.00319.28
8.3.140.0030.00619.24
8.3.130.0050.00518.78
8.3.120.0040.00419.15
8.3.110.0030.00517.14
8.3.100.0130.00318.73
8.3.90.0080.00826.77
8.3.80.0040.00419.36
8.3.70.0110.01116.87
8.3.60.0140.00718.50
8.3.50.0130.00823.71
8.3.40.0110.00322.00
8.3.30.0110.00418.95
8.3.20.0110.00424.18
8.3.10.0070.01024.66
8.3.00.0000.01026.16
8.2.300.0130.01020.59
8.2.290.0110.00820.48
8.2.280.0130.00519.02
8.2.270.0070.01118.76
8.2.260.0050.00319.34
8.2.250.0040.00418.65
8.2.240.0030.00618.69
8.2.230.0060.00320.94
8.2.220.0050.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0070.01416.84
8.2.180.0150.00325.92
8.2.170.0070.00719.18
8.2.160.0170.00322.96
8.2.150.0000.00925.66
8.2.140.0070.01024.66
8.2.130.0080.00026.16
8.2.120.0040.01126.35
8.2.110.0030.00622.36
8.2.100.0000.01218.16
8.2.90.0040.00418.41
8.2.80.0000.00819.02
8.2.70.0000.00817.63
8.2.60.0000.00818.05
8.2.50.0030.00718.07
8.2.40.0040.00418.34
8.2.30.0040.00418.44
8.2.20.0000.00718.54
8.2.10.0040.00419.71
8.2.00.0040.00419.50
8.1.340.0110.01118.05
8.1.330.0100.00922.50
8.1.320.0140.00516.50
8.1.310.0040.00416.92
8.1.300.0060.00318.14
8.1.290.0090.00030.84
8.1.280.0100.01325.92
8.1.270.0180.00023.99
8.1.260.0070.01128.09
8.1.250.0150.00428.09
8.1.240.0080.00324.09
8.1.230.0070.00419.27
8.1.220.0050.00317.78
8.1.210.0050.00518.77
8.1.200.0070.00317.61
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.78
8.1.160.0080.00019.09
8.1.150.0060.00319.07
8.1.140.0000.00919.06
8.1.130.0000.00720.14
8.1.120.0000.00917.64
8.1.110.0000.00817.51
8.1.100.0040.00417.63
8.1.90.0000.00717.68
8.1.80.0070.00417.65
8.1.70.0070.00017.59
8.1.60.0000.00917.62
8.1.50.0030.00617.75
8.1.40.0030.00617.62
8.1.30.0040.00417.86
8.1.20.0070.00017.86
8.1.10.0000.00817.78
8.1.00.0030.00617.59
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0030.00318.61
8.0.270.0000.00718.24
8.0.260.0030.00318.74
8.0.250.0040.00317.08
8.0.240.0000.00717.11
8.0.230.0070.00017.14
8.0.220.0000.00717.13
8.0.210.0070.00017.12
8.0.200.0000.00717.07
8.0.190.0000.00817.15
8.0.180.0070.00017.18
8.0.170.0000.00817.06
8.0.160.0040.00417.02
8.0.150.0000.00817.02
8.0.140.0030.00517.09
8.0.130.0030.00313.50
8.0.120.0050.00317.15
8.0.110.0040.00416.99
8.0.100.0000.00716.94
8.0.90.0040.00416.93
8.0.80.0020.01317.09
8.0.70.0070.00017.12
8.0.60.0050.00316.94
8.0.50.0040.00417.04
8.0.30.0120.01217.05
8.0.20.0180.00516.97
8.0.10.0030.00517.07
8.0.00.0190.00617.01
7.4.330.0000.00615.55
7.4.320.0000.00616.73
7.4.300.0040.00416.90
7.4.290.0000.00816.74
7.4.280.0030.00516.74
7.4.270.0030.00316.82
7.4.260.0000.00513.56
7.4.250.0070.00016.79
7.4.240.0070.00016.88
7.4.230.0030.00316.80
7.4.220.0040.00416.80
7.4.210.0050.01116.91
7.4.200.0000.00717.00
7.4.130.0070.01816.54
7.4.120.0060.01216.69
7.4.110.0090.00916.65
7.4.100.0080.01116.79
7.4.90.0060.01316.65
7.4.80.0120.01216.71
7.4.70.0150.00616.75
7.4.60.0120.00616.78
7.4.50.0090.00916.86
7.4.40.0110.00616.84
7.4.30.0120.00616.62
7.4.20.0100.01016.73
7.4.10.0150.01116.70
7.4.00.0080.01716.84
7.3.330.0080.00016.52
7.3.320.0050.00013.39
7.3.310.0000.00716.44
7.3.300.0030.00316.43
7.3.290.0080.00816.47
7.3.260.0030.02016.66
7.3.250.0090.00916.67
7.3.240.0190.00316.56
7.3.230.0170.00716.44
7.3.220.0090.00916.49
7.3.210.0110.00716.71
7.3.200.0120.00916.63
7.3.190.0070.01016.46
7.3.180.0070.01016.45
7.3.170.0190.00016.36
7.3.160.0080.01216.47
7.3.150.0130.00616.58
7.3.140.0150.01116.54
7.3.130.0170.00916.78
7.3.120.0160.00916.54
7.3.110.0150.00316.63
7.3.100.0060.01616.52
7.3.90.0070.01016.60
7.3.80.0090.00916.62
7.3.70.0180.00016.57
7.3.60.0090.00916.46
7.3.50.0110.00816.59
7.3.40.0150.00316.51
7.3.30.0120.00916.69
7.3.20.0160.01716.66
7.3.10.0110.00716.63
7.3.00.0090.01016.37

preferences:
112.26 ms | 1402 KiB | 5 Q