3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = " <employee> <employeename>test</employeename> <employeeaddress>test123</employeeaddress> <SSN>12343456</SSN> <company>TOPXML</company> </employee> "; $dom = new \DOMDocument; $dom->loadXML($xmlstr); $node = $dom->firstChild->firstChild; $node->normalize(); echo $dom->C14N(); echo $node->C14N(); ?>

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.00418.68
8.3.50.0110.00318.45
8.3.40.0110.00819.23
8.3.30.0180.00319.03
8.3.20.0040.00419.54
8.3.10.0080.00024.03
8.3.00.0080.00021.02
8.2.180.0080.00818.79
8.2.170.0140.00722.96
8.2.160.0140.00420.95
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00420.27
8.2.120.0000.00826.35
8.2.110.0090.00019.64
8.2.100.0080.00418.53
8.2.90.0040.00418.13
8.2.80.0030.00618.00
8.2.70.0040.00418.41
8.2.60.0000.00818.42
8.2.50.0040.00418.10
8.2.40.0080.00019.67
8.2.30.0070.00019.60
8.2.20.0100.00018.32
8.2.10.0070.00018.52
8.2.00.0050.00317.95
8.1.280.0030.01425.92
8.1.270.0050.00319.25
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00024.16
8.1.230.0000.01219.26
8.1.220.0000.00817.89
8.1.210.0030.00518.77
8.1.200.0040.00417.48
8.1.190.0000.00817.48
8.1.180.0000.00718.10
8.1.170.0000.00818.86
8.1.160.0050.00219.13
8.1.150.0050.00219.03
8.1.140.0070.00022.41
8.1.130.0030.00520.61
8.1.120.0050.00217.82
8.1.110.0040.00417.81
8.1.100.0000.00817.63
8.1.90.0030.00517.77
8.1.80.0060.00317.60
8.1.70.0040.00417.76
8.1.60.0030.00617.96
8.1.50.0040.00417.81
8.1.40.0040.00417.82
8.1.30.0050.00517.85
8.1.20.0040.00417.93
8.1.10.0060.00318.00
8.1.00.0040.00417.73
8.0.300.0000.00818.77
8.0.290.0040.00417.13
8.0.280.0040.00418.84
8.0.270.0000.00717.64
8.0.260.0030.00318.71
8.0.250.0030.00617.32
8.0.240.0070.00017.32
8.0.230.0000.00717.29
8.0.220.0030.00317.02
8.0.210.0050.00317.04
8.0.200.0070.00017.05
8.0.190.0040.00417.30
8.0.180.0000.00717.25
8.0.170.0000.00817.06
8.0.160.0000.00817.04
8.0.150.0000.01016.95
8.0.140.0040.00417.00
8.0.130.0030.00313.50
8.0.120.0040.00417.01
8.0.110.0040.00417.05
8.0.100.0030.00517.07
8.0.90.0000.00717.04
8.0.80.0070.00817.10
8.0.70.0080.00017.05
8.0.60.0040.00417.02
8.0.50.0050.00317.16
8.0.30.0100.01017.58
8.0.20.0100.00917.40
8.0.10.0040.00417.25
8.0.00.0080.01116.93
7.4.330.0000.00515.55
7.4.320.0040.00416.79
7.4.300.0030.00316.89
7.4.290.0000.00716.99
7.4.280.0030.00616.88
7.4.270.0030.00316.90
7.4.260.0030.00516.91
7.4.250.0000.00816.86
7.4.240.0070.00016.70
7.4.230.0030.00316.82
7.4.220.0000.00816.81
7.4.210.0060.00916.89
7.4.200.0030.00316.83
7.4.160.0070.01016.93
7.4.140.0090.01217.86
7.4.130.0090.00916.86
7.4.120.0130.00816.81
7.4.110.0130.01016.89
7.4.100.0130.00316.78
7.4.90.0130.00416.80
7.4.80.0040.01219.39
7.4.70.0090.00916.72
7.4.60.0070.01316.73
7.4.50.0070.01116.87
7.4.40.0050.01116.90
7.4.00.0120.00415.10
7.3.330.0000.00513.20
7.3.320.0050.00313.13
7.3.310.0030.00316.57
7.3.300.0070.00016.52
7.3.290.0030.00316.49
7.3.280.0070.00716.46
7.3.260.0070.01116.58
7.3.240.0090.01216.60
7.3.230.0140.00316.64
7.3.210.0090.00916.66
7.3.200.0090.00916.76
7.3.190.0060.01516.50
7.3.180.0090.00616.42
7.3.170.0060.01016.58
7.3.160.0130.00316.80
7.3.10.0000.00916.65
7.3.00.0030.00716.67
7.2.330.0150.00417.02
7.2.320.0050.01116.94
7.2.310.0070.01017.12
7.2.300.0100.00716.87
7.2.290.0000.02516.99
7.2.130.0110.00317.31
7.2.120.0100.00317.02
7.2.110.0200.00915.87
7.2.100.0290.00716.00
7.2.90.0180.01216.04
7.2.80.0230.01115.97
7.2.70.0280.01016.10
7.2.60.0210.00616.05
7.2.50.0340.00516.08
7.2.40.0240.00716.15
7.2.30.0340.00815.95
7.2.20.0310.00515.89
7.2.10.0250.00415.89
7.2.00.0290.00315.97
7.1.250.0000.01015.73
7.1.230.0430.00313.95
7.1.220.0340.00614.03
7.1.210.0310.01013.81
7.1.200.0450.00613.82
7.1.190.0380.01413.80
7.1.180.0450.00913.75
7.1.170.0500.00714.00
7.1.160.0430.00713.85
7.1.150.0480.00314.08
7.1.140.1270.01314.09
7.1.130.0400.01013.90
7.1.120.0360.01313.91
7.1.110.0450.00313.91
7.1.100.0400.00713.95
7.1.90.0420.01313.63
7.1.80.0440.01313.84
7.1.70.0560.00313.57
7.1.60.0900.01331.90
7.1.50.0730.01231.91
7.1.40.0780.01531.61
7.1.30.0860.00731.73
7.1.20.0870.00631.87
7.1.10.0870.00613.73
7.1.00.0750.00713.95
5.6.380.0060.01014.45

preferences:
39.04 ms | 401 KiB | 5 Q