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); echo number_format($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.4.140.0130.00918.08
8.4.130.0060.00618.29
8.4.120.0150.00524.33
8.4.110.0040.00518.98
8.4.100.0040.00719.25
8.4.90.0100.01018.93
8.4.80.0120.00718.97
8.4.70.0090.00818.26
8.4.60.0110.00919.15
8.4.50.0100.00718.85
8.4.40.0090.00318.13
8.4.30.0110.00720.63
8.4.20.0100.01018.14
8.4.10.0070.01021.58
8.3.270.0090.01317.13
8.3.260.0110.01016.69
8.3.250.0110.00819.25
8.3.240.0060.00419.07
8.3.230.0130.00716.73
8.3.220.0050.00819.21
8.3.210.0090.01016.82
8.3.200.0070.00216.75
8.3.190.0040.00417.33
8.3.180.0120.00817.13
8.3.170.0160.00622.80
8.3.160.0040.01517.47
8.3.150.0100.01017.38
8.3.140.0130.00417.19
8.3.130.0080.00018.64
8.3.120.0060.01019.20
8.3.110.0060.00318.68
8.3.100.0050.00318.62
8.3.90.0160.00326.77
8.3.80.0040.00419.36
8.3.70.0120.00418.77
8.3.60.0040.01117.00
8.3.50.0160.00523.71
8.3.40.0000.01422.20
8.3.30.0110.00418.92
8.3.20.0030.00524.18
8.3.10.0130.00324.66
8.3.00.0040.00426.16
8.2.290.0090.00920.76
8.2.280.0110.00718.57
8.2.270.0140.00417.64
8.2.260.0110.00416.80
8.2.250.0040.00417.29
8.2.240.0030.00617.43
8.2.230.0090.00020.94
8.2.220.0030.00524.06
8.2.210.0080.00026.77
8.2.200.0050.00518.88
8.2.190.0070.01418.84
8.2.180.0180.00025.92
8.2.170.0110.00719.21
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0050.00326.16
8.2.120.0080.00026.35
8.2.110.0100.01022.45
8.2.100.0090.00318.09
8.2.90.0000.00918.09
8.2.80.0030.00517.97
8.2.70.0030.00617.88
8.2.60.0040.00417.88
8.2.50.0040.00518.79
8.2.40.0060.00319.92
8.2.30.0040.00418.93
8.2.20.0100.00019.00
8.2.10.0090.00219.47
8.2.00.0050.00519.55
8.1.330.0130.00622.35
8.1.320.0110.00816.73
8.1.310.0040.01416.89
8.1.300.0040.01516.69
8.1.290.0070.00330.84
8.1.280.0030.01525.92
8.1.270.0000.00724.00
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0060.00322.73
8.1.230.0070.00722.95
8.1.220.0000.00917.91
8.1.210.0000.00818.77
8.1.200.0050.00517.50
8.1.190.0040.00417.48
8.1.180.0070.00418.81
8.1.170.0070.00419.05
8.1.160.0060.00519.30
8.1.150.0060.00519.26
8.1.140.0020.00819.32
8.1.130.0100.00118.57
8.1.120.0060.00618.56
8.1.110.0070.00718.59
8.1.100.0050.00618.58
8.1.90.0080.00318.58
8.1.80.0050.00618.58
8.1.70.0070.00518.55
8.1.60.0080.00318.60
8.1.50.0070.00418.57
8.1.40.0070.00418.63
8.1.30.0050.00618.62
8.1.20.0070.00418.71
8.1.10.0040.00618.64
8.1.00.0110.00118.57
8.0.300.0070.00020.00
8.0.290.0080.00016.88
8.0.280.0070.00319.06
8.0.270.0080.00418.83
8.0.260.0060.00518.23
8.0.250.0070.00418.29
8.0.240.0080.00218.29
8.0.230.0040.00718.29
8.0.220.0080.00418.32
8.0.210.0030.00718.34
8.0.200.0100.00218.29
8.0.190.0070.00418.36
8.0.180.0010.00918.28
8.0.170.0090.00218.37
8.0.160.0070.00518.27
8.0.150.0090.00218.25
8.0.140.0090.00318.25
8.0.130.0050.00516.51
8.0.120.0020.00818.26
8.0.110.0070.00318.23
8.0.100.0070.00318.28
8.0.90.0090.00218.34
8.0.80.0130.00217.88
8.0.70.0070.00418.21
8.0.60.0070.00418.34
8.0.50.0070.00518.33
8.0.30.0030.01218.24
8.0.20.0070.01017.97
8.0.10.0080.00418.31
8.0.00.0130.00817.44
7.4.330.0040.00517.53
7.4.320.0070.00418.18
7.4.300.0110.00018.19
7.4.290.0070.00518.15
7.4.280.0050.00818.17
7.4.270.0090.00318.16
7.4.260.0050.00618.16
7.4.250.0090.00518.16
7.4.240.0060.00618.08
7.4.230.0080.00318.07
7.4.220.0070.00417.74
7.4.210.0080.01117.33
7.4.200.0060.00418.21
7.4.190.0070.00719.52
7.4.180.0160.00019.52
7.4.160.0150.00019.52
7.4.150.0080.00819.52
7.4.140.0110.00619.52
7.4.130.0150.00717.17
7.4.120.0140.00617.26
7.4.110.0160.00517.24
7.4.100.0130.00917.22
7.4.90.0120.00917.22
7.4.80.0110.01117.25
7.4.70.0130.01017.34
7.4.60.0160.00617.21
7.4.50.0160.00617.28
7.4.40.0130.01017.22
7.4.30.0140.00917.29
7.4.20.0140.00917.18
7.4.10.0130.00917.28
7.4.00.0110.00917.25
7.3.330.0090.00118.02
7.3.320.0090.00216.35
7.3.310.0070.00417.98
7.3.300.0050.00617.99
7.3.290.0080.00817.26
7.3.280.0160.00019.52
7.3.270.0090.00619.52
7.3.260.0120.00418.04
7.3.250.0120.00817.15
7.3.240.0150.00717.15
7.3.230.0120.00917.18
7.3.220.0120.00917.20
7.3.210.0150.00617.12
7.3.200.0170.00817.09
7.3.190.0150.00917.18
7.3.180.0160.00617.17
7.3.170.0170.00517.19
7.3.160.0160.00917.16
7.3.150.0140.00917.08
7.3.140.0120.01017.14
7.3.130.0130.01017.18
7.3.120.0130.00817.18
7.3.110.0140.00917.22
7.3.100.0130.01017.19
7.3.90.0130.00917.21
7.3.80.0120.00817.13
7.3.70.0140.00617.16
7.3.60.0140.00717.11
7.3.50.0100.01017.14
7.3.40.0150.00617.12
7.3.30.0130.00817.16
7.3.20.0160.00817.16
7.3.10.0120.00817.05
7.3.00.0110.01117.10

preferences:
44.88 ms | 403 KiB | 5 Q