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->children[1]; $node->normalize(); echo $dom->C14N();echo "\n\n"; 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.40.0170.00319.09
8.3.30.0100.01018.91
8.3.20.0080.00019.50
8.3.10.0070.00023.77
8.3.00.0040.00420.93
8.2.170.0140.00722.96
8.2.160.0130.00320.60
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00820.07
8.2.120.0040.00426.35
8.2.110.0070.00321.19
8.2.100.0090.00317.84
8.2.90.0050.00318.00
8.2.80.0040.00417.97
8.2.70.0080.00017.93
8.2.60.0080.00018.47
8.2.50.0080.00018.10
8.2.40.0000.00819.47
8.2.30.0060.00319.53
8.2.20.0060.00618.29
8.2.10.0000.00818.16
8.2.00.0030.00617.84
8.1.270.0080.00019.12
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.74
8.1.230.0080.00322.46
8.1.220.0030.00517.78
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0060.00318.71
8.1.160.0040.00419.10
8.1.150.0070.00019.00
8.1.140.0070.00022.32
8.1.130.0000.00720.39
8.1.120.0040.00417.70
8.1.110.0040.00417.56
8.1.100.0070.00017.63
8.1.90.0070.00017.59
8.1.80.0000.00817.54
8.1.70.0000.00717.63
8.1.60.0000.00917.70
8.1.50.0000.00817.76
8.1.40.0040.00417.77
8.1.30.0030.00717.83
8.1.20.0040.00417.80
8.1.10.0040.00417.64
8.1.00.0060.00317.75
8.0.300.0030.00618.77
8.0.290.0030.00716.88
8.0.280.0070.00018.48
8.0.270.0000.00717.39
8.0.260.0060.00018.60
8.0.250.0060.00317.16
8.0.240.0000.00717.23
8.0.230.0030.00317.19
8.0.220.0030.00317.07
8.0.210.0080.00017.09
8.0.200.0070.00017.13
8.0.190.0060.00317.15
8.0.180.0050.00317.10
8.0.170.0030.00617.01
8.0.160.0040.00417.05
8.0.150.0040.00316.96
8.0.140.0000.00716.86
8.0.130.0030.00313.47
8.0.120.0070.00016.96
8.0.110.0000.00817.09
8.0.100.0000.00716.96
8.0.90.0040.00417.02
8.0.80.0080.00717.06
8.0.70.0040.00417.10
8.0.60.0000.00817.05
8.0.50.0040.00417.02
8.0.30.0140.00617.32
8.0.20.0080.01117.40
8.0.10.0040.00417.10
8.0.00.0050.01316.92
7.4.330.0000.00515.55
7.4.320.0030.00316.57
7.4.300.0000.00616.78
7.4.290.0000.00716.71
7.4.280.0050.00316.64
7.4.270.0000.00716.73
7.4.260.0020.00516.79
7.4.250.0030.00516.77
7.4.240.0000.00816.81
7.4.230.0000.00716.74
7.4.220.0000.00816.82
7.4.210.0090.01016.83
7.4.200.0020.00516.82
7.4.160.0080.00716.73
7.4.140.0080.01217.86
7.4.130.0080.00816.81
7.4.120.0100.00916.74
7.4.110.0060.01216.61
7.4.100.0090.00816.65
7.4.90.0100.00716.63
7.4.80.0120.01219.39
7.4.70.0070.01016.67
7.4.60.0070.01016.67
7.4.50.0080.00816.51
7.4.40.0100.00716.66
7.4.00.0100.00614.89
7.3.330.0000.00513.39
7.3.320.0030.00313.44
7.3.310.0000.00716.46
7.3.300.0070.00016.55
7.3.290.0030.00316.54
7.3.280.0060.00916.53
7.3.260.0130.00716.56
7.3.240.0110.00916.66
7.3.230.0060.01216.53
7.3.210.0080.01116.56
7.3.200.0110.01216.73
7.3.190.0030.01416.63
7.3.180.0070.01116.69
7.3.170.0130.00916.66
7.3.160.0040.01516.37
7.3.120.0040.01114.93
7.3.110.0040.01114.91
7.3.100.0000.01514.89
7.3.90.0090.00314.85
7.3.80.0000.01415.12
7.3.70.0100.00415.04
7.3.60.0070.01014.87
7.3.50.0060.01014.85
7.3.40.0000.01414.92
7.3.30.0130.00314.84
7.3.20.0100.00616.82
7.3.10.0080.00416.62
7.3.00.0110.00016.80
7.2.330.0090.00916.68
7.2.320.0100.01316.51
7.2.310.0060.01016.90
7.2.300.0120.00416.83
7.2.290.0100.01016.54
7.2.240.0130.00014.63
7.2.230.0070.00414.91
7.2.220.0090.00415.23
7.2.210.0000.01014.74
7.2.200.0000.01215.18
7.2.190.0060.00915.05
7.2.180.0090.00615.16
7.2.170.0030.00915.03
7.2.160.0080.00815.23
7.2.150.0060.01316.80
7.2.140.0100.00717.24
7.2.130.0090.00616.88
7.2.120.0110.00416.80
7.2.110.0410.00515.99
7.2.100.0340.00915.71
7.2.90.0420.00515.89
7.2.80.0420.00715.87
7.2.70.0410.00316.00
7.2.60.0350.00815.98
7.2.50.0370.00815.91
7.2.40.0390.00716.06
7.2.30.0430.00816.05
7.2.20.0390.01015.92
7.2.10.0420.00715.98
7.2.00.0520.01015.98
7.1.330.0030.00615.92
7.1.320.0000.01415.82
7.1.310.0040.01216.04
7.1.300.0100.00315.91
7.1.290.0030.01216.11
7.1.280.0110.00415.93
7.1.270.0040.00715.91
7.1.260.0100.00315.67
7.1.250.0120.00315.88
7.1.230.0660.01013.99
7.1.220.0680.00613.75
7.1.210.0680.00313.63
7.1.200.0740.00313.88
7.1.190.0700.01014.09
7.1.180.0720.00314.00
7.1.170.0710.00613.74
7.1.160.0740.00513.91
7.1.150.0740.00713.91
7.1.140.1160.00713.80
7.1.130.0850.00313.93
7.1.120.0910.00313.93
7.1.110.0710.01013.82
7.1.100.0620.01313.88
7.1.90.0750.01314.14
7.1.80.0650.01414.09
7.1.70.1080.01013.74
7.1.60.0810.01031.86
7.1.50.0930.00832.04
7.1.40.1000.00431.98
7.1.30.0720.01031.99
7.1.20.1000.01132.06
7.1.10.0670.01014.23
7.1.00.0280.00413.92
5.6.380.0070.01014.63

preferences:
44.57 ms | 400 KiB | 5 Q