3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <DATAPACKET Version="2.0"> <METADATA> <FIELDS> <FIELD attrname="A_ARTICULO__NOMBRE" fieldtype="string" required="true" WIDTH="200"/> <FIELD attrname="A_ARTICULO__REFERENCIA" fieldtype="string" required="true" WIDTH="30"/> <FIELD attrname="APLICAR_RETENCION" fieldtype="i2" required="true"/> <FIELD attrname="CANTIDAD_PENDIENTE" fieldtype="fixedFMT" required="true" DECIMALS="4" WIDTH="19"/> <FIELD attrname="CANTIDAD_SERVIDA" fieldtype="fixedFMT" required="true" DECIMALS="4" WIDTH="19"/> <FIELD attrname="CANTIDAD" fieldtype="fixedFMT" required="true" DECIMALS="4" WIDTH="19"/> <FIELD attrname="DESCRIPCION" fieldtype="bin.hex" SUBTYPE="Text" WIDTH="8"/> <FIELD attrname="DESCUENTO1" fieldtype="fixedFMT" required="true" DECIMALS="4" WIDTH="19"/> <FIELD attrname="DIVISA_VALOR" fieldtype="r8" required="true"/> <FIELD attrname="FECHA_ENTREGA" fieldtype="date"/> <FIELD attrname="IMPORTE" fieldtype="fixedFMT" required="true" DECIMALS="2" WIDTH="19"/> <FIELD attrname="ORDEN_LINEA" fieldtype="i4" required="true"/> <FIELD attrname="PRECIO" fieldtype="fixedFMT" required="true" DECIMALS="6" WIDTH="19"/> <FIELD attrname="TIPO_IVA" fieldtype="fixedFMT" required="true" DECIMALS="2" WIDTH="19"/> <FIELD attrname="ID_LINEA_PEDIDO_VENTA" fieldtype="string" WIDTH="90"/> <FIELD attrname="ID_ALMACEN" fieldtype="string" WIDTH="90"/> <FIELD attrname="ID_ARTICULO" fieldtype="string" WIDTH="90"/> <FIELD attrname="ID_PEDIDO_VENTA" fieldtype="string" WIDTH="90"/> </FIELDS> <PARAMS/> </METADATA> <ROWDATA> <ROW A_ARTICULO__NOMBRE="MOCHILA CA." A_ARTICULO__REFERENCIA="09999601MA" APLICAR_RETENCION="0" CANTIDAD_PENDIENTE="0.0000" CANTIDAD_SERVIDA="0.0000" CANTIDAD="1.0000" DESCUENTO1="0.0000" DIVISA_VALOR="1." FECHA_ENTREGA="20140413" IMPORTE="44.90" ORDEN_LINEA="1" PRECIO="44.900000" TIPO_IVA="21.00" ID_ALMACEN="CENTRAL" ID_ARTICULO="09999601MA" ID_PEDIDO_VENTA="A,5010"/> </ROWDATA> </DATAPACKET> XML; $xml = simplexml_load_string($x); foreach ($xml->ROWDATA->ROW as $row) { echo $row['A_ARTICULO__REFERENCIA'] ; }

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.0080.00818.68
8.3.60.0040.01118.55
8.3.50.0100.01221.21
8.3.40.0120.00318.88
8.3.30.0090.00619.01
8.3.20.0040.00420.45
8.3.10.0000.00723.73
8.3.00.0040.00423.91
8.2.190.0150.00016.63
8.2.180.0110.01118.54
8.2.170.0030.01222.96
8.2.160.0110.00422.51
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0050.00321.36
8.2.110.0040.00821.38
8.2.100.0090.00318.00
8.2.90.0040.00419.47
8.2.80.0030.00517.97
8.2.70.0080.00017.75
8.2.60.0000.00818.18
8.2.50.0000.01018.07
8.2.40.0030.00521.30
8.2.30.0000.01118.38
8.2.20.0000.00817.93
8.2.10.0040.00418.23
8.2.00.0030.00718.34
8.1.280.0120.00625.92
8.1.270.0040.00420.45
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.99
8.1.230.0070.00417.88
8.1.220.0030.00617.91
8.1.210.0040.00418.77
8.1.200.0040.00417.50
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.85
8.1.160.0040.00422.20
8.1.150.0000.00819.10
8.1.140.0000.00817.63
8.1.130.0040.00417.94
8.1.120.0070.00017.77
8.1.110.0070.00017.71
8.1.100.0040.00417.70
8.1.90.0000.00817.66
8.1.80.0040.00417.65
8.1.70.0000.00717.77
8.1.60.0030.00617.69
8.1.50.0000.00917.77
8.1.40.0040.00417.73
8.1.30.0000.00817.84
8.1.20.0040.00417.80
8.1.10.0080.00017.73
8.1.00.0030.00617.71
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00918.70
8.0.270.0030.00317.54
8.0.260.0070.00017.52
8.0.250.0040.00417.14
8.0.240.0000.00717.29
8.0.230.0030.00317.20
8.0.220.0030.00317.24
8.0.210.0000.00717.22
8.0.200.0000.01117.12
8.0.190.0040.00417.09
8.0.180.0030.00517.10
8.0.170.0000.00817.21
8.0.160.0030.00517.24
8.0.150.0040.00417.22
8.0.140.0000.00717.22
8.0.130.0080.00013.62
8.0.120.0050.00317.16
8.0.110.0000.00817.20
8.0.100.0000.00716.93
8.0.90.0050.00217.07
8.0.80.0140.01117.27
8.0.70.0070.00017.17
8.0.60.0000.00817.15
8.0.50.0040.00416.99
8.0.30.0080.00917.41
8.0.20.0150.00717.40
8.0.10.0040.00417.23
8.0.00.0120.00816.98
7.4.330.0000.00515.34
7.4.320.0000.00616.75
7.4.300.0040.00416.73
7.4.290.0040.00716.79
7.4.280.0000.00716.72
7.4.270.0070.00016.70
7.4.260.0030.00616.81
7.4.250.0040.00416.70
7.4.240.0030.00316.86
7.4.230.0000.00716.89
7.4.220.0160.00716.75
7.4.210.0090.00616.79
7.4.200.0000.00716.82
7.4.160.0120.00916.76
7.4.150.0110.00717.40
7.4.140.0140.00817.86
7.4.130.0110.01016.79
7.4.120.0140.00516.78
7.4.110.0000.01716.73
7.4.100.0120.00616.74
7.4.90.0070.01017.01
7.4.80.0120.00619.39
7.4.70.0080.00916.76
7.4.60.0060.01016.83
7.4.50.0020.00516.85
7.4.40.0070.01016.90
7.4.30.0150.00916.78
7.4.00.0090.00615.02
7.3.330.0030.00313.43
7.3.320.0050.00013.38
7.3.310.0030.00416.47
7.3.300.0030.00316.57
7.3.290.0060.01216.49
7.3.280.0100.01116.50
7.3.270.0070.01117.40
7.3.260.0120.00616.75
7.3.250.0090.01216.57
7.3.240.0070.01016.70
7.3.230.0140.00316.54
7.3.210.0110.00616.64
7.3.200.0150.00816.61
7.3.190.0060.01116.45
7.3.180.0160.00016.78
7.3.170.0110.01116.86
7.3.160.0100.01316.60
7.2.330.0070.01017.05
7.2.320.0090.01516.92
7.2.310.0030.01417.01
7.2.300.0070.01016.66
7.2.290.0130.00316.82
7.2.110.0140.01416.69
7.2.60.0030.01417.14
7.1.200.0030.01015.61
7.1.100.0000.01418.21
7.1.70.0060.00317.34
7.1.60.0070.01819.12
7.1.50.0100.01317.01
7.1.00.0030.07322.61
7.0.200.0000.00716.99
7.0.60.0000.05319.99
7.0.50.0000.04317.94
7.0.40.0070.04720.19
7.0.30.0300.08320.32
7.0.20.0270.07720.38
7.0.10.0230.08020.26
7.0.00.0070.09320.18
5.6.210.0130.03020.56
5.6.200.0130.05318.34
5.6.190.0070.08720.66
5.6.180.0100.08020.55
5.6.170.0200.05020.76
5.6.160.0100.07720.54
5.6.150.0030.08318.27
5.6.140.0100.07318.27
5.6.130.0100.08318.31
5.6.120.0100.08321.05
5.6.110.0070.09021.18
5.6.100.0100.06321.01
5.6.90.0130.07721.24
5.6.80.0000.04320.61
5.6.70.0130.03720.41
5.5.350.0030.08020.46
5.5.340.0070.04318.16
5.5.330.0030.04320.33
5.5.320.0030.08020.61
5.5.310.0170.04320.34
5.5.300.0070.07018.15
5.5.290.0130.08018.08
5.5.280.0030.04720.80
5.5.270.0100.08321.04
5.5.260.0000.08020.94
5.5.250.0170.07320.61
5.5.240.0000.06020.15
5.4.450.0570.06019.32
5.4.440.0900.07019.49
5.4.430.1100.06019.56
5.4.420.0970.06719.53
5.4.410.0930.05319.60
5.4.400.0900.06319.05
5.4.390.1030.05319.38
5.4.380.0930.04719.38
5.4.370.0830.05019.02
5.4.360.0730.07019.19
5.4.350.0830.06019.16
5.4.340.1070.05019.37
5.4.320.1200.05719.38
5.4.310.1000.05719.36
5.4.300.0900.06019.02
5.4.290.0730.06019.32
5.4.280.0770.06719.24
5.4.270.0870.05719.40
5.4.260.0770.06719.36
5.4.250.1000.05318.99
5.4.240.0800.05719.24
5.4.230.0700.05719.25
5.4.220.0600.06319.38
5.4.210.0800.07319.20
5.4.200.1130.06316.82
5.4.190.1100.05719.35
5.4.180.0800.06019.06
5.4.170.0870.06019.13
5.4.160.1200.07019.13
5.4.150.1030.06319.35
5.4.140.0970.06316.54
5.4.130.0870.06016.52
5.4.120.0930.04716.48
5.4.110.1000.05716.54
5.4.100.0870.06716.54
5.4.90.1100.04716.47
5.4.80.0970.04716.47
5.4.70.0930.05316.72
5.4.60.0930.04716.62
5.4.50.0970.04316.62
5.4.40.0970.05716.58
5.4.30.0830.04316.30
5.4.20.0930.05316.59
5.4.10.0730.05316.73
5.4.00.0830.05316.05
5.3.290.0670.06314.75
5.3.280.0800.07014.64
5.3.270.1200.04714.62
5.3.260.0930.05014.65
5.3.250.1200.06714.63
5.3.240.1000.04314.70
5.3.230.1070.06014.61
5.3.220.1400.06014.61
5.3.210.0870.04314.57
5.3.200.0800.04014.64
5.3.190.0830.05314.64
5.3.180.1000.06014.82
5.3.170.0670.06014.74
5.3.160.0770.06314.59
5.3.150.1000.06714.60
5.3.140.0970.04314.56
5.3.130.0800.05314.59
5.3.120.0830.04714.59
5.3.110.0800.05014.61
5.3.100.0830.05014.17
5.3.90.0770.05314.31
5.3.80.1030.04314.07
5.3.70.0730.05313.98
5.3.60.0800.04314.06
5.3.50.0530.05714.02
5.3.40.0930.05014.01
5.3.30.0930.05013.96
5.3.20.1000.05013.71
5.3.10.1000.06313.70
5.3.00.0930.06713.91
5.2.170.0930.05011.39
5.2.160.0700.06711.17
5.2.150.0800.04311.39
5.2.140.1000.05311.15
5.2.130.0630.04011.22
5.2.120.0830.03311.41
5.2.110.0830.03711.21
5.2.100.0930.04011.22
5.2.90.0770.03711.13
5.2.80.0830.05711.11
5.2.70.1070.05011.41
5.2.60.0770.04311.16
5.2.50.0770.04011.12
5.2.40.0770.04311.35
5.2.30.0670.03711.21
5.2.20.0670.04011.07
5.2.10.0100.03711.12
5.2.00.0130.03710.97
5.1.60.0070.03310.43
5.1.50.0170.04010.28
5.1.40.0670.03710.32
5.1.30.0630.04010.75
5.1.20.0630.02310.54
5.1.10.0430.03710.39
5.1.00.0500.03310.34
5.0.50.0270.0308.80
5.0.40.0170.0378.54
5.0.30.0500.0308.35
5.0.20.0300.0238.44
5.0.10.0200.0378.41
5.0.00.0530.0378.32
4.4.90.0270.0277.04
4.4.80.0300.0307.04
4.4.70.0430.0177.04
4.4.60.0330.0237.04
4.4.50.0330.0337.04
4.4.40.0300.0377.04
4.4.30.0300.0237.04
4.4.20.0170.0237.04
4.4.10.0270.0237.04
4.4.00.0470.0337.04
4.3.110.0170.0307.04
4.3.100.0230.0237.04
4.3.90.0200.0277.04
4.3.80.0270.0307.04
4.3.70.0330.0307.04
4.3.60.0530.0177.04
4.3.50.0330.0277.04
4.3.40.0300.0337.04
4.3.30.0130.0237.04
4.3.20.0170.0207.04
4.3.10.0130.0237.04
4.3.00.0000.0237.25

preferences:
69.27 ms | 401 KiB | 5 Q