3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getDatiTrasmissione() { $header = ' <DatiTrasmissione> <IdTrasmittente> <IdPaese>IT</IdPaese> <IdCodice>01234567890</IdCodice> </IdTrasmittente> <ProgressivoInvio>00001</ProgressivoInvio> <FormatoTrasmissione>SDI10</FormatoTrasmissione> <CodiceDestinatario>AAAAAA</CodiceDestinatario> <ContattiTrasmittente> <Telefono>060601</Telefono> <Email>prova@mail.it</Email> </ContattiTrasmittente> </DatiTrasmissione>'; return simplexml_load_string($header,'SimpleXMLElement', LIBXML_NOCDATA); } $headerdoc = dom_import_simplexml(simplexml_load_string("<FatturaElettronicaHeader></FatturaElettronicaHeader>",'SimpleXMLElement', LIBXML_NOCDATA)); $node = dom_import_simplexml(getDatiTrasmissione()); $node = $headerdoc->ownerDocument->importNode($node, TRUE); // And then append it to the "<root>" node $headerdoc->appendChild($node); echo $headerdoc->asXML();

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.0150.00318.68
8.3.50.0130.00721.94
8.3.40.0000.01519.16
8.3.30.0030.01019.21
8.3.20.0040.00420.49
8.3.10.0080.00023.78
8.3.00.0090.00017.72
8.2.180.0180.00418.49
8.2.170.0040.01122.96
8.2.160.0070.00720.36
8.2.150.0030.00524.18
8.2.140.0090.00024.66
8.2.130.0070.00726.16
8.2.120.0000.00822.56
8.2.110.0100.00020.69
8.2.100.0030.00918.03
8.2.90.0000.00817.88
8.2.80.0030.00617.97
8.2.70.0000.00818.05
8.2.60.0040.00418.05
8.2.50.0040.00418.10
8.2.40.0060.00322.62
8.2.30.0040.00418.05
8.2.20.0000.00817.91
8.2.10.0040.00418.26
8.2.00.0040.00418.05
8.1.280.0120.00925.92
8.1.270.0060.00324.03
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.01022.32
8.1.230.0080.00419.22
8.1.220.0090.00017.89
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.63
8.1.160.0030.00522.17
8.1.150.0030.00618.71
8.1.140.0040.00417.68
8.1.130.0040.00417.98
8.1.120.0000.00717.57
8.1.110.0000.00717.70
8.1.100.0030.00717.57
8.1.90.0000.00717.50
8.1.80.0040.00417.61
8.1.70.0030.00317.52
8.1.60.0000.00917.87
8.1.50.0040.00417.80
8.1.40.0040.00417.71
8.1.30.0050.00317.78
8.1.20.0000.00717.81
8.1.10.0030.00617.70
8.1.00.0080.00017.61
8.0.300.0000.00821.80
8.0.290.0030.00616.88
8.0.280.0040.00418.61
8.0.270.0080.00017.29
8.0.260.0000.00617.26
8.0.250.0070.00017.17
8.0.240.0040.00417.06
8.0.230.0080.00017.20
8.0.220.0080.00017.17
8.0.210.0000.00817.03
8.0.200.0000.00617.13
8.0.190.0030.00517.11
8.0.180.0000.00717.05
8.0.170.0030.00617.15
8.0.160.0040.00417.10
8.0.150.0060.00317.09
8.0.140.0030.00517.03
8.0.130.0000.00813.49
8.0.120.0000.00817.04
8.0.110.0000.00817.07
8.0.100.0050.00217.17
8.0.90.0000.00716.98
8.0.80.0120.01017.10
8.0.70.0040.00416.95
8.0.60.0080.00017.04
8.0.50.0070.00017.14
8.0.30.0140.00517.38
8.0.20.0130.00617.52
8.0.10.0000.00717.10
8.0.00.0050.01617.14
7.4.330.0000.00515.14
7.4.320.0060.00016.63
7.4.300.0030.00316.73
7.4.290.0000.00716.82
7.4.280.0040.00716.57
7.4.270.0000.00716.81
7.4.260.0000.00716.81
7.4.250.0040.00416.70
7.4.240.0000.00716.79
7.4.230.0070.00016.61
7.4.220.0090.01016.75
7.4.210.0030.01216.83
7.4.200.0070.00016.80
7.4.190.0070.00016.85
7.4.160.0200.00316.80
7.4.150.0130.00617.40
7.4.140.0120.00517.86
7.4.130.0090.00816.64
7.4.120.0080.00816.72
7.4.110.0000.01716.83
7.4.100.0120.00616.54
7.4.90.0070.01016.63
7.4.80.0100.01219.39
7.4.70.0110.00716.89
7.4.60.0070.01016.39
7.4.50.0030.00316.77
7.4.40.0120.00616.82
7.4.30.0070.01016.95
7.4.00.0090.00315.16
7.3.330.0050.00013.48
7.3.320.0030.00313.51
7.3.310.0040.00416.49
7.3.300.0030.00316.37
7.3.290.0050.00916.56
7.3.280.0050.01416.50
7.3.270.0100.00617.40
7.3.260.0090.00916.73
7.3.250.0100.00816.52
7.3.240.0120.00616.52
7.3.230.0100.00716.52
7.3.210.0090.00916.69
7.3.200.0170.00619.39
7.3.190.0140.00616.50
7.3.180.0080.00816.62
7.3.170.0130.00616.55
7.3.160.0060.01016.59
7.3.120.0070.00714.67
7.2.330.0090.00816.73
7.2.320.0120.01216.92
7.2.310.0060.01316.89
7.2.300.0140.00316.99
7.2.290.0130.00316.93
7.2.60.0030.01316.84
7.2.00.0030.01019.41
7.1.200.0080.00415.95
7.1.100.0040.00718.42
7.1.70.0040.00917.16
7.1.60.0110.01419.46
7.1.50.0060.01016.98
7.1.00.0070.07722.56
7.0.200.0040.00416.86
7.0.140.0100.06722.04
7.0.60.0000.04720.14
7.0.50.0030.05317.83
7.0.40.0100.05020.19
7.0.30.0100.05020.32
7.0.20.0300.08020.30
7.0.10.0070.07020.29
7.0.00.0000.04320.38
5.6.280.0030.07321.18
5.6.210.0100.08320.83
5.6.200.0100.08018.36
5.6.190.0170.05020.42
5.6.180.0170.08020.86
5.6.170.0100.05020.63
5.6.160.0030.04020.65
5.6.150.0070.08318.26
5.6.140.0070.05018.36
5.6.130.0070.08718.20
5.6.120.0030.06021.05
5.6.110.0030.07021.04
5.6.100.0130.08021.16
5.6.90.0070.03721.11
5.6.80.0170.07020.52
5.5.350.4170.04020.60
5.5.340.0070.05318.19
5.5.330.0030.07020.34
5.5.320.0370.07020.39
5.5.310.0370.04720.50
5.5.300.0030.04318.04
5.5.290.0100.04018.03
5.5.280.0070.07720.95
5.5.270.0030.04720.81
5.5.260.0070.03720.89
5.5.250.0100.07720.73
5.5.240.0070.07320.32
5.4.450.0070.06019.74
5.4.440.0070.06319.41
5.4.430.0400.07719.37
5.4.420.0130.06019.56
5.4.410.0200.05719.43
5.4.400.0430.06019.24
5.4.390.0470.06019.10
5.4.380.0330.05018.83
5.4.370.0470.04318.84
5.4.360.0270.05018.76
5.4.350.0300.04718.55
5.4.340.0470.04718.92
5.4.320.0070.04112.67
5.4.310.0050.04112.66
5.4.300.0060.04812.66
5.4.290.0070.03912.65
5.4.280.0030.04012.55
5.4.270.0060.04412.55
5.4.260.0060.04012.55
5.4.250.0090.03712.55
5.4.240.0060.04012.55
5.4.230.0040.05012.54
5.4.220.0070.05512.54
5.4.210.0050.05412.54
5.4.200.0110.04712.54
5.4.190.0090.03912.54
5.4.180.0060.04812.54
5.4.170.0050.05512.55
5.4.160.0090.05112.54
5.4.150.0070.03912.54
5.4.140.0090.04012.22
5.4.130.0080.03612.21
5.4.120.0060.03912.17
5.4.110.0070.05512.16
5.4.100.0070.04312.17
5.4.90.0100.04412.16
5.4.80.0110.06812.16
5.4.70.0070.05212.16
5.4.60.0150.04812.16
5.4.50.0170.04112.16
5.4.40.0080.05012.16
5.4.30.0120.04212.16
5.4.20.0060.04812.15
5.4.10.0060.03912.15
5.4.00.0090.03711.64
5.3.290.0070.03912.92
5.3.280.0050.05012.85
5.3.270.0130.05012.86
5.3.260.0090.05812.87
5.3.250.0040.04112.87
5.3.240.0080.03712.86
5.3.230.0100.04212.86
5.3.220.0070.05512.83
5.3.210.0080.05512.83
5.3.200.0060.04212.83
5.3.190.0100.03612.83
5.3.180.0090.05212.82
5.3.170.0060.06012.82
5.3.160.0110.05112.82
5.3.150.0070.05612.82
5.3.140.0130.04912.82
5.3.130.0060.05112.80
5.3.120.0090.04112.80
5.3.110.0090.03812.81
5.3.100.0110.03512.29
5.3.90.0090.05112.27
5.3.80.0100.05012.27
5.3.70.0110.04812.27
5.3.60.0110.05812.25
5.3.50.0080.05112.21
5.3.40.0100.03712.20
5.3.30.0060.03912.16
5.3.20.0060.05111.94
5.3.10.0090.03911.90
5.3.00.0110.04411.89
5.2.170.0120.0389.39
5.2.160.0060.0439.39
5.2.150.0090.0419.39
5.2.140.0070.0379.39
5.2.130.0080.0329.35
5.2.120.0070.0329.35
5.2.110.0120.0379.36
5.2.100.0090.0489.36
5.2.90.0080.0449.35
5.2.80.0090.0479.35
5.2.70.0050.0459.35
5.2.60.0060.0439.30
5.2.50.0050.0399.27
5.2.40.0040.0309.25
5.2.30.0040.0309.22
5.2.20.0060.0279.21
5.2.10.0060.0279.12
5.2.00.0030.0328.96
5.1.60.0240.0378.26
5.1.50.0080.0258.25
5.1.40.0110.0338.23
5.1.30.0060.0398.58
5.1.20.0100.0358.60
5.1.10.0100.0398.33
5.1.00.0070.0308.33
5.0.50.0060.0226.64
5.0.40.0060.0196.51
5.0.30.0100.0526.31
5.0.20.0040.0226.29
5.0.10.0060.0366.27
5.0.00.0060.0426.25
4.4.90.0060.0234.78
4.4.80.0060.0234.75
4.4.70.0050.0244.75
4.4.60.0040.0174.75
4.4.50.0020.0194.77
4.4.40.0020.0274.71
4.4.30.0000.0194.76
4.4.20.0020.0174.85
4.4.10.0020.0174.85
4.4.00.0030.0264.76
4.3.110.0020.0214.67
4.3.100.0040.0184.66
4.3.90.0040.0224.63
4.3.80.0060.0314.58
4.3.70.0050.0214.63
4.3.60.0060.0164.63
4.3.50.0040.0234.63
4.3.40.0010.0304.54
4.3.30.0020.0183.30
4.3.20.0060.0143.28
4.3.10.0050.0203.24
4.3.00.0100.0237.30

preferences:
32.37 ms | 401 KiB | 5 Q