3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new DOMDocument(); $element = $xml->createElementNS('urn:oasis:names:tc:SAML:2.0:assertion', 'saml:Assertion'); $xml_saml_assertion = $xml->appendChild($element); $attribute = $xml->createAttribute('id'); $attribute->value = 'IDCard'; $xml_saml_assertion->appendChild($attribute); // $attribute = $xml->createAttribute('xmlns:saml'); // $attribute->value = 'urn:oasis:names:tc:SAML:2.0:assertion'; // $xml_saml_assertion->appendChild($attribute); $attribute = $xml->createAttribute('Version'); $attribute->value = '2.0'; $xml_saml_assertion->appendChild($attribute); echo $xml->saveXML(), PHP_EOL; echo $xml->C14N(), PHP_EOL; $xml->loadXML($xml->saveXML()); echo $xml->C14N(), PHP_EOL;

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.4.120.0080.01220.88
8.4.110.0110.01022.61
8.4.100.0100.00718.11
8.4.90.0120.00918.93
8.4.80.0110.00818.07
8.4.70.0050.00418.05
8.4.60.0080.00819.06
8.4.50.0130.00718.26
8.4.40.0200.00018.14
8.4.30.0140.00718.91
8.4.20.0150.00619.80
8.4.10.0120.00619.68
8.3.250.0130.00619.16
8.3.240.0150.00417.41
8.3.230.0130.00616.86
8.3.220.0140.00617.49
8.3.210.0040.00416.79
8.3.200.0060.00317.07
8.3.190.0080.00917.29
8.3.180.0100.00816.65
8.3.170.0030.01316.83
8.3.160.0170.00018.68
8.3.150.0040.00417.30
8.3.140.0080.00016.85
8.3.130.0070.01316.87
8.3.120.0080.00019.29
8.3.110.0070.01020.94
8.3.100.0080.00024.06
8.3.90.0070.00726.77
8.3.80.0060.00317.00
8.3.70.0090.00616.88
8.3.60.0120.00617.00
8.3.50.0210.00723.73
8.3.40.0040.01119.38
8.3.30.0060.00919.01
8.3.20.0050.00324.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0140.00520.86
8.2.280.0060.00718.57
8.2.270.0090.00916.91
8.2.260.0030.00621.02
8.2.250.0000.00818.77
8.2.240.0000.00918.98
8.2.230.0030.00722.58
8.2.220.0030.00637.54
8.2.210.0040.01126.77
8.2.200.0060.00316.88
8.2.190.0060.00916.88
8.2.180.0150.00625.92
8.2.170.0040.01119.21
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00221.16
8.2.110.0030.00622.35
8.2.100.0110.00018.09
8.2.90.0030.00618.00
8.2.80.0030.00518.00
8.2.70.0040.00417.88
8.2.60.0040.00417.88
8.2.50.0000.00818.05
8.2.40.0030.00620.15
8.2.30.0000.00718.38
8.2.20.0000.00818.28
8.2.10.0040.00419.54
8.2.00.0000.00719.46
8.1.330.0100.00822.35
8.1.320.0080.00216.33
8.1.310.0040.00417.20
8.1.300.0100.00016.41
8.1.290.0080.00318.88
8.1.280.0140.01125.92
8.1.270.0090.00023.99
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0000.00924.20
8.1.230.0090.00319.13
8.1.220.0000.01018.02
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0080.00017.47
8.1.180.0060.00318.10
8.1.170.0050.00318.83
8.1.160.0000.00719.10
8.1.150.0070.00019.08
8.1.140.0040.00419.08
8.1.130.0050.00219.42
8.1.120.0040.00417.70
8.1.110.0030.00517.68
8.1.100.0030.00617.68
8.1.90.0000.00817.51
8.1.80.0040.00417.57
8.1.70.0040.00417.60
8.1.60.0040.00417.79
8.1.50.0000.00817.55
8.1.40.0040.00417.83
8.1.30.0030.00517.82
8.1.20.0060.00317.88
8.1.10.0000.00817.77
8.1.00.0050.00317.62
8.0.300.0080.00021.60
8.0.290.0040.00417.00
8.0.280.0030.00718.69
8.0.270.0000.00718.19
8.0.260.0070.00016.99
8.0.250.0040.00417.26
8.0.240.0000.00717.04
8.0.230.0000.00717.23
8.0.220.0030.00717.12
8.0.210.0000.00717.09
8.0.200.0000.00717.15
8.0.190.0040.00417.15
8.0.180.0050.00217.12
8.0.170.0000.01017.09
8.0.160.0000.00717.16
8.0.150.0030.00517.04
8.0.140.0030.00516.93
8.0.130.0030.00313.54
8.0.120.0080.00016.97
8.0.110.0000.00717.12
8.0.100.0050.00217.08
8.0.90.0090.00017.01
8.0.80.0080.00717.00
8.0.70.0050.00316.88
8.0.60.0040.00417.03
8.0.50.0030.00517.12
8.0.30.0120.00617.07
8.0.20.0160.00317.26
8.0.10.0000.00817.13
8.0.00.0090.01017.07
7.4.330.0020.00215.55
7.4.320.0000.00616.84
7.4.300.0000.00716.79
7.4.290.0070.00316.60
7.4.280.0090.00316.79
7.4.270.0070.00016.84
7.4.260.0060.00013.45
7.4.250.0050.00316.70
7.4.240.0050.00216.79
7.4.230.0000.00916.56
7.4.220.0000.00716.61
7.4.210.0100.00716.77
7.4.200.0040.00416.50
7.4.130.0140.00316.71
7.4.120.0060.01316.73
7.4.110.0070.01116.77
7.4.100.0090.00916.50
7.4.90.0070.00916.53
7.4.80.0040.01419.39
7.4.70.0040.01316.66
7.4.60.0090.00816.26
7.4.50.0090.00916.25
7.4.40.0030.01316.50
7.4.30.0040.01516.71
7.4.20.0050.01116.59
7.4.10.0100.00716.76
7.4.00.0120.00416.55
7.3.330.0040.00416.52
7.3.320.0000.00713.25
7.3.310.0000.00716.50
7.3.300.0000.00716.41
7.3.290.0090.00716.52
7.3.280.0040.01116.54
7.3.260.0090.00916.72
7.3.240.0080.01116.66
7.3.230.0080.00816.67
7.3.210.0110.00716.76
7.3.200.0110.00516.62
7.3.190.0070.01016.55
7.3.180.0110.00816.23
7.3.170.0060.01216.58
7.3.160.0160.00016.69
7.3.150.0100.00616.72
7.3.140.0070.01316.65
7.3.130.0140.00716.57
7.3.120.0100.01016.62
7.3.110.0090.01216.71
7.3.100.0120.00416.54
7.3.90.0110.00516.39
7.3.80.0100.00816.43
7.3.70.0120.00416.32
7.3.60.0060.01016.42
7.3.50.0080.00816.59
7.3.40.0080.00816.56
7.3.30.0090.00816.56
7.3.20.0090.00616.48
7.3.10.0060.01016.48
7.3.00.0130.00516.44
7.2.330.0110.00717.00
7.2.320.0140.00316.79
7.2.310.0110.00716.80
7.2.300.0100.00716.73
7.2.290.0040.01216.96
7.2.280.0180.00017.01
7.2.270.0090.00616.93
7.2.260.0110.00516.86
7.2.250.0150.00716.73
7.2.240.0130.00616.68
7.2.230.0120.00616.98
7.2.220.0060.01116.64
7.2.210.0130.00516.74
7.2.200.0100.00616.59
7.2.190.0000.01616.94
7.2.180.0100.00616.61
7.2.170.0120.00616.83
7.2.160.0150.00316.82
7.2.150.0150.00316.82
7.2.140.0100.00717.02
7.2.130.0030.01416.88
7.2.120.0160.00516.61
7.2.110.0100.00716.97
7.2.100.0100.00716.73
7.2.90.0130.00316.68
7.2.80.0060.01116.62
7.2.70.0320.00817.04
7.2.60.0110.00716.82
7.2.50.0060.01216.54
7.2.40.0100.00716.92
7.2.30.0130.00716.76
7.2.20.0130.00616.64
7.2.10.0180.00316.79
7.2.00.0120.00616.85

preferences:
28.26 ms | 403 KiB | 5 Q