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); } $fc = simplexml_load_string('<p:FatturaElettronica versione="1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:p="http://www.fatturapa.gov.it/sdi/fatturapa/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><FatturaElettronicaHeader><FatturaElettronicaBody></FatturaElettronicaBody></FatturaElettronicaHeader></p:FatturaElettronica> ','SimpleXMLElement', LIBXML_NOCDATA); /* creo un DOMElements dal SimpleXMLElements */ $domdocument = dom_import_simplexml($fc); /* Creo un DOMElements per ogni elemento della fattura */ $dt = dom_import_simplexml(getDatiTrasmissione()); $dt = $domdocument->ownerDocument->FatturaElettronicaHeader->importNode($dt, TRUE); $domdocument->appendChild($dt);

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.0040.01117.00
8.3.50.0090.00722.05
8.3.40.0190.00319.07
8.3.30.0120.00319.39
8.3.20.0040.00420.60
8.3.10.0000.00823.80
8.3.00.0050.00519.42
8.2.180.0160.00318.41
8.2.170.0100.01018.95
8.2.160.0120.00922.96
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0130.00626.16
8.2.120.0100.00722.52
8.2.110.0130.00720.78
8.2.100.0080.00418.02
8.2.90.0040.00419.42
8.2.80.0080.00018.05
8.2.70.0040.00417.73
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0030.00518.29
8.2.30.0050.00218.28
8.2.20.0000.00818.00
8.2.10.0040.00418.42
8.2.00.0040.00418.02
8.1.280.0110.01125.92
8.1.270.0040.00422.53
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00624.17
8.1.230.0070.00417.70
8.1.220.0040.00417.89
8.1.210.0030.00518.77
8.1.200.0070.00317.47
8.1.190.0090.00017.48
8.1.180.0060.00318.10
8.1.170.0000.00818.96
8.1.160.0000.00719.12
8.1.150.0000.00818.71
8.1.140.0080.00017.52
8.1.130.0070.00018.08
8.1.120.0040.00417.73
8.1.110.0000.00817.68
8.1.100.0070.00317.59
8.1.90.0000.00717.63
8.1.80.0080.00017.71
8.1.70.0040.00417.70
8.1.60.0090.00017.75
8.1.50.0030.00517.84
8.1.40.0030.00517.70
8.1.30.0000.00817.70
8.1.20.0040.00417.89
8.1.10.0040.00417.84
8.1.00.0040.00417.82
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.59
8.0.270.0070.00016.99
8.0.260.0030.00317.32
8.0.250.0030.00317.23
8.0.240.0000.00717.14
8.0.230.0080.00017.04
8.0.220.0070.00017.21
8.0.210.0000.00717.19
8.0.200.0000.00717.19
8.0.190.0050.00317.20
8.0.180.0040.00417.20
8.0.170.0000.00817.20
8.0.160.0000.00817.02
8.0.150.0030.00716.97
8.0.140.0030.00617.12
8.0.130.0060.00313.53
8.0.120.0070.00017.11
8.0.110.0020.00517.15
8.0.100.0040.00417.07
8.0.90.0000.00716.98
8.0.80.0100.00717.14
8.0.70.0070.00017.17
8.0.60.0000.00716.98
8.0.50.0000.00817.05
8.0.30.0110.00817.27
8.0.20.0110.00917.44
8.0.10.0040.00417.22
8.0.00.0120.00917.09
7.4.330.0000.00615.35
7.4.320.0030.00316.63
7.4.300.0030.00316.82
7.4.290.0000.00816.83
7.4.280.0050.00316.70
7.4.270.0040.00416.86
7.4.260.0030.00316.70
7.4.250.0040.00416.79
7.4.240.0040.00316.78
7.4.230.0040.00416.73
7.4.220.0090.00916.63
7.4.210.0120.00316.75
7.4.200.0040.00416.93
7.4.190.0040.00416.99
7.4.160.0060.00916.78
7.4.150.0120.00617.40
7.4.140.0170.00917.86
7.4.130.0100.00716.77
7.4.120.0100.00816.65
7.4.110.0060.01216.89
7.4.100.0140.00716.54
7.4.90.0130.00316.56
7.4.80.0100.00619.39
7.4.70.0110.01416.90
7.4.60.0110.00916.75
7.4.50.0030.00616.63
7.4.40.0100.00716.84
7.4.30.0140.00316.83
7.4.00.0060.00914.93
7.3.330.0050.00013.47
7.3.320.0030.00313.33
7.3.310.0080.00016.63
7.3.300.0040.00416.35
7.3.290.0110.00316.56
7.3.280.0070.00916.50
7.3.270.0080.00817.40
7.3.260.0170.00316.77
7.3.250.0080.01016.67
7.3.240.0190.00516.75
7.3.230.0180.00816.66
7.3.210.0130.00316.83
7.3.200.0110.00619.39
7.3.190.0130.00616.77
7.3.180.0100.00616.71
7.3.170.0060.01616.60
7.3.160.0100.00616.66
7.3.120.0070.00715.20
7.2.330.0090.01216.91
7.2.320.0100.00716.98
7.2.310.0130.01016.99
7.2.300.0030.01416.63
7.2.290.0030.01816.74
7.2.60.0070.00716.77
7.2.50.0070.00717.11
7.1.200.0060.00915.98
7.1.100.0040.00818.24
7.1.70.0040.00417.15
7.1.60.0070.01719.46
7.1.50.0100.01016.97
7.1.00.0000.08022.55
7.0.200.0080.00016.54
7.0.140.0130.06722.16
7.0.60.0030.04019.91
7.0.50.0030.08718.09
7.0.40.0100.04320.46
7.0.30.0230.06320.18
7.0.20.0230.04720.20
7.0.10.0030.04320.20
7.0.00.0000.05020.22
5.6.280.0100.06720.89
5.6.210.0130.08020.75
5.6.200.0030.04018.29
5.6.190.0100.09020.55
5.6.180.0230.05320.75
5.6.170.0230.04320.68
5.6.160.0200.07320.79
5.6.150.0000.08718.33
5.6.140.0030.07718.27
5.6.130.0070.07318.26
5.6.120.0130.08021.00
5.6.110.0170.07721.18
5.6.100.0030.07321.04
5.6.90.0030.04321.00
5.6.80.0000.04320.43
5.5.350.4370.03720.44
5.5.340.0100.08318.09
5.5.330.0030.08320.36
5.5.320.0370.05320.41
5.5.310.0370.07320.45
5.5.300.0070.04718.17
5.5.290.0030.04018.06
5.5.280.0070.08020.96
5.5.270.0030.04021.09
5.5.260.0070.04020.75
5.5.250.0070.05320.77
5.5.240.0100.05320.42
5.4.450.0300.05019.74
5.4.440.0230.06019.55
5.4.430.0300.05019.68
5.4.420.0230.05319.55
5.4.410.0300.06019.56
5.4.400.0130.06019.43
5.4.390.0370.05019.45
5.4.380.0570.05018.84
5.4.370.0230.05318.83
5.4.360.0370.04718.61
5.4.350.0370.05018.82
5.4.340.0300.06018.77
5.4.320.0100.03912.68
5.4.310.0070.03812.68
5.4.300.0060.04112.68
5.4.290.0090.06012.68
5.4.280.0110.04612.57
5.4.270.0070.05112.57
5.4.260.0170.08512.57
5.4.250.0040.05612.57
5.4.240.0110.05212.57
5.4.230.0100.06212.57
5.4.220.0130.05912.56
5.4.210.0120.07112.56
5.4.200.0210.09612.57
5.4.190.0120.08612.56
5.4.180.0140.07712.57
5.4.170.0100.05712.57
5.4.160.0080.07312.57
5.4.150.0120.06112.56
5.4.140.0060.06112.25
5.4.130.0070.05512.24
5.4.120.0120.07912.19
5.4.110.0120.10712.19
5.4.100.0070.06312.19
5.4.90.0100.07512.19
5.4.80.0060.05812.19
5.4.70.0060.05512.18
5.4.60.0140.07112.18
5.4.50.0170.10412.18
5.4.40.0060.09412.17
5.4.30.0140.04912.17
5.4.20.0130.06612.17
5.4.10.0070.05412.17
5.4.00.0120.06311.66
5.3.290.0100.03712.94
5.3.280.0070.05712.86
5.3.270.0030.06912.88
5.3.260.0080.04812.88
5.3.250.0130.04712.88
5.3.240.0050.04912.88
5.3.230.0080.04512.88
5.3.220.0070.04812.84
5.3.210.0090.05212.84
5.3.200.0070.06812.84
5.3.190.0080.04512.84
5.3.180.0180.06012.84
5.3.170.0070.04312.84
5.3.160.0090.03912.84
5.3.150.0100.03812.84
5.3.140.0080.03912.82
5.3.130.0080.04312.82
5.3.120.0090.04112.82
5.3.110.0100.04812.82
5.3.100.0160.06712.31
5.3.90.0080.04512.29
5.3.80.0110.04712.28
5.3.70.0100.05012.28
5.3.60.0250.11812.27
5.3.50.0070.04912.23
5.3.40.0160.07512.21
5.3.30.0280.13112.17
5.3.20.0090.05711.95
5.3.10.0200.07011.92
5.3.00.0140.08111.91
5.2.170.0050.0509.41
5.2.160.0130.0789.41
5.2.150.0120.0579.40
5.2.140.0060.0839.40
5.2.130.0070.0409.36
5.2.120.0170.0719.36
5.2.110.0110.0529.37
5.2.100.0090.0539.36
5.2.90.0100.0499.36
5.2.80.0130.0719.36
5.2.70.0100.0579.36
5.2.60.0130.0749.32
5.2.50.0080.0559.29
5.2.40.0100.0569.27
5.2.30.0130.0509.23
5.2.20.0050.0549.22
5.2.10.0130.0729.13
5.2.00.0130.0538.98
5.1.60.0060.0538.28
5.1.50.0110.0528.27
5.1.40.0160.0488.25
5.1.30.0120.0538.60
5.1.20.0140.0618.62
5.1.10.0140.0628.34
5.1.00.0050.0548.34
5.0.50.0050.0466.64
5.0.40.0110.0426.50
5.0.30.0060.0766.31
5.0.20.0100.0466.28
5.0.10.0060.0566.27
5.0.00.0110.0526.25
4.4.90.0100.0444.78
4.4.80.0070.0294.76
4.4.70.0060.0424.75
4.4.60.0040.0394.75
4.4.50.0040.0254.77
4.4.40.0050.0544.71
4.4.30.0120.0424.76
4.4.20.0050.0254.84
4.4.10.0150.0364.84
4.4.00.0100.0644.76
4.3.110.0050.0204.67
4.3.100.0070.0324.66
4.3.90.0110.0224.64
4.3.80.0080.0524.58
4.3.70.0140.0444.63
4.3.60.0110.0364.63
4.3.50.0050.0234.62
4.3.40.0060.0504.53
4.3.30.0060.0223.30
4.3.20.0040.0273.28
4.3.10.0080.0413.24
4.3.00.0070.0237.29

preferences:
54.25 ms | 400 KiB | 5 Q